Skip to content

search sort problem #18

@lionelbzv

Description

@lionelbzv

How could I sort a media.search listing result in created desc order?

$res = $cloudkey->media->search(array( 'per_page' => 6, 'page' => 1, 'fields' => array('id', 'meta.title'), 'sort' => array(array('-created')), 'query' => 'meta.title: football' ));

This code give me a "need more than 1 value to unpack" error.
If I put only one array, I've got the error: {"sort": {"0": "must be of list type"}}

I can't find any doc on this point.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions