hipchat oauth令牌内部服务器错误
我关注hipchat站点并尝试获取附加令牌 我有以下代码:hipchat oauth令牌内部服务器错误,oauth,token,hipchat,Oauth,Token,Hipchat,我关注hipchat站点并尝试获取附加令牌 我有以下代码: import requests secret = 'hipchat_secret' headers = {'Content-Type': 'application/x-www-form-urlencoded', 'Authorization': 'Basic {}'.format(secret)} url = 'https://api.hipchat.com/v2/oauth/token?grant_type
import requests
secret = 'hipchat_secret'
headers = {'Content-Type': 'application/x-www-form-urlencoded',
'Authorization': 'Basic {}'.format(secret)}
url = 'https://api.hipchat.com/v2/oauth/token?grant_type=client_credentials&scope=send_notification+admin_room'
res = requests.post(url, headers=headers)
但它给了我一个500的内部服务器错误。我的代码怎么了?错误是我使用了v1令牌 当我切换到v2时,它工作得非常好