Discussions
Finding OAuth 2 scope keys
12 days ago by Michael Logan
I had some trouble finding the oauth2 scope keys. Similar to this discussion: https://developer.gomotive.com/discuss/67a32f847821ba00291d9c98
The scopes listed on both the developer portal and developer documentation page you linked do not include the scope keys they include the label only.
Example: Drivers and Fleet Managers = users.read & users.write
To find the actual keys needed to send in the oauth request, I inspected the network logs on the developer api page:
https://keeptruckin.com/api/dp1/applications/all_scopes
{
"key": "users",
"label": "Drivers and Fleet Managers",
"is_read_only": false
},
{
"key": "vehicles",
"label": "Vehicles",
"is_read_only": false
},
Can you include the list of keys & read, write scopes on the documentation?
Thanks,
Mike