我正在尝试将Dropbox API集成到我的CodeIgniter项目中以上传和访问文件,我在GitHub上找到了此CodeIgniter API,因为该回购协议很旧,不确定在我点击请求时它是否正在运行,但未提供错误的OAuth令牌,
调试后,我在库文件Dropbox.php中找到了该URL,该URL无效
$redirect = self::SCHEME.'://www.dropbox.com/'.self::API_VERSION.self::AUTHORIZE_URI."?oauth_token= &oauth_callback={$callback}";
到底有什么可能出现错误请帮忙。谢谢
A PHP Error was encountered
Severity: Notice
Message: Undefined index: oauth_token
Filename: libraries/Dropbox.php
Line Number: 118
Backtrace:
File: /opt/lampp/htdocs/CodeIgniter/application/libraries/Dropbox.php
Line: 118
Function: _error_handler
File: /opt/lampp/htdocs/CodeIgniter/application/controllers/Example.php
Line: 18
Function: get_request_token
File: /opt/lampp/htdocs/CodeIgniter/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Notice
Message: Undefined index: oauth_token_secret
Filename: libraries/Dropbox.php
Line Number: 120
Backtrace:
File: /opt/lampp/htdocs/CodeIgniter/application/libraries/Dropbox.php
Line: 120
Function: _error_handler
File: /opt/lampp/htdocs/CodeIgniter/application/controllers/Example.php
Line: 18
Function: get_request_token
File: /opt/lampp/htdocs/CodeIgniter/index.php
Line: 315
Function: require_once
https://github.com/jimdoescode/CodeIgniter-Dropbox-API-Library
我的代码与此完全相同 Dropbox api not working in codiegniter?