public function checkUserSubscriptionToChannel($userIdentifier, $channelIdentifier, $accessToken)
    {
        if ($this->apiVersionIsGreaterThanV3()) {
            if (!is_numeric($userIdentifier)) {
                throw new InvalidIdentifierException('user');
            }

            if (!is_numeric($channelIdentifier)) {
                throw new InvalidIdentifierException('channel');
            }
        }

        return $this->get(sprintf('users/%s/subscriptions/%s', $userIdentifier, $channelIdentifier), [], $accessToken);
    }
public function checkUserSubscriptionToChannel($userIdentifier, $channelIdentifier, $accessToken)
    {
        if ($this->apiVersionIsGreaterThanV3()) {
            if (!is_numeric($userIdentifier)) {
                throw new InvalidIdentifierException('user');
            }

            if (!is_numeric($channelIdentifier)) {
                throw new InvalidIdentifierException('channel');
            }
        }

        return $this->get(sprintf('users/%s/subscriptions/%s', $userIdentifier, $channelIdentifier), [], $accessToken);
    }
public function checkUserSubscriptionToChannel ( $ userIdentifier , $ channelIdentifier , $ accessToken ) { if ( $ this -> apiVersionIsGreaterThanV3 ( ) ) { if ( ! is_numeric ( $ userIdentifier ) ) { throw new InvalidIdentifierException ( 'user' ) ; } if ( ! is_numeric ( $ channelIdentifier ) ) { throw new InvalidIdentifierException ( 'channel' ) ; } } return $ this -> get ( sprintf ( 'users/%s/subscriptions/%s' , $ userIdentifier , $ channelIdentifier ) , [ ] , $ accessToken ) ; }
Check if a user is subscribed to a channel

@param string|int $userIdentifier
@param string|int $channelIdentifier
@param string     $accessToken
@throws InvalidIdentifierException
@return array|json
Check if a user is subscribed to a channel