action.skip

FlotiqApiClient

class FlotiqApiClient

Api client

Properties

Name Type Description
contenttypename ContentTypeAPIClient.<contenttypename> api client for given content type
contenttypename.get function get single content object, passing id as a argument.
Will throw an error witout access to the content type.
contenttypename.list function list content objects, passing query params as a first argument
Will throw an error witout access to the content type.
contenttypename.post function create content object, passing object as a argument
Will throw an error witout access to the content type.
contenttypename.put function update content object, passing id and object as arguments
Will throw an error witout access to the content type.
contenttypename.delete function delete content object, passing id as a argument
Will throw an error witout access to the content type.
contenttypename.getContentType function get definition for given content type
Will throw an error witout access to the content type.
contenttypename.patch function partialy update content object, passing id and object as arguments
Will throw an error witout access to the content type.
getContentTypes getContentTypes Generate url for media. Use width/height params to generate url for resized image
getMediaUrl getMediaUrl Generate url for media. Use width/height params to generate url for resized image

function getContentTypes

Generate url for media. Use width/height params to generate url for resized image

Returns - Promise.<ContentTypesResponse>
Api response containing list of content types

Parameters

Name Type Description
params object query parameters for content types list (e.g. limit, page etc)

function getMediaUrl

Generate url for media. Use width/height params to generate url for resized image

Returns - string
media url

Parameters

Name Type Description
mediaContentObject object
width number
height number