Im trying to make a small discord bot with Banshee mods. To get Vendors I need an OAuth token. I've made a https localhost and getting the autorization_code after redirect. Then I need to make a POST to https://www.bungie.net/Platform/App/OAuth/Token/ with those cliend_id, client_server and code. But the request returning
Im trying to make a small discord bot with Banshee mods. To get Vendors I need an OAuth token. I've made a https localhost and getting the autorization_code after redirect. Then I need to make a POST to https://www.bungie.net/Platform/App/OAuth/Token/ with those cliend_id, client_server and code. But the request returning
My function is:
If we will change data to string to look like this:
data: 'grant_type=authorization_code&code={code from redirect endpoint localhost}'
I got an error
Am I missing something? Would be thankful for any help (: