TijsVerkoyen\Twitter\Twitter::helpTos PHP Method

helpTos() public method

Returns the Twitter Terms of Service in the requested format. These are not the same as the Developer Rules of the Road.
public helpTos ( ) : array
return array
    public function helpTos()
    {
        // make the call
        return $this->doCall('help/tos.json');
    }

Usage Example

Beispiel #1
0
 /**
  * Tests Twitter->helpTos()
  */
 public function testHelpTos()
 {
     $response = $this->twitter->helpTos();
     $this->assertArrayHasKey('tos', $response);
 }
Twitter