Knowledgebase
Example XML Response (successfully queued for capture)
Posted by Brandon Elliott on 19 June 2015 03:10 PM
|
|
Here is an example of an XML response, from the "Advanced Method" API, for a "New Request" that was successfully queued.
Use the PHP simplexml library (or equivalent for your selected language) or download our sample library for legacy ways to pull the values from the XML response.
See the "STW API Documentation" for details on what the values can be and what they mean (though some are self-explanatory).
<stw:ThumbnailResponse xmlns:stw="https://shrinktheweb.com/doc/stwresponse.xsd">
<stw:Response>
<stw:ThumbnailResult>
<stw:Thumbnail
Exists="false">https://shrinktheweb.com/images/nothumb-xlg.jpg</stw:Thumbnail>
<stw:Thumbnail Verified="false">noexist</stw:Thumbnail>
</stw:ThumbnailResult>
<stw:ThumbnailSize>
<stw:StatusCode>0</stw:StatusCode>
</stw:ThumbnailSize>
<stw:ResponseStatus>
<stw:StatusCode>Success</stw:StatusCode>
</stw:ResponseStatus>
<stw:ResponseTimestamp>
<stw:StatusCode></stw:StatusCode>
</stw:ResponseTimestamp>
<stw:ResponseCode>
<stw:StatusCode></stw:StatusCode>
</stw:ResponseCode>
<stw:CategoryCode>
<stw:StatusCode></stw:StatusCode>
</stw:CategoryCode>
<stw:Quota_Remaining>
<stw:StatusCode>162</stw:StatusCode>
</stw:Quota_Remaining>
<stw:Bandwidth_Remaining>
<stw:StatusCode>999672</stw:StatusCode>
</stw:Bandwidth_Remaining>
</stw:Response>
</stw:ThumbnailResponse>
| |
|
Comments (0)