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); }
/** * Tests Twitter->friendshipsIncoming */ public function testFriendshipsIncoming() { $response = $this->twitter->friendshipsIncoming(); $this->assertArrayHasKey('ids', $response); $this->assertArrayHasKey('next_cursor', $response); $this->assertArrayHasKey('previous_cursor', $response); }