title: How to call Microsoft Graph API "https://graph.microsoft.com/v1.0/me/" in node.js?
body: <p>I had created azure OAuth connection settings in azure active directory, and I used azure graph API "<a href="https://graph.microsoft.com/v1.0/me/" rel="nofollow noreferrer">https://graph.microsoft.com/v1.0/me/</a>" to get the user details.</p>
  
  <p>I called this API in postman and pass the user token in Authorization and I get all the user details. The below response which I get from the postman when I call this "<a href="https://graph.microsoft.com/v1.0/me/" rel="nofollow noreferrer">https://graph.microsoft.com/v1.0/me/</a>" API.</p>
  
  <p>Eg.</p>
  
  <pre><code>{
      "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users/$entity",
      "businessPhones": [],
      "displayName": "raman",
      "givenName": "kuamr",
      "jobTitle": null,
      "mail": null,
      "mobilePhone": null,
      "officeLocation": null,
      "preferredLanguage": null,
      "surname": "sdf-890b52347751",
      "userPrincipalName":
  "kumar_google.onmicrosoft.com",
      "id": "dsfc-29c6827f2fbe"
  }
  </code></pre>
  
  <p>But now I need to call this API in node.js. How to call this API in node.js and how to get the response which I get in postman.</p>