Authorization


Registration   Forgot password?

Comments Catalogue


If you wish to receive comments to the particular order please open the following file:

comments.php


Legend:
<element> – optional elements
param – required parameters
param – optional parameters

API Request:
POST /API/comments.php?api_id=id&api_key=key HTTP/1.1
Host: www.shopxml.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

id=comment_id&ordID=order_id
(all the possible parameters of request can be found below)

API Response:
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8" ?> 
<comments>
  <comment id="comment_id" ordID="order_id" time="unix_timestamp" time_str="string" admin="string">
    <content>string</content>
  </comment>
  ...
</comments>


Request parameters (not essential to use unless specified):

id comment ID. In order to select multiple comments it should be arranged with commas or transmitted as an array (id[]).
orderID order ID. When selecting multiple comments to multiple orders it is required to list id followed by the commas or its parameter can be transmitted as an array (ordID[]).


Response parameters:

The response field gives the search results (comments) in XML format

<comments> - external container
<comment> - comment (repetitive)
id - comment ID (unique identification), an integer.
ordID - order ID, an integer number.
time - it indicates the actual time when this particular product was added in the UNIX-TIMESTAMP format.
time_str - time string
admin* - user name of the end user who posted this particular comment (might be non-existent if it was created utilizing API).
<content> - comment content
Contact Us Legal and Policies Sitemap
© XMLShop.com 2004 – 2018