Welcome to the Riverbed IQ API Documentation. The following APIs enable developers to integrate IQ into custom applications or tools that interact with our platform programmatically, enabling seamless integration of our services into your applications. You may select an API to view in the top right of this page.
Calls that require authorization will need to have a bearer token added as an authorization header. Riverbed IQ API services use OAuth 2.0 client credentials grant flow (sometimes called two-legged OAuth). Instructions for how to generate OAuth 2.0 credentials can be found in the IQ User Documentation for the API Access Page
import requests
url = "https://{AUTH_PROVIDER_TOKEN_SERVICE}/{CustomerID}/oauth2/v2.0/token" // token URI
payload = 'client_id={CLIENT_ID}}'
payload += '&scope={SCOPE}'
payload += '&grant_type=client_credentials'
payload += '&client_secret={CLIENT_SECRET}'
headers = {
'Content-Type': 'application/x-www-form-urlencoded'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)