@r_e_n_y

Как получить refresh token от donation alerts api, используя node js?

Здравствуйте, удалось получить acces_token от donation alerts api, но теперь столкнулся с такой проблемой как:
Не знаю где получить refresh_token для выполнения запроса getRefreshToken()
async function getRefreshToken() {
  try {
    const response = await axios.post(`https://www.donationalerts.com/oauth/token`, {
      grant_type: 'refresh_token',
      refresh_token: `Refresh token`,
      client_id: '<code>',
      client_secret: '<secret>',
      scope: 'oauth-user-show oauth-donation-subscribe oauth-donation-index oauth-custom_alert-store oauth-goal-subscribe oauth-poll-subscribe'
    });

    console.log(response.data);
  } catch (error) {
    console.error(error);
  }
}

getRefreshToken();
</code>
  • Вопрос задан
  • 63 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы