Welcome Guest, Not a member yet? Register   Sign In
Dropbox library
#1

(This post was last modified: 11-26-2020, 05:59 AM by pippuccio76.)

I , i try to use a dropbox class ( used in another project without framework) with ci 4 :

https://github.com/kunalvarma05/dropbox-php-sdk

With composer i install on my localhost and move into my project under App\Libraries\Dropbox

i Have change all namespace from f.e. :

Code:
namespace Kunnu\Dropbox\DropboxFile


to :

Code:
namespace App\Libraries\Dropbox\Kunnu\Dropbox\DropboxFile;


in my controller  :

Code:
use App\Libraries\Dropbox\Kunnu\Dropbox\DropboxApp;
 
class Dropbox_api extends BaseController
{
    public function index()
    {
        //classi api dropbox
        $app = new App\Libraries\Dropbox\DropboxApp('xxxxxxxxxxxxxx','xxxxxxxxxxxx','sl.xxxxxxxx');

        //Configure Dropbox service
        $dropbox = new Dropbox($app);
}


But i have this  error :

Class 'App\Controllers\App\Libraries\Dropbox\DropboxApp' not found
Reply


Messages In This Thread
Dropbox library - by pippuccio76 - 11-26-2020, 05:58 AM
RE: Dropbox library - by pippuccio76 - 11-26-2020, 01:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB