Skip to content

A PHP client library for Oauth2 Authentication And accessing Dropbox APIs

Notifications You must be signed in to change notification settings

shahbaz-ali/dropbox-api-php-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dropbox-api-php-client

A PHP client library for Oauth2 Authentication And accessing Dropbox APIs

Lead Maintainer: Shahbaz Ali

Collaborators : Azmat Fayaz, Majid Kundroo, Naffi Ahanger

Basic Example

Authentication with OAuth2

require 'dropbox-api-client.php';

    $oauth_config = [
        'client_id' => <client id>,
        'redirect_uri' => '<redirect uri>',
    ];
    $client = new Dropbox_Client($oauth_config);
if (isset($_GET['code']) && strlen($_GET['code'])>0){
    /**
    * Authentication 
    */
    $client->setClientSecret(<client secret>);
    $client->authenticate($_GET['code']);
}else{
    /**
    *  Authorization
    */
    $client->authorize();
}

About

A PHP client library for Oauth2 Authentication And accessing Dropbox APIs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages