Access to partner.admin_accounts

天大地大妈咪最大 提交于 2020-01-16 17:12:09

问题


How we can get access to partner.admin_accounts scope ?

We catch response:

{"code":"unauthorized","message":"This endpoint requires all of the following scopes: partner.admin_accounts"} 

When trying to GET

https://api.uber.com/v1/partners/drivers 

upd: full code, we using GAS

function uberGET(){
  var token = 'my_secret_tocen';
  var url =  'https://api.uber.com/v1/partners/drivers'; 
  var header = {'Content-Type': 'application/json',
               'Authorization': 'Bearer '+token};
  var options = {'method':'GET','headers':header,'muteHttpExceptions': true};
  var response = UrlFetchApp.fetch(url,options);
  Logger.log(response);
}

upd: it looks like we need to get full access, but ....

...official support help.uber.com sent us here and on their Twitter :)

upd: that "official" form: https://developer.uber.com/products/drivers is now working((

@Sasa Jovanovic any way for we can ask full access?

来源:https://stackoverflow.com/questions/59269950/access-to-partner-admin-accounts

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!