According to the code examples, you have to use the swagger_client:
The following is the getAccessToken API in Python:
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.AccessTokenApi()
tokenManageraccessToken = # TokenManageraccessToken |
try:
# Generates a new access token using a valid refresh token.
api_response = api_instance.get_access_token(tokenManageraccessToken)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccessTokenApi->getAccessToken: %s\n" % e)
After some googling I found that swagger_client needs to be custom built: https://github.com/swagger-api/swagger-codegen/#generating-libraries-from-your-server
How can the swagger_client library be installed in python? Typing pip install swagger_client doesn't work.