Skip to content

Working with User Accounts

Kunal Varma edited this page Jun 30, 2016 · 6 revisions

Working with User Accounts

Get Current Account

Get current authorized user's account.

Example

$account = $dropbox->getCurrentAccount();

//Id
$account->getAccountId();

//Name
$account->getDisplayName();

//Email
$account->getEmail();

//Profile Pic URL
$account->getProfilePhotoUrl();

//Account Type
$account->getAccountType();

The getCurrentAccount() method will return an instance of the Account model.

For details & available options see: https://www.dropbox.com/developers/documentation/http/documentation#users-get_account

Clone this wiki locally