TijsVerkoyen\Dropbox\Dropbox::accountInfo PHP Метод

accountInfo() публичный Метод

Retrieves information about the user's account.
public accountInfo ( ) : array
Результат array
    public function accountInfo()
    {
        // make the call
        return (array) $this->doCall('1/account/info');
    }

Usage Example

Пример #1
0
 /**
  * Tests Dropbox->accountInfo()
  */
 public function testAccountInfo()
 {
     $response = $this->dropbox->accountInfo();
     $this->assertArrayHasKey('referral_link', $response);
     $this->assertArrayHasKey('display_name', $response);
     $this->assertArrayHasKey('uid', $response);
     $this->assertArrayHasKey('email', $response);
 }