You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I feel like I am missing something. It looks to me as though import() sends the request as a GET request
when it should be a POST request according to the docs
The import function calls send_event_request() which is always a get request
as it does this metrics.send_request({ method: "GET", endpoint: endpoint, data: data }, callback);
Can someone point me in the right direct on what I am doing wrong?
Thanks
The text was updated successfully, but these errors were encountered:
The API will accept either GET or POST. For importing a single event with mixpanel.import(), the GET should work fine. If you want to send very large payloads or multiple events at once, you can use import_batch() which uses POST under the hood.
That's a concern if you run your own tracking proxy and log all query params and are worried about your event payloads ending up in your internal logs. For Mixpanel's official ingestion API (api.mixpanel.com), we don't do that kind of logging.
That said, at this point there's no downside to converting this whole lib to use POST, pull requests welcome.
I feel like I am missing something. It looks to me as though import() sends the request as a GET request
when it should be a POST request according to the docs
The import function calls
send_event_request()
which is always a get requestas it does this
metrics.send_request({ method: "GET", endpoint: endpoint, data: data }, callback);
Can someone point me in the right direct on what I am doing wrong?
Thanks
The text was updated successfully, but these errors were encountered: