Python Vimeo Api错误401未经授权 - 无效签名 - 传递的oauth_signature无效

时间:2015-10-15 10:40:07

标签: python django oauth-2.0

d = {'client_id': '***', 'client_secret': '***', 'grant_type': 'authorization_code','redirect_uri': 'http://192.168.2.135:8000/vimeo/response/',
'response_type': 'code'}
req = oauth2.Request(method='GET',url="https://api.vimeo.com/oauth/authorize",parameters=d)
consumer = oauth2.Consumer(key = '***',secret="***")
client = oauth2.Client(consumer)
request_token_url = "http://vimeo.com/oauth/access_token"
resp,content = client.request(request_token_url,"GET")

0 个答案:

没有答案