我想问一下googleapiclient中discovery.build的使用。
from googleapiclient import discovery
credentials = Credentials(None, client_id="creds1234.apps.googleusercontent.com", client_secret="secret")
resource = discovery.build("forms", "v1", discoveryServiceUrl="https://forms.googleapis.com/$discovery/rest?version=v1", credentials = credentials)
Run Code Online (Sandbox Code Playgroud)
我一直在尝试使用这个资源,但我无法理解它的真正用途。我已经检查了文档,但我的理解是它填充了我一直在使用的 api 方法和函数的定义,在本例中为 Forms API。
我以为我会对它感兴趣,那么它能做什么呢?
谢谢。
python google-api google-api-python-client google-cloud-platform