TijsVerkoyen\Twitter\Twitter::helpConfiguration PHP Метод

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

It is recommended applications request this endpoint when they are loaded, but no more than once a day.
public helpConfiguration ( ) : array
Результат array
    public function helpConfiguration()
    {
        // make the call
        return $this->doCall('help/configuration.json');
    }

Usage Example

Пример #1
0
 /**
  * Tests Twitter->helpConfiguration()
  */
 public function testHelpConfiguration()
 {
     $response = $this->twitter->helpConfiguration();
     $this->assertArrayHasKey('non_username_paths', $response);
     $this->assertArrayHasKey('photo_size_limit', $response);
     $this->assertArrayHasKey('max_media_per_upload', $response);
     $this->assertArrayHasKey('characters_reserved_per_media', $response);
     $this->assertArrayHasKey('short_url_length', $response);
     $this->assertArrayHasKey('photo_sizes', $response);
     $this->assertArrayHasKey('short_url_length_https', $response);
 }
Twitter