问题标签 [dropbox-php]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
php - 使用 php api 在 Dropbox 中解压缩或提取文件
我正在和朋友一起做一个项目,我们想找到一种方法将 .zip 或 .rar 或 .tar 文件上传到 Dropbox,然后当文件在 Dropbox 中时提取该文件的文件。一切都必须使用 API 完成。
为什么我们要这样做?我们的项目是一个网站建设者,我们已经实现了每个文件和文件夹的 Dropbox 上传,但我们想加快这个过程,创建一个 zip/rar/tar 文件,将其上传到 Dropbox,然后提取文件以使其更快.
这可能吗?
dropbox-api - Dropbox API - 为我的媒体获取永久链接?
我使用“createTemporaryDirectLink”方法来获取流媒体视频的链接。它就像一个魅力......但每次我需要在这些链接过期时更新它们。
我想知道是否有可能获取并保留流媒体的永久链接?
谢谢
php - 自动登录到 Dropbox 服务器端
简短版:我的 PHP 应用程序是否可以通过在服务器端执行完整的 OAuth 2.0 流程来登录到某个 Dropbox 帐户?
长版:考虑以下步骤:
- 将 Google Chrome 导航到我的 Dropbox 应用的登录页面:
https://www.dropbox.com/1/oauth2/authorize?locale=&response_type=code&client_id=[APP_CLIENT_ID]
- 打开 Chrome 开发工具,进入控制台
发出以下 jQuery 调用:
/li>
现在这个浏览器登录到 Dropbox,刷新浏览器窗口就可以看到了。
如何使用 cURL 或 file_get_contents 在 PHP 中实现相同的过程?
我试过这样:
但我总是以 403 Forbidden 告终。
我究竟做错了什么?
顺便说一句,我有一个合法的用例。我知道 Dropbox 使用 OAuth 2.0 来防止用户的密码进入我的服务器。但是这里使用的凭据不是来自最终用户。
php - Dropbox API no longer working, CSRF mismatch
I use the Dropbox PHP SDK. Everything was working fine and suddenly the authentication process no longer works while no changes have been made to the code in this area.
I receive the error 'CSRF Mismatch'.
When looking at all CSRF tokens in the URL all seems to be correct:
https://myapp.herokuapp.com/dropbox/callback.php?state=L9yH1hf7pgiOY7j7fsFegA%3D%3D&code=redacted
CSRF Tokens match. Log reveals they are not though:
android - 无法从 Android 中的 Dropbox 获取文件列表
我无法从 Dropbox 获取文件列表。
我创建了这个AsyncTask
并从MainActivity
类似的地方调用。
我的日志文件的错误代码是
php - Dropbox SDK using PHP
I am trying to setup a basic authentication example using Dropbox PHP and I am failing. When I launch my index.php I am redirected to dropbox login. Then once I login, I am redirected back to dropbox_finish.php
and I have state
and code
e.g.:
Than I get this error in:
[Mon May 25 00:27:39.074399 2015] [:error] [pid 5459] [client 127.0.0.1:44489] PHP Fatal error: Uncaught exception 'Dropbox\Exception_BadRequest' with message 'HTTP status 400\n{"error_description": "Invalid client_id or client_secret", "error": "invalid_client"}' in /var/www/php/oauth/vendor/dropbox/dropbox-sdk/lib/Dropbox/RequestUtil.php:250\nStack trace:\n#0 /var/www/php/oauth/vendor/dropbox/dropbox-sdk/lib/Dropbox/WebAuthBase.php(39): Dropbox\RequestUtil::unexpectedStatus(Object(Dropbox\HttpResponse))\n#1 /var/www/php/oauth/vendor/dropbox/dropbox-sdk/lib/Dropbox/WebAuth.php(270): Dropbox\WebAuthBase->_finish('YQb8c261HlAAAAA...', 'https://oauth.d...')\n#2 /var/www/php/oauth/web/dropbox_finish.php(4): Dropbox\WebAuth->finish(Array)\n#3 {main}\n thrown in /var/www/php/oauth/vendor/dropbox/dropbox-sdk/lib/Dropbox/RequestUtil.php on line 250
I have been trying to set something as basic as possible to start with for a while now with no results. Any help will be appreciated.
This is my code index.php
:
Then start.php
:
The file dropbox_auth.php
:
Dropbox finish file dropbox_finish.php
:
As additional detail, just to say that I have this in MySQL:
What am I doing wrong? thx.
php - Dropbox SDK 中的重定向循环和会话问题
我正在尝试对基本代码进行一些自定义以向 Dropbox 进行身份验证。我希望我的应用程序直接对用户进行身份验证,而不涉及第三次身份验证。所以基本上我想要的唯一身份验证是针对 Dropbox。目前我有两个问题:
- 我附带的代码进入无限重定向循环。
我收到以下我认为与以下有关的 php 错误
/li>$_SESSION
:
这是我的代码start.php
:
这dropbox_finish.php
:
谁能帮我解决这个问题?
dropbox - 多个文件通过 PHP API 上传到 Dropbox
我尝试使用 Dropbox PHP Api 上传文件。它工作得很好。Dropbox api中是否有用于多个文件上传的选项。或者 php 中有任何异步上传概念吗?. 目前我正在使用 oauth2.0 进行应用登录。
我正在使用的这个脚本
ajax - 如何使用保管箱保护程序 api 将多个图像文件保存到保管箱?
我正在尝试使用保管箱保护程序 api 将多个图像保存到保管箱,但我的代码没有保存图像,我没有收到任何错误,也没有确认。(弹出保管箱保护程序窗口并单击保存,它会关闭但没有确认!)任何人都可以告诉我如何解决这个问题?
注意:我可以使用此函数调用保存一张图像:
完整代码:
php - 在codeigniter php中获取令牌值表单dropbox api的问题
我想以编程方式访问令牌值表单 dropbox api
见上图,最后有令牌值我想务实地获得该令牌值。现在流程如下
转到:https ://www.dropbox.com/1/oauth2/authorize?locale=&client_id=a6sait9lgzwntkx&response_type=code
单击“允许”(您可能必须先登录)。
复制授权码。
当我执行上述步骤时,上面的对话框打开但我想直接获取令牌值,那么还有其他方法可以获取该令牌值吗?你的所有建议都是可观的。