Set your Polytomic API key as an environment variable:
This example covers three steps:
The following request creates a Salesforce Connection. See the Salesforce connection configuration for the required fields.
Salesforce Connections authenticate with OAuth. Open the URL returned in the auth_url field of the response to complete the flow.
By default, the API expects auth_url to open in a new browser window.
Set the optional redirect_url parameter in the request body to change
the redirect target.
The following request starts a SOQL query on the Salesforce Connection. The results are available through the Polytomic API once the query completes.
Poll the query endpoint until the status is done or failed, then read the results: