get_featured_collections

Get ResourceSpace featured collections (category).

Available from version 10.3+.

Variable Description Data type Default
$parent * Featured collection parent's ref. Use 0 (zero) to get the root featured collections (and categories) integer N/A

Response

If successful, a 200 HTTP status will be returned with the body containing an array. If the parent is invalid an empty array will be returned instead.

Example

Array
(
    [0] => Array
        (
            [ref] => 5
            [name] => Animals
            [type] => 3
            [parent] => 
            [thumbnail_selection_method] => 1
            [bg_img_resource_ref] => 
            [order_by ] => 10
            [created] => 2023-11-28 11:39:28
            [has_resources] => 0
            [has_children] => 1
        )

    [1] => Array
        (
            [ref] => 7
            [name] => Museum
            [type] => 3
            [parent] => 
            [thumbnail_selection_method] => 1
            [bg_img_resource_ref] => 
            [order_by ] => 20
            [created] => 2023-11-28 11:39:49
            [has_resources] => 1
            [has_children] => 0
        )
)