discourse-js icon indicating copy to clipboard operation
discourse-js copied to clipboard

Help writing method to get userApiKey

Open KuroSenpaii opened this issue 4 years ago • 1 comments

Hey there,

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

Thanks, Kris

KuroSenpaii avatar Aug 21 '21 03:08 KuroSenpaii

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

djw27 avatar Aug 25 '21 14:08 djw27