This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
connections:api [2016/05/24 16:10] jposeika [profileChangeRead: set or change user's Current read item] |
connections:api [2016/05/25 06:34] (current) jposeika [New features requiring documentation] |
||
---|---|---|---|
Line 3252: | Line 3252: | ||
- | ====== New features requiring documentation ====== | ||
===== Profile editing functions ===== | ===== Profile editing functions ===== | ||
Line 3338: | Line 3337: | ||
==== profileChangeRead: set or change user's "Current read" item ==== | ==== profileChangeRead: set or change user's "Current read" item ==== | ||
+ | === Input === | ||
+ | * URL for XML output: https://secure.chilifresh.com/api/connections/ | ||
+ | * URL for JSON output: https://secure.chilifresh.com/api/connections/json/ | ||
+ | * Method: POST | ||
+ | * To be used when retrieving information for any item | ||
+ | * Parameters: | ||
+ | |||
+ | |||
|**Parameter** |**Type (size)** |**Mandatory** |**Description **| | |**Parameter** |**Type (size)** |**Mandatory** |**Description **| | ||
|action|profileChangeRead |Yes| API call| | |action|profileChangeRead |Yes| API call| | ||
Line 3347: | Line 3354: | ||
**XML output example:** | **XML output example:** | ||
<code> | <code> | ||
- | <?xml version="1.0"?> | ||
<?xml version="1.0"?> | <?xml version="1.0"?> | ||
<response> | <response> | ||
Line 3365: | Line 3371: | ||
|3096|Read changed successfully| | |3096|Read changed successfully| | ||
|60|Session invalid, expired or empty| | |60|Session invalid, expired or empty| | ||
+ | |||
==== profileDeleteRead: delete user's "Current read" item ==== | ==== profileDeleteRead: delete user's "Current read" item ==== | ||
- | **Input:** | + | === Input === |
- | * session_id | + | * URL for XML output: https://secure.chilifresh.com/api/connections/ |
+ | * URL for JSON output: https://secure.chilifresh.com/api/connections/json/ | ||
+ | * Method: POST | ||
+ | * To be used when retrieving information for any item | ||
+ | * Parameters: | ||
- | Output: success or fail message | ||
+ | |**Parameter** |**Type (size)** |**Mandatory** |**Description **| | ||
+ | |action|profileDeleteRead |Yes| API call| | ||
+ | |session_id|Variable characters (100)|Yes| Session ID from logged in user| | ||
+ | |||
+ | |||
+ | **XML output example:** | ||
+ | <code> | ||
+ | <?xml version="1.0"?> | ||
+ | <response> | ||
+ | <response_code>3097</response_code> | ||
+ | <response_description>Current read deleted successfully</response_description> | ||
+ | <response_time>Tue, 24 May 2016 16:11:50</response_time> | ||
+ | </response> | ||
+ | </code> | ||
+ | |||
+ | |||
+ | === Response code === | ||
+ | |**Code** |**Code description** | | ||
+ | |3097|Current read deleted successfully| | ||
+ | |60|Session invalid, expired or empty| | ||
==== profileDeleteAccount: delete user's ChiliFresh account ==== | ==== profileDeleteAccount: delete user's ChiliFresh account ==== | ||
**Input:** | **Input:** |