mixpanel / mixpanel-utils

Other
85 stars 62 forks source link

add an option to initialize using the EU compatible API #26

Closed dnbkr closed 3 years ago

dnbkr commented 3 years ago

This Pull Request adds the ability for the client to initialise the class with the optional keyword argument eu as True to allow the API to work with projects participating in EU residency.

The default argument is False, to maintain backwards compatibility.

I'm not too familiar with Mixpanel's API (this is a feature for a non-developer colleague) so I did not include EU-localisation for api-beta.mixpanel.com as I don't know if there's an EU equivalent endpoint for this.

Tagging issue #25

jaredmixpanel commented 3 years ago

@coffeedoughnuts PyPi has been updated to v1.6.5 run pip install mixpanel-api --user --upgrade to update to the latest version.