Yammerとリクエストを使用して、ユーザーのような情報を取得しようとしています。私は繰り返し401のステータスコードを取得しています。私は私が間違っているのかわからないのですYammer APIリクエストが返る401
import json
import requests
import requests.auth
access_token = "mytoken"
headers = {"Authorization": "bearer " + access_token}
response = requests.post("https://www.yammer.com/api/v1/users/liked_message/702068900.json", headers=headers)
me_json = response.json()
return me_json['name']
:
以下は私のコードです。
'response.text'はいくつかの情報を提供します – Lol4t0
[python SDK](https://developer.yammer.com/docs/python-sdk)を見ましたか? –
文書では、「ベアラー」は大文字の「B」と言います。それを試してみてください。 –