Code which generates the token for API query

Hi there

We are successfully using PowerBI to visualize data on the kobotoolbox server in real-time. The query is based on a url and a token. The token can be generated after having logged in to the kobotoolbox account by https://kf.kobotoolbox.org/token/?format=json.

Now, we have another database (MySQL) sitting on a bluehost server and our service provider (developer) has difficulties to provide is a similar access, so that we can visualize it in PowerBI, too.

Would it be possible to share the code which reacts on https://kf.kobotoolbox.org/token/?format=json? Alternatively, a hint on some instructions how to do something like that would be immensely valuable.

Kind regards
York