Knowing nothing about REST or Python, I've been trying to configure an input in the REST API app to make a call to our Modulo cloud instance but I'm having no luck. The GET request keeps giving me an error "Missing Access Token".
I believe what I need to do is configure a custom authentication handler in authhandlers.py and then specify that stanza in the input, but I haven't been able to figure out the syntax. We're using OAuth2 anonymous authentication so no callback URL is required, and I've been provided a client ID and secret key but don't know how to format the script. The parameters provided by Modulo support are below:
Method: POST
URL: https://saas.riskmanager.modulo.com/RM_xxx/APIIntegration/Token
HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: saas.riskmanager.modulo.com
Content-Length: 119
Expect: 100-continue
Connection: Keep-Alive
Request Body:
client_id=RISKMANAGER_CLIENT_ID&client_secret=RISKMANAGER_SECRET_KEY&grant_type=client_credentials
Any tips for a Python newb would be appreciated.
↧