public function moveCollectionThumbnail($collectionId, $itemId, $position, $accessToken)
    {
        if (!$this->apiVersionIsGreaterThanV3()) {
            throw new EndpointNotSupportedByApiVersionException();
        }

        if (!is_string($itemId)) {
            throw new InvalidTypeException('Item ID', 'string', gettype($itemId));
        }

        if ($position < 1) {
            throw new TwitchApiException('Collection position cannot be less than 1.');
        }

        $params = [
            'position' => $position,
        ];

        return $this->put(sprintf('collections/%s/itmes/%s', $collectionId, $itemId), $params, $accessToken);
    }
public function moveCollectionThumbnail($collectionId, $itemId, $position, $accessToken)
    {
        if (!$this->apiVersionIsGreaterThanV3()) {
            throw new EndpointNotSupportedByApiVersionException();
        }

        if (!is_string($itemId)) {
            throw new InvalidTypeException('Item ID', 'string', gettype($itemId));
        }

        if ($position < 1) {
            throw new TwitchApiException('Collection position cannot be less than 1.');
        }

        $params = [
            'position' => $position,
        ];

        return $this->put(sprintf('collections/%s/itmes/%s', $collectionId, $itemId), $params, $accessToken);
    }
public function moveCollectionThumbnail ( $ collectionId , $ itemId , $ position , $ accessToken ) { if ( ! $ this -> apiVersionIsGreaterThanV3 ( ) ) { throw new EndpointNotSupportedByApiVersionException ( ) ; } if ( ! is_string ( $ itemId ) ) { throw new InvalidTypeException ( 'Item ID' , 'string' , gettype ( $ itemId ) ) ; } if ( $ position < 1 ) { throw new TwitchApiException ( 'Collection position cannot be less than 1.' ) ; } $ params = [ 'position' => $ position , ] ; return $ this -> put ( sprintf ( 'collections/%s/itmes/%s' , $ collectionId , $ itemId ) , $ params , $ accessToken ) ; }
Move a collection item

@param string $collectionId
@param string $itemId
@param int    $position
@param string $accessToken
@throws EndpointNotSupportedByApiVersionException
@throws InvalidTypeException
@throws TwitchApiException
@return null
Move a collection item