This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
reviews:api [2016/04/06 09:31] jposeika [Input] |
reviews:api [2016/11/25 14:34] (current) jposeika [Input] |
||
|---|---|---|---|
| Line 1302: | Line 1302: | ||
| |**Parameter** |**Type (size)** |**Mandatory** | | |**Parameter** |**Type (size)** |**Mandatory** | | ||
| - | |action|**ratedItems** |Yes| | + | |action|**ramingReview** |Yes| |
| |account|Integer (10)|Yes| | |account|Integer (10)|Yes| | ||
| |location|Variable characters (40)|Yes| | |location|Variable characters (40)|Yes| | ||
| Line 2195: | Line 2195: | ||
| |**Code** |**Code description** | | |**Code** |**Code description** | | ||
| |1001|Response OK| | |1001|Response OK| | ||
| + | |60|Session invalid, expired or empty| | ||
| + | |||
| + | ===== ratingUserCheck: checks whether user has rated this item already ===== | ||
| + | Checks whether user has rated particular items. | ||
| + | |||
| + | ==== Input ==== | ||
| + | * URL for XML output: https://secure.chilifresh.com/api/reviews/ | ||
| + | * URL for JSON output: https://secure.chilifresh.com/api/reviews/json/ | ||
| + | * Method: GET | ||
| + | * Parameters: | ||
| + | |||
| + | |**Parameter** |**Type (size)** |**Mandatory** | | ||
| + | |action|**ratingUserCheck** |Yes| | ||
| + | |account|Integer (10)|Yes| | ||
| + | |isbn|Varchar (20)|Yes| | ||
| + | |session_id|Session ID|Yes| | ||
| + | |location|Variable characters (40)|Yes| | ||
| + | |api_key|Variable characters (40)|Yes| | ||
| + | |||
| + | ==== Output ==== | ||
| + | * Format: XML, JSON | ||
| + | * Blocks and elements: | ||
| + | |||
| + | **XML output example:** | ||
| + | <code> | ||
| + | <?xml version="1.0"?> | ||
| + | <response> | ||
| + | <response_code>100</response_code> | ||
| + | <response_description>Response OK</response_description> | ||
| + | <rating_count>1</rating_count> | ||
| + | <response_time>Wed, 26 Aug 2009 13:20:05</response_time> | ||
| + | <rating>4</rating> | ||
| + | </response> | ||
| + | </code> | ||
| + | |||
| + | ==== Response code ==== | ||
| + | |**Code** |**Code description** | | ||
| + | |100|Response OK| | ||
| + | |120|ISBN is empty| | ||
| |60|Session invalid, expired or empty| | |60|Session invalid, expired or empty| | ||