【文件属性】:
文件名称:goco:连接到Google API从未如此简单!
文件大小:11KB
文件格式:ZIP
更新时间:2021-02-03 12:25:16
api google oauth2 api-client google-api
戈科
连接到Google api从未如此简单!
产品特点
轻松快速地连接到Google API
自动更新访问令牌
安装
goco需要Python 3。
使用pip从PyPI安装软件包:
pip install goco
或者,从GitHub安装该软件包的最新版本:
pip install git+https://github.com/elmoiv/goco.git
用法
使用goco连接到博客:
# Blogger example
from goco import Goco
GoogleApi = Goco ( "path \\ to \\ client_secret.json" )
MyBlog = GoogleApi . connect ( scope = 'Blogger' , service_name = 'blogger' , version = 'v3' )
Posts = MyBlog . posts (). list ( blogId = '7599400532066909387' ). execute ()
print ( Posts )
测验
以下是一
【文件预览】:
goco-master
----.github()
--------FUNDING.yml(626B)
--------ISSUE_TEMPLATE()
----requirements.txt(60B)
----goco()
--------__init__.py(216B)
--------goco.py(3KB)
----CONTRIBUTING.md(4KB)
----.travis.yml(131B)
----LICENSE(1KB)
----setup.py(807B)
----README.md(2KB)
----tests()
--------test2.py(248B)
--------test1.py(227B)
----CODE_OF_CONDUCT.md(3KB)
----.gitignore(1KB)