quire-api

Exchange Quire authorization code for access token with GM_xmlhttpRequest

元气小坏坏 提交于 2021-01-29 04:00:35
问题 This may be a stupid question and I have tried to follow the instructions given from the quire-api-blog but I still have trouble obtaining a token from a Tampermonkey javascript userscript. FYI syntax for GM_xmlhttpRequest is available on https://www.tampermonkey.net/documentation.php?ext=dhdg#GM_xmlhttpRequest I am using the following code: GM_xmlhttpRequest({ method: "POST", url: "https://quire.io/oauth/token", data: JSON.stringify({ grant_type: "authorization_code", code: "xxx", client_id: