getSmsHistory

Request Method: GET

Description: Retrieves all SMS history data

URL: https://api.iovox.com:444/SMS?v=3&method=getSmsHistory

The following parameters can be sent in the querystring

ParameterDescriptionDefault ValueData TypeMandatory
vAPI version to use INTEGERYES
pageThe page number to return. Use together with limit to achieve paginated results1INTEGERNO
limitDetermines how many results to return. Use together with page to achieve paginated results. Maximum here is 2000020000INTEGERNO
req_fieldsComma separated list of abbreviated fields to return in response. s=Sender, d=Destination, t=Sent time, m=Messages,d,t,mSTRINGNO
orderDetermines 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, "t_DESC" will return results ordered by Sent time with the most recent firsts_ASCSTRINGNO
senderReturns results only for the specified sender account STRINGNO
destinationReturns results only for the specified destination account STRINGNO
outputSpecifying XML or JSON returns data in XML or JSON formatXMLSTRINGNO

Result

Error Result

HTTP CodeError StringResolution
400API Version EmptyAdd a value for the v parameter in the query string
400API Version InvalidCorrect v parameter
400Request Method must be GET. x attemptedSwitch request method x to GET
400Page Number not an integerRemove non-numerics from page
400Limit not an integerRemove non-numerics from limit
400Limit must be between 1 and 20000Correct the limit parameter
400Output Type InvalidCorrect output parameter
500Internal Server ErrorRetry later

Success Result

<?xml  version="1.0"  encoding="UTF-8"?>

<response httpStatus="200">
    <current_page>1</current_page>
    <total_pages>1</total_pages>
    <total_results>4</total_results>
    <results>
        <result>
            <sender>IOVOX</sender>
            <destination>447400000000</destination>
            <time_sent>2012-11-28 11:25:26</time_sent>
            <message>You have missed a call</message>
        </result>
        <result>
            <sender>IOVOX</sender>
            <destination>447400000000</destination>
            <time_sent>2012-11-28 11:26:11</time_sent>
            <message>You have missed a call</message>
        </result>
        <result>
            <sender>IOVOX</sender>
            <destination>447411111111</destination>
            <time_sent>2012-11-28 11:26:11</time_sent>
            <message>You have missed a call</message>
        </result>
        <result>
            <sender>IOVOX</sender>
            <destination>447422222222</destination>
            <time_sent>2012-11-28 11:26:11</time_sent>
            <message>You have missed a call</message>
        </result>
    </results>
</response>