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

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

Returns a collection of numeric IDs for every user who has a pending request to follow the authenticating user.
public friendshipsIncoming ( string[optional] $cursor = null, bool[optional] $stringifyIds = true ) : array
$cursor string[optional]
$stringifyIds bool[optional]
Результат array
    public function friendshipsIncoming($cursor = null, $stringifyIds = true)
    {
        // build parameters
        $parameters = null;
        if ($cursor != null) {
            $parameters['cursor'] = (string) $cursor;
        }
        $parameters['stringify_ids'] = (bool) $stringifyIds ? 'true' : 'false';
        // make the call
        return $this->doCall('friendships/incoming.json', $parameters, true);
    }

Usage Example

Пример #1
0
 /**
  * Tests Twitter->friendshipsIncoming
  */
 public function testFriendshipsIncoming()
 {
     $response = $this->twitter->friendshipsIncoming();
     $this->assertArrayHasKey('ids', $response);
     $this->assertArrayHasKey('next_cursor', $response);
     $this->assertArrayHasKey('previous_cursor', $response);
 }
Twitter