Hi I am having issues with authentication I have followed the guide here https://developer.box.com/guides/authentication/client-credentials/ and I am trying to make the request with python but have also tried curl. I keep getting the response
{'error': 'invalid_grant', 'error_description': 'Grant credentials are invalid'}
This is the request I am sending:
import requests
data = {
'client_id': 'vm4hqunwv74xs4je4d2uexbzoeyi9clt',
'client_secret': 'client_secret',
'grant_type': 'client_credentials',
'box_subject_type': 'user',
'box_subject_id': 'XXXXXXXXXX3',
}headers={
"Content-Type": "application/x-www-form-urlencoded"
}requests.post('https://api.box.com/oauth2/token', headers=headers, data=data).json()
I am using the user id from the app info page.
Thanks



