Forums

    2 posts

  • avatar
    0 sounds
    1 post
    searchTextXML.php changed?


    hello,
    until some days ago searchTextXML.php gave me back a list of sample elements with id attribute.
    now I got only the number of results...
    has it changed is anser?

  • avatar
    121 sounds
    1538 posts


    apologies... here I was thinking no-one used it anymore.

    http://www.freesound.org/searchTextXML.php?search=broken&searchDescriptions=1&searchTags=1&searchFilenames=0&searchUsernames=0&order=1&start=5&limit=6

    I.e. we added: "order", "start" (0, ...) and "limit" (nr of results returned)

    the XML now also returns the number of total items:

    <freesound nresults="339">
    <sample id="33210"/>
    <sample id="1411"/>
    <sample id="42907"/>
    <sample id="42906"/>
    <sample id="527"/>
    <sample id="42901"/>
    </freesound>

    Here are the orders:

    const ORDER_DEFAULT = 0;
    const ORDER_DOWNLOADS_DESC = 1;
    const ORDER_DOWNLOADS_ASC = 2;
    const ORDER_USERNAME_DESC = 3;
    const ORDER_USERNAME_ASC = 4;
    const ORDER_DATE_DESC = 5;
    const ORDER_DATE_ASC = 6;
    const ORDER_DURATION_DESC = 7;
    const ORDER_DURATION_ASC = 8;
    const ORDER_FILEFORMAT_DESC = 9;
    const ORDER_FILEFORMAT_ASC = 10;

    hope that helps,

    Please let me know at support AT freesound DOT org what your email address is so we can add you to our to-be-created freesound-api mailing list.

    - bram

    Warning: if you break the rules, see my avatar. Freesound Admin, Moderator, Ex-Freesound-Coder & Benevolent Dictator For Life.

    2 posts