Open beheh opened 2 years ago
In fact: service accounts seem unsupported entirely by this SDK. For example, it does not appear possible to supply a api_secret=<service_account>:<secret>
to this SDK, due to the project_id
omission and the fact that an additional colon is appended to that string as part of the HTTP Basic auth assembly.
@beheh that is correct, this SDK does not currently support Service Accounts. You can use Service Accounts to import data with our Python utilities library, though: https://github.com/mixpanel/mixpanel-utils
While testing out service accounts, I kept getting
Unauthorized, invalid project secret. See docs for more information: https://developer.mixpanel.com/reference/authentication#project-secret
raised from the SDKI ended up tracing this to the SDK never sending the
project_id
GET paramter to theimport
. This paramter is marked as required in the documentation.Trying the following curl command:
vs.
...with credentials and with/without a project_id confirms the problem.