public function unsubscribe()
    {
        if ($this->type != "subscription") {
            throw new Exceptions\ChannelException("The current user is not subscribed to this channel.");
        }

        Connection::sendCurlRequest(Connection::URL_SUBSCRIPTIONS . '/' . $this->iden, 'DELETE', null, false,
            $this->apiKey);
    }
public function unsubscribe()
    {
        if ($this->type != "subscription") {
            throw new Exceptions\ChannelException("The current user is not subscribed to this channel.");
        }

        Connection::sendCurlRequest(Connection::URL_SUBSCRIPTIONS . '/' . $this->iden, 'DELETE', null, false,
            $this->apiKey);
    }
public function unsubscribe ( ) { if ( $ this -> type != "subscription" ) { throw new Exceptions \ ChannelException ( "The current user is not subscribed to this channel." ) ; } Connection :: sendCurlRequest ( Connection :: URL_SUBSCRIPTIONS . '/' . $ this -> iden , 'DELETE' , null , false , $ this -> apiKey ) ; }
Unsubscribe from the channel.

@throws Exceptions\ConnectionException
@throws Exceptions\ChannelException Thrown if the user is not subscribed to the channel.
Unsubscribe from the channel .