私はonedriveのonenoteノートブックからページを取得しようとしています。 URLは...ここPython Onenote、リクエスト無しで
https://onedrive.live.com/edit.aspx?cid=ab87696357344a7e&page=view&resid=AB87696357344A7E!246&parId=AB87696357344A7E!116&app=OneNote
は私のコードです:
import requests
access_token='xxxx'
root='https://www.onenote.com/api/v1.0/me/notes/'
id ='ab87696357344a7e'
url=root + id +'/sections'
headers={"Authorization" : "Bearer " + access_token, 'Accept': 'application/json'}
request=requests.Request(method="GET",headers = headers, url=url)
print request.data
print request.url
print request.json
print request.files
私はここに、何を得ていないよ出力されます:私は間違っ
[]
https://www.onenote.com/api/v1.0/me/notes/ab87696357344a7e/sections
None
[]
何をしていますここに? IDが間違っていますか?彼らが何を話しているのか分からなかった。
私もアプリIDを試してみましたが、何も得られません。
をGET [OneNoteノートブックにPythonでアクセス/ダウンロードする方法]の複製がありますか?(https://stackoverflow.com/questions/34622471/how-to-access-download-onenote-notebook-with-python) –
@Laurent LAPORTEあなたのリンク助けにならない。私はonenote開発者向けのリファレンスページにリンクしています。これは非常に具体的な質問です。 – jason