I am trying to get data from Pendo through REST API using Azure Data Factory. The PYTHON code for this activity is
import requests
url = "https://app.pendo.io/api/v1/aggregation"
data = "{\"response\":{\"mimeType\":\"application/json\"},\"request\":{\"pipeline\":[{\"source\":{\"guideEvents\":null,\"timeSeries\":{\"first\":\"1506977216000\",\"count\":-10,\"period\":\"dayRange\"}}}]}}"
headers = {
'x-pendo-integration-key': "[add_your_pendo_int_key_here]",
'content-type': "application/json"
}
response = requests.post(url, data = data, headers = headers)
How do I define the data part of the code through Azure Data Factory? I've put the content-type and x-pendo-integration-key in the additional headers.