Call Graph API with Token

Vikash Gupta
Oct 13, 2022

--

Steps:

  1. Get Token
  2. 2. Use Token to connect to Graph API

Prerequisites : Create app registration and note the ClientId, TenantId, Secret. Required Api permissions need to be set in the app registration.

Step 1: Make a POST call to Https://login.microsoft.com/TenantId/Oauth/token with body

Get the access_token in the response

Step 2: Make a Graph API call with the header containing the token

Authorization : Bearer <access_token>

Reference: https://www.youtube.com/watch?v=DIIYZUzNk5E

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response