0
私はhipchatサイトに従うとアドオントークン https://developer.atlassian.com/hipchat/guide/hipchat-rest-api/api-access-tokens?_ga=2.94621780.975509804.1497491262-871504840.1479901346#APIaccesstokens-Add-ongeneratedtokenshipchat OAuthのトークン内部サーバーエラー
を取得しようと、私は次のコードを持っている:
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内部サーバーエラーを与えます。私のコードで何が間違っていますか?