Larabros\Elogram\Repositories\UsersRepository::setRelationship PHP Method

setRelationship() public method

Modify the relationship between the owner of the access token and the target user.
public setRelationship ( string $targetUserId, string $action ) : Response
$targetUserId string The ID of the target user
$action string Can be one of: ``follow | unfollow | approve | ignore``
return Larabros\Elogram\Http\Response
    public function setRelationship($targetUserId, $action)
    {
        $params = ['form_params' => ['action' => $action]];
        return $this->client->request('POST', "users/{$targetUserId}/relationship", $params);
    }