PostMan- PowerSchool - Office365- Custom Connectors P3

Part 3

Create a Bearer Token to make API calls using PostMan 

(You should have your newly installed plugin available to copy and paste Client ID and Client Secret)

1. Create a New "HTTPS" Request
2. Change to "POST" Method
3. Add to address bar: https//yoursite.powerschool.com/oauth/access_token
4. In the "Authorization" tab set to Auth Type to "Basic Auth"
   Username = Client ID.
   Set Password = Client Secret
5. In the Headers tab set Key to "Content-Type"  Value to "application/x-www-form-urlencoded;charset=UTF-8"
6. In the Body tab enter: "grant_type=client_credentials" in "Raw"
7. Click Send

When you send this request you should get back a document that looks like this:

{
"access_token": "ce8815eb-b28f-40aa-bd9b-5f0a8dfa1813",
"token_type": "Bearer",
"expires_in": "1814654"
}

The Bearer Token will remain the same for about 30 days or until you click "Regenerate Client ID and Secret" in the Data Provider Configuration screen for your Plugin in PowerSchool.  In your application you can then save this token in the database or some other mechanism 

Part 4 >

Blog Type: