workshoptech/discourse-js

Help writing method to get userApiKey

Opened this issue · 1 comments

Hey there,

I need some help creating a method for the userApiKey. Im not sure where to start.

Thanks,
Kris

djw27 commented

Hey there,

I need some help creating a method for the userApiKey. Im not sure where to start.

Thanks,
Kris

Hi @KuroSenpaii - creating the user API keys is something which we don't have support for. You can learn more about how this can be done here: https://github.com/discourse/DiscourseMobile/blob/69d109e5e3c6de13a4c5d1b5d7fa9313dfa025cf/js/site.js#L52

You can also find a little more info on how to approach this from a backend (Python) perspective here: https://meta.discourse.org/t/discourse-api-documentation/22706/301