1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

SharePointファイルをアップロードするGraph API使用前の準備

1
Posted at

API使用にあたり、サイトIDなどの情報が必要なので事前にGETが必要

利用するAPIについて

Azure側設定

  • アプリの作成
  • アクセス許可の追加
    Site.Read.All

サイトID、ドライブID、アイテムIDの取得方法

シェアポイントにアップロードの際必要なサイトID、チームID、チャネルIDをGraph Explorerで取得

Graph Explorer
https://developer.microsoft.com/en-us/graph/graph-explorer

サイトID検索
".com"で終わるシェアポイントのURLを入力

GET 
https://graph.microsoft.com/v1.0/sites?search={URL}

例)

GET 
https://graph.microsoft.com/v1.0/sites?search=https://test01.sharepoint.com

ドライブID

GET
https://graph.microsoft.com/v1.0/sites/{サイトID}/drive

アイテムID

GET
https://graph.microsoft.com/v1.0/drives/{ドライブID}/items/root/children
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?