【发布时间】:2013-09-30 20:11:37
【问题描述】:
我正在尝试使用 python 和带有 webapp2 的谷歌应用引擎向 Health Graph API 发出 POST 请求。我看过一个例子,这样做如下:
payload = {'grant_type': 'authorization_code',
'code': code,
'client_id': 'xxxxxxxxxxxxxxxxxxxxxxx',
'client_secret': 'xxxxxxxxxxxxxxxxxxxxxx',
'redirect_uri': redirect_uri,}
req = requests.post(API_ACCESS_TOKEN_URL, data=payload)
但我似乎无法在谷歌应用引擎中使用请求模块。有没有简单的方法可以做到这一点?
【问题讨论】:
标签: python google-app-engine post webapp2