getSoundFiles¶
Request Method: GET
Description: Retrieves a list of all sound files
URL: https://api.iovox.com:444/SoundFiles?v=3&method=getSoundFiles
The following parameters can be sent in the querystring:
Parameter | Description | Default Value | Data Type | Mandatory |
v | API version to use | INTEGER | YES | |
page | The page number to return. Use together with limit to achieve paginated results | 1 | INTEGER | NO |
limit | Determines how many results to return. Use together with page to achieve paginated results. Maximum here is 20000 | 20000 | INTEGER | NO |
order | Determines which field to order the output result by. Use a field name from the req_fields list and suffix with ASC or DESC for ascending or descending respectively. For example, "c_DESC" will return results ordered by created with the most recent first | id_ASC | STRING | NO |
req_fields | Determines which fields to return. id=sound_id, sl=sound_label, sg=sound_group, cl=content_length (in bytes), c=created ('YYYY-MM-DD HH:MM:SS),n=notes | sl,sg,cl,c,u,n | STRING | NO |
sound_label | Returns the sound files with the specified sound label (sound_label is a unique field inside each sound_group) | STRING | NO | |
sound_group | Returns the sound files with the specified sound group | STRING | NO | |
output | Specifying XML or JSON returns data in XML or JSON format | XML | STRING | NO |
Result¶
Error Result¶
HTTP Code | Error String | Resolution |
400 | API Version Empty | Add a value for the v parameter in the query string |
400 | API Version Invalid | Correct v parameter |
400 | Request Method must be GET. x attempted | Switch request method x to GET |
400 | Page Number not an integer | Remove non-numerics from page |
400 | Limit not an integer | Remove non-numerics from limit |
400 | Limit must be between 1 and 20000 | Correct the limit parameter |
400 | Output Type Invalid | Correct output parameter |
500 | Internal Server Error | Retry later |
Success Result¶
<?xml version="1.0" encoding="utf-8"?>
<response>
<current_page>1<current_page>
<total_pages>4<total_pages>
<total_results>412<total_results>
<results>
<result>
<sound_label>Label1</sound_label>
<sound_group>Group1</sound_group>
<content_length>1778359</content_length>
<created>2010-01-02 15:43:00</created>
<notes>Some notes.</notes>
</result>
<result>
...
<result>
</results>
</response>