Instagram\Instagram::showFriendship PHP Method

showFriendship() public method

Show Friendship between User
public showFriendship ( string | User $userId ) : ShowFriendshipResponse
$userId string | Instagram\API\Response\Model\User User or User Id to show Friendship between
return Instagram\API\Response\ShowFriendshipResponse
    public function showFriendship($userId)
    {
        if (!$this->isLoggedIn()) {
            throw new InstagramException("You must be logged in to call showFriendship().");
        }
        if ($userId instanceof User) {
            $userId = $userId->getPk();
        }
        $request = new ShowFriendshipRequest($this, $userId);
        $response = $request->execute();
        if (!$response->isOk()) {
            throw new InstagramException(sprintf("Failed to showFriendship: [%s] %s", $response->getStatus(), $response->getMessage()));
        }
        return $response;
    }