Now, request a long-term Authorization Token (T-
) using the temporary token.
javascriptCopy codeconst response = await axios.post(`${process.env.BASE_URL}/profile/request-authorization-token`, {
scopes: ['read', 'write']
}, {
headers: { 'X-DPT-AUTHORIZATION': tempToken }
});
const commandId = response.data[0]; // Save the new command ID
Leave A Comment