【问题标题】:405 Method Not Allowed while accessing UBER api访问 UBER api 时出现 405 Method Not Allowed
【发布时间】:2017-06-07 13:14:47
【问题描述】:

对于从原生 android 应用程序预订优步出租车,我正在关注 [https://developer.uber.com/docs/riders/ride-requests/tutorials/api/curl][2]

上的本教程

我正在关注第 1 步,我正在获取 UBER 注册页面,但在第 2 步中,我收到了此响应“ 405 方法不允许

方法不允许

请求的 URL 不允许该方法。

"。 谢谢你。

【问题讨论】:

    标签: uber-api


    【解决方案1】:

    您使用的是 http get 请求而不是 http post 方法请求。

    【讨论】:

    • 我也使用了发布请求。但它显示 { "error": "unsupported_grant_type" }
    • 请分享确切的请求/响应。
    • 感谢您达成这是我的请求“login.uber.com/oauth/v2/token”。这是一个发布请求,在正文中我发送 client_id ,redirect_uri 作为“localhost”,client_secret,grant_type 作为“authorization_code”,refresh_token 作为“q1uR43DL16E7cTRIUNziySKdvdzqrz#_”。刷新令牌是从授权请求生成的。谢谢
    • 你能分享示例代码和确切的请求/响应(没有凭据)吗?
    猜你喜欢
    • 2015-07-29
    • 2011-11-17
    • 2016-04-12
    • 1970-01-01
    • 2017-06-14
    • 1970-01-01
    • 2018-06-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多