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

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

Returns the list of languages supported by Twitter along with their ISO 639-1 code. The ISO 639-1 code is the two letter value to use if you include lang with any of your requests.
public helpLanguages ( ) : array
Результат array
    public function helpLanguages()
    {
        // make the call
        return $this->doCall('help/languages.json');
    }

Usage Example

Пример #1
0
 /**
  * Tests Twitter->helpLanguages()
  */
 public function testHelpLanguages()
 {
     $response = $this->twitter->helpLanguages();
     foreach ($response as $row) {
         $this->assertArrayHasKey('name', $row);
         $this->assertArrayHasKey('status', $row);
         $this->assertArrayHasKey('code', $row);
     }
 }
Twitter