accountSettings() public méthode

Returns settings (including current trend, geo and sleep time information) for the authenticating user.
public accountSettings ( ) : array
Résultat array
 /**
  * Tests Twitter->accountSettings
  */
 public function testAccountSettings()
 {
     $response = $this->twitter->accountSettings();
     $this->assertArrayHasKey('protected', $response);
     $this->assertArrayHasKey('screen_name', $response);
     $this->assertArrayHasKey('discoverable_by_email', $response);
     $this->assertArrayHasKey('time_zone', $response);
     $this->assertArrayHasKey('tzinfo_name', $response['time_zone']);
     $this->assertArrayHasKey('name', $response['time_zone']);
     $this->assertArrayHasKey('utc_offset', $response['time_zone']);
     $this->assertArrayHasKey('use_cookie_personalization', $response);
     $this->assertArrayHasKey('sleep_time', $response);
     $this->assertArrayHasKey('enabled', $response['sleep_time']);
     $this->assertArrayHasKey('start_time', $response['sleep_time']);
     $this->assertArrayHasKey('end_time', $response['sleep_time']);
     $this->assertArrayHasKey('geo_enabled', $response);
     $this->assertArrayHasKey('always_use_https', $response);
     $this->assertArrayHasKey('language', $response);
 }