在codeigniter php中获取令牌值表单dropbox api中的问题

i want to access token value form dropbox api programmatically

enter image description here

see above image in that at last there are token value i want to get that token value pragmatically. Right now flow is like below

  1. Go to: https://www.dropbox.com/1/oauth2/authorize?locale=&client_id=a6sait9lgzwntkx&response_type=code

  2. Click "Allow" (you might have to log in first).

  3. Copy the authorization code.

When i perform above steps than above dialog is open but i want to get token value directly so is there any other way for getting that token value ? your all suggestion are appreciable.

dongya4089
dongya4089 我的RootwaysApp?不知道为什么你从图像中隐藏了appname,但提供了一个链接。
大约 5 年之前 回复

1个回答



是的,如果您可以使用重定向URI,则可以通过编程方式将“授权代码”传递给您的应用。 有一个关于此的指南应该对此有所帮助:</ p>

https://www.dropbox.com/developers/reference/oauthguide#oauth-2-on-the-web </ p>

何时 使用通过 redirect_uri </ code>参数提供的重定向URI,在用户授权您的应用程序后,授权代码将返回到 code </ code>参数中指定的重定向URI。 然后,您的应用可以交换访问令牌的授权码。</ p>
</ div>

展开原文

原文

Yes, if you can use a redirect URI, you can get that "authorization code" delivered to your app programmatically. There's a guide about this that should be helpful here:

https://www.dropbox.com/developers/reference/oauthguide#oauth-2-on-the-web

When using a redirect URI, supplied via the redirect_uri parameter, the authorization code is returned to your specified redirect URI in the code parameter after the user authorizes your app. Your app can then exchange the authorization code for an access token.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问