mixpanel / mixpanel-utils

Other
85 stars 62 forks source link

allow people to provide a proxy #3

Closed jtmcmc closed 6 years ago

jtmcmc commented 6 years ago

Allow the option to provide a proxy server

jaredmixpanel commented 6 years ago

@jtmcmc @joeymalysz - It just dawned on me this can be done by simply re-assigning the values for any of the base API URL properties, for example...

mp = Mixpanel(api_secret, token=project_token)
mp.IMPORT_API = 'https://myproxyserver.com'

You can do same for...

FORMATTED_API
RAW_API
BETA_IMPORT_API

https://github.com/mixpanel/mixpanel_api/blob/master/__init__.py#L41-L44