Created
May 20, 2021 15:08
-
-
Save tecklund/10f3e9c6b4ede867532041112f994506 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// works | |
(http-client/post | |
"https://api.mixpanel.com/import#past-events" | |
{:debug true :debug-body true | |
:basic-auth [mixpanel-api-secret] | |
:headers {"Accept" "text/plain" | |
"Content-Type" "application/x-www-form-urlencoded"} | |
:form-params {:verbose 1 | |
:data json-event-str} | |
:as :json}) | |
//doesn't work | |
(http-client/post | |
"https://api.mixpanel.com/import#past-events" | |
{:debug true :debug-body true | |
:basic-auth [mixpanel-api-secret] | |
:headers {"Accept" "text/plain" | |
"Content-Type" "application/x-www-form-urlencoded"} | |
:form-params {:data json-event-str} | |
:as :json}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment