Returns detailed information about the relationship between two arbitrary users.
public friendshipsShow ( string[optional] $sourceId = null, string[optional] $sourceScreenName = null, string[optional] $targetId = null, string[optional] $targetScreenName = null ) : array | ||
$sourceId | string[optional] | |
$sourceScreenName | string[optional] | |
$targetId | string[optional] | |
$targetScreenName | string[optional] | |
return | array |
/** * Tests Twitter->friendshipsShow */ public function testFriendshipsShow() { $response = $this->twitter->friendshipsShow(null, 'Bert', null, 'Ernie'); $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']); }