mixpanel_client icon indicating copy to clipboard operation
mixpanel_client copied to clipboard

Allow overriding the API URIs

Open ChaosFreak opened this issue 7 years ago • 2 comments

The Mixpanel support team have asked me to use the new "beta" version of the API to resolve some performance issues. However, since the base API URIs are coded in string literals, it's not possible to use an alternate URI. I've created this branch to allow you to override any of the three API URIs by passing them as part of the config parameters when creating a new instance.

ChaosFreak avatar Sep 15 '17 01:09 ChaosFreak

Thanks for this PR! This seems like a rare edge case and I worry that it's going to create more confusion than benefit. I'm going to leave it open for now to see if anyone else wants this feature.

keolo avatar Oct 13 '17 03:10 keolo

Mixpanel now offers EU data residency with separate API URLs, which makes needing to change them less of an edge case:

https://developer.mixpanel.com/reference/overview

Standard Server: api.mixpanel.com EU Residency Server: api-eu.mixpanel.com

eugeneius avatar Aug 03 '22 12:08 eugeneius

Thanks guys, this has been merged into 5.1.0.

keolo avatar Feb 07 '23 02:02 keolo