I am trying to follow the documentation for getting an API token. Specifically follow the Resource Owner Password Credentials Grant Type but when I run my code I’ll get a 200 response with an empty output
Here’s my code:
import requests
https://<yoursubdomain.docebosaas.com>/oauth2/token
files = {
'client_id': (None, <client_id>),
'client_secret': (None, <client secret>),
'grant_type': (None, 'password'),
'scope': (None, 'api'),
'username': (None, <user>),
'password': (None, <password>),
}
test_post = requests.post(url=credentials_url_endpoint, file=files)
Any feedback on where I am going wrong or what I should try next?