Skip to content

Instantly share code, notes, and snippets.

@tecklund
Created May 20, 2021 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tecklund/10f3e9c6b4ede867532041112f994506 to your computer and use it in GitHub Desktop.
Save tecklund/10f3e9c6b4ede867532041112f994506 to your computer and use it in GitHub Desktop.
// 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