Box API always returns invalid grant_type parameter on obtaining access token

后端 未结 4 1213
北海茫月
北海茫月 2020-12-21 23:26

I\'m writing my own Box SDK for WP8 to make the most out of Tasks. I am having trouble obtaining an access token. I always get this as a return:

{\"error\":\         


        
4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-22 00:26

    The request/response would be helpful. It looks like you are UrlEncoding the entire query string instead of just each value. Which would be submitted to us as: grant_type%3Dauthorization_code%26code%3Dxyz%26client_id%3Dxyz%26client_secret%3Dxyz%26redirect_uri%3Dxyz

    Instead of: grant_type=authorization_code&code=xyz&client_id=xyz&client_secret=xyz&redirect_uri=xyz

提交回复
热议问题