This is an old revision of the document!
Using Keys API you can generate and manipulate ChiliFresh Reviews API keys. It has output available in XML and JSON.
| Parameter | Type (size) | Mandatory | Description |
| account | Integer (10) | Yes | ChiliFresh library account ID |
| Block | Element | Type (size) | Exists | Description |
| Block response starts | Always | |||
| response | response_code | Integer (1) | Always | Response code 1 - response OK, 0 - missing item ID |
| response | response_description | Text (255) | Always | Brief description of response code |
| response | response_time | Date&time (D, d M Y H:i:s -hhmm) | Always | Example: Thu, 30 Jun 2010 07:25:58 -0500 |
| response | api_key | Varchar(32) | If successful request | Reviews API key |
| Block response ends | ||||
XML input example:
https://secure.chilifresh.com/api/generatekey/?account=1234&action=generateKey
XML output example:
<response>
<response_code>100</response_code>
<response_description>API key generated</response_description>
<response_time>Fri, 05 Aug 2011 20:26:12</response_time>
<api_key>492450b3d1a94c136887cef5c317713f</api_key>
</response>
JSON input example:
https://secure.chilifresh.com/api/generatekey/json/?account=1234&action=generateKey
JSON output example:
{"response":
{"response_code":"100",
"response_description":"API key generated",
"response_time":"Fri, 05 Aug 2011 20:29:41",
"api_key":"80db3274f63128835425145be21311c4"}
}
| Response code | Response description |
| 100 | API key generated |
| 101 | API key generating error |