![]() ![]() Paste the following JavaScript into the Pre-request Script section of your collection. Usually we use the auth code flow to obtain a token to access the graph api requires the following three steps: 1. 2 minutes to read 4 contributors Feedback To test the REST API using Postman, you'll need to include the HTTP headers required for authentication in your requests. Set the Authorization section of your collection to Bearer Token and the token field to the variable reference ģ. ![]() Create a collection and give it a descriptive name.Grant admin consent and make sure the status indicates the green check-sign 2. I would like to replicate this behaviour on pre request script and do this process. Make sure the permission type is not Delegated as we are going to call with a system identity, remeber? □Ĥ. Copy and paste the above example to your postman request Body. ![]() Grant your application some permissions of type Application I took here for demo purposes. Then create a client secret and copy it somewhere.ģ. Make a note of the application id, after clicking Register.Ģ.
0 Comments
Leave a Reply. |