【发布时间】:2021-05-21 01:29:34
【问题描述】:
使用 GArmin API 删除用户注册时出现错误
{ errorMessage: 'Unable to read oAuth header' }
我正在使用以下 API:-
https://healthapi.garmin.com/wellness-api/rest/user/registration
我的代码如下:-
restler.get(accessTokenUrl, {
headers: {'Authorization': 'Bearer ACCESS_TOKEN'}
}).on('complete', function(data) {
console.log(data);
cb();
});
【问题讨论】:
标签: node.js api oauth authorization garmin