Hi,
I was trying to export data from Mixpanel into Azure Data Factory following this doc: https://developer.mixpanel.com/reference/data-pipelines-api-overview#create-a-pipeline and I ran into some issues in creating the pipeline. I’ve already configured the permission for Mixpanel in Azure Command Line.
The problems are:
- where do I run the following curl statement;
curl https://data.mixpanel.com/api/2.0/nessie/pipeline/create \ -u API_SECRET: \ -d type="azure-blob" \ -d trial="true" \ -d data_format="parquet" \ -d storage_account="mystorageaccount" \ -d container_name="mixpanel-export" \ -d prefix="custom_prefix/for/data" \ -d schema_type="multischema" \ -d client_id="REDACTED" \ -d client_secret="REDACTED" \ -d tenant_id="REDACTED" #Whitelist a "Page View" and "Item Purchase" event -d events="Page View" \ -d events="Item Purchase
- What custom changes do I need to make to the above sample code given in the Mixpanel’s doc?e.g. “nessie” in the url needs to be changed to what name? Project name or the user name or something else?
- Below is my code, where I ran in Azure Command Line, changed “nessie” into our project name and added the API_SECRET, but it’s giving me an error saying “Host password required” or “Authentication Required” , what should I change here?
curl https://data.mixpanel.com/api/2.0/EnvisionWell/pipeline/create -u API_SECRET="DELETED" -d type="azure-blob" -d trial="true" -d data_format="parquet" -d storage_account="mixpanel2" -d container_name="test-mixpanel" -d prefix="custom_prefix/for/data" -d schema_type="multischema" -d client_id="DELETED" -d client_secret="DELETED -d tenant_id="DELETED" -d events="Page View" -d events="Item Purchase
Thanks so much!