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

Allows one to enable or disable retweets and device notifications from the specified user.
public friendshipsUpdate ( string[optional] $userId = null, string[optional] $screenName = null, bool[optional] $device = null, bool[optional] $retweets = null ) : array
$userId string[optional]
$screenName string[optional]
$device bool[optional]
$retweets bool[optional]
Результат array
Пример #1
0
 /**
  * Tests Twitter->friendshipsUpdate
  */
 public function testFriendshipsUpdate()
 {
     $response = $this->twitter->friendshipsUpdate(null, 'sumocoders', true, true);
     $this->assertArrayHasKey('relationship', $response);
     $this->assertArrayHasKey('target', $response['relationship']);
     $this->assertArrayHasKey('followed_by', $response['relationship']['target']);
     $this->assertArrayHasKey('following', $response['relationship']['target']);
     $this->assertArrayHasKey('screen_name', $response['relationship']['target']);
     $this->assertArrayHasKey('id', $response['relationship']['target']);
     $this->assertArrayHasKey('source', $response['relationship']);
     $this->assertArrayHasKey('followed_by', $response['relationship']['source']);
     $this->assertArrayHasKey('following', $response['relationship']['source']);
     $this->assertArrayHasKey('screen_name', $response['relationship']['source']);
     $this->assertArrayHasKey('id', $response['relationship']['source']);
 }