im使用node-zendesk OAuth,但我导致错误错误:Zendesk错误(401):未授权。我如何验证OAuth?我的OAuth认证样式有什么问题?
var zendesk = require('node-zendesk'),
fs = require('fs');
var client = zendesk.createClient({ username: 'webside',
token: '72fe38e0e67f23695fba1ab4af63f1asadf123412697f7c0e08d22',
remoteUri: 'https://remote.zendesk.com/api/v2', oauth: true });
router.route('/privacy').get(function (req,res){
client.users.list(function (err, req, result) { if (err) {
console.log(err);
return; }
console.log(JSON.stringify(result[0], null, 2, true));//gets the first page });
用户名是否错误?我确定了这个名称Oathclinets的唯一标识符