Returns a map of the available size variations of the specified user's profile banner. If the user has not uploaded a profile banner, a HTTP 404 will be served instead.
public usersProfileBanner ( string[optional] $userId = null, string[optional] $screenName = null ) : array | ||
$userId | string[optional] | |
$screenName | string[optional] | |
return | array |
/** * Tests Twitter->usersProfileBanner */ public function testUsersProfileBanner() { $response = $this->twitter->usersProfileBanner(null, 'tijs_dev'); $this->assertArrayHasKey('sizes', $response); foreach ($response['sizes'] as $row) { $this->assertArrayHasKey('w', $row); $this->assertArrayHasKey('h', $row); $this->assertArrayHasKey('url', $row); } }