Get the number of favorites in a collection.

22Aug2011

This call returns the number of assets which are added to the favorits of a user within the collection. The result is given in the header: item_count.

Request URL

/collection/$coll_id/favorites/count [GET]

Request Authorization

This call needs EGA authentication.

Request Parameters

Parameter (Type)DescriptionRequiredDefault valueMax. length
coll_id (ALPHA_NUM)The collection ID to find its favorites.Required-
mediamosa_version (MEDIAMOSA_VERSION)Provide the version to get the REST call returned in the format of the specified MediaMosa version. Keep empty or skip to retrieve in current (latest) version. Provide '2' to retrieve the REST call in 2.x format. Or be more specific by providing up to 3 digits; '2.3.0'. This setting will override any setting used by client application or the default setting in MediaMosa.Optional-

Example Request

/collection/b1Tb9eoIgOeSLZ9cGO04rPej/favorites/count

Example Response

<item_count>0</item_count>