douwen5690 2015-03-20 18:12
浏览 39
已采纳

Neteller API错误:invalid_scope

I'm trying to get the user's permission for three scopes (subscription_payment, account_enhanced_profile and account_available_balance), and I'm trying this, to get them:

https://test.api.neteller.com/v1/oauth2/authorize?client_id=################&redirect_uri=https://paymentstest/gateways/neteller/confirmpayment.php&scope=subscription_payment+account_enhanced_profile+account_available_balance&response_type=code

In the API, they have this documented, in the scopes section:

The supplied scope parameter will indicate the level of access you require for your app. The scope parameter MUST be supplied. If you application requires multiple scopes then you should supply a space separated list of the required permissions. Eg. scope=perm1+perm2

but I still get this error, when I perform the request:

{ 
    ["error"] => "invalid_scope" 
    ["error_description"] => "The requested scope is invalid, unknown, or malformed." 
}

Why could I be getting this error? I am using php, and urlencode() to add the scopes to the link. This is a redirect to call the 'client' for their permissions.

  • 写回答

1条回答 默认 最新

  • duanhuang1699 2015-03-21 13:56
    关注

    There is an error in the documentation. The correct way to pass multiple scopes is to list them separated by a comma, like so:

    https://test.api.neteller.com/v1/oauth2/authorize?client_id=################&redirect_uri=https://paymentstest/gateways/neteller/confirmpayment.php&scope=subscription_payment,account_enhanced_profile,account_available_balance&response_type=code
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 高价求中通快递查询接口
  • ¥15 解决一个加好友限制问题 或者有好的方案
  • ¥15 关于#java#的问题,请各位专家解答!
  • ¥15 急matlab编程仿真二阶震荡系统
  • ¥20 TEC-9的数据通路实验
  • ¥15 ue5 .3之前好好的现在只要是激活关卡就会崩溃
  • ¥50 MATLAB实现圆柱体容器内球形颗粒堆积
  • ¥15 python如何将动态的多个子列表,拼接后进行集合的交集
  • ¥20 vitis-ai量化基于pytorch框架下的yolov5模型
  • ¥15 如何实现H5在QQ平台上的二次分享卡片效果?