public function getChannelCollection($channelIdentifier, $limit = 10, $cursor = null, $containingItem = null)
    {
        if (!$this->apiVersionIsGreaterThanV3()) {
            throw new EndpointNotSupportedByApiVersionException();
        }

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

        if (!$this->isValidLimit($limit)) {
            throw new InvalidLimitException();
        }

        if ($cursor && !is_string($cursor)) {
            throw new InvalidTypeException('Cursor', 'string', gettype($cursor));
        }

        if ($containingItem && !is_string($containingItem)) {
            throw new InvalidTypeException('Containing Item', 'string', gettype($containingItem));
        }

        $params = [
            'limit' => intval($limit),
            'cursor' => $cursor,
            'containingItem' => $containingItem,
        ];

        return $this->get(sprintf('channels/%s/collections', $channelIdentifier), $params);
    }
public function getChannelCollection($channelIdentifier, $limit = 10, $cursor = null, $containingItem = null)
    {
        if (!$this->apiVersionIsGreaterThanV3()) {
            throw new EndpointNotSupportedByApiVersionException();
        }

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

        if (!$this->isValidLimit($limit)) {
            throw new InvalidLimitException();
        }

        if ($cursor && !is_string($cursor)) {
            throw new InvalidTypeException('Cursor', 'string', gettype($cursor));
        }

        if ($containingItem && !is_string($containingItem)) {
            throw new InvalidTypeException('Containing Item', 'string', gettype($containingItem));
        }

        $params = [
            'limit' => intval($limit),
            'cursor' => $cursor,
            'containingItem' => $containingItem,
        ];

        return $this->get(sprintf('channels/%s/collections', $channelIdentifier), $params);
    }
public function getChannelCollection ( $ channelIdentifier , $ limit = 10 , $ cursor = null , $ containingItem = null ) { if ( ! $ this -> apiVersionIsGreaterThanV3 ( ) ) { throw new EndpointNotSupportedByApiVersionException ( ) ; } if ( ! is_numeric ( $ channelIdentifier ) ) { throw new InvalidIdentifierException ( 'channel' ) ; } if ( ! $ this -> isValidLimit ( $ limit ) ) { throw new InvalidLimitException ( ) ; } if ( $ cursor && ! is_string ( $ cursor ) ) { throw new InvalidTypeException ( 'Cursor' , 'string' , gettype ( $ cursor ) ) ; } if ( $ containingItem && ! is_string ( $ containingItem ) ) { throw new InvalidTypeException ( 'Containing Item' , 'string' , gettype ( $ containingItem ) ) ; } $ params = [ 'limit' => intval ( $ limit ) , 'cursor' => $ cursor , 'containingItem' => $ containingItem , ] ; return $ this -> get ( sprintf ( 'channels/%s/collections' , $ channelIdentifier ) , $ params ) ; }
Get all collections owned by a channel

@param int|string $channelIdentifier
@param int        $limit
@param string     $cursor
@param string     $containingItem
@throws EndpointNotSupportedByApiVersionException
@throws InvalidIdentifierException
@throws InvalidLimitException
@throws InvalidTypeException
@return array|json
Get all collections owned by a channel