User Tools

Site Tools


connections:api

Table of Contents

Connections API and widgets

Using Connections API you can implement single-signon to OPAC, and other Connections features. It has output available in XML and JSON.

Please note:

  • parameter account in the documentation is your library's ChiliFresh account ID
  • parameter location is particular location's variable
  • parameter api_key is the unique API key needed to be submitted with all requests. You can manage and get API keys by logging on to Admin panel (http://chilifresh.com) → Reviews tab [will be moved to General tab soon] → API section

Proposed workflow

Here are the expected steps between ChiliFresh (CF), integrated library system / online public access catalog (OPAC) and user that are expected to be taken for the functions.

User registration

  1. Once user account gets created in ILS, or when user accessess OPAC for the first time and opts=in or an existing user opts-in to become ChiliFresh user, a userRegister call is passed to CF with e-mail (optional, for password reset and notifications only) and nickname
  2. CF passess back user_id and user_key to OPAC and they get stored with OPAC user account, as well as active session ID is passed back to OPAC which gets associated with active OPAC user session
  3. The active session ID gets included as opac_session parameter using GET method when calling CF content - whether to call Connections (using http://chilifresh.com/connections/js/api.js) file, when opening CF Reviews (using http://chilifresh.com/reviews/index.php file) and/or as init() function parameter when widgets are loaded for the first time. That way user acquires the session.
  4. After including the opac_session parameter with above mentioned files, an OPAC can make a userSessionCheck method to verify whether user has acquired the active session, and therefore OPAC no longer needs to include the opac_session with any of the files

User login

  1. Once user, that has opted-in for ChiliFresh, logs on to OPAC, a call to CF is passed including user_id and user_key parameters that were acquired and stored using userRegister method
  2. CF passess back active session ID which gets associated with active OPAC user session
  3. The active session ID gets included as opac_session parameter using GET method when calling CF content - whether to call Connections (using http://chilifresh.com/connections/js/api.js) file or when opening CF Reviews (using http://chilifresh.com/reviews/index.php file) and/or as init() function parameter when widgets are loaded for the first time. That way user acquires the session.
  4. After including the opac_session parameter with above mentioned files, an OPAC can make a userSessionCheck method to verify whether user has acquired the active session, and therefore OPAC no longer needs to include the opac_session with any of the files

User logoff

  1. Once user logs off OPAC session, a userLogout call is made to CF with the active CF session ID that was acquired either through userRegister or userLogin calls and associated with the user's OPAC session
  2. CF responds with call status as per API description above
  3. That way the user session gets terminated and will not be available to other users possibly using the particular computer (e.g., in public libraries)

Single sign-on functions

userRegister: register a user

This function allows registering a user for using ChiliFresh content

Input

ParameterType (size)Mandatory
actionuserRegister Yes
accountInteger (10)Yes
locationVariable characters (40)Yes
api_keyVariable characters (40)Yes
nicknameVariable characters (50)No
emailE-mail address (100)No
passwordVariable characters (20)No
library_cardVariable characters (40)Depends on library settings, use getAgeRestriction()
birth_dateDate (YYYY-MM-DD)Depends on library settings, use getAgeRestriction()
birth_date_verifiedtrue, false or emptyDepends on library settings, use getAgeRestriction()
session_intervalInteger (6) - in secondsNo (if empty, will apply default session length of 1440 seconds)

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (3)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseuser_descriptionText (255)If error code 270Brief description to display to users
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
responseuser_idInteger (10)If response_code is “200”ChiliFresh user ID
responseuser_keyVarchar (32)If response_code is “200”ChiliFresh user key for OPAC session identification
responsesession_idVariable chars (100)If response_code is “200”Logged in user's session ID
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>200</response_code>
 <response_description>User registered</response_description>
 <response_time>Wed, 26 Aug 2009 13:17:31</response_time>
 <user_id>3455</user_id>
 <user_key>a09s8d09as8d0a9s8da0s8da0s9d8a90</user_key>
 <session_id>896de1f873893451f4d69881bb1b3362</session_id>
</response>

Response code

Code Code description
200User registered
210Nickname already taken
220Inappropriate e-mail format
230E-mail already used
240[ERROR DEPRECATED] Empty e-mail
250[ERROR DEPRECATED] Empty nickname
260Empty password
270Birth date empty or incorrect
280Users aged under 13 are not allowed to register

userLogin: login of a registered user

This function allows logging in a registered user for using ChiliFresh content

Input

Parameter Type (size) Mandatory
actionuserLogin Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
locationVariable characters (40)Yes
emailE-mail address (100)Yes (if user_id and user_key are empty)
passwordVariable characters (20)Yes (if user_id and user_key are empty)
user_idInteger (10)Yes (if email and password are empty)
user_keyVariable characters (32)Yes (if email and password are empty)
session_intervalInteger (6) - in secondsNo (if empty, will apply default session length of 1440 seconds)

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (3)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseuser_descriptionText (255)If response code 340 presentBrief description to display to users
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
responseuser_idInteger (10)If response_code is “300”ChiliFresh user ID
responsesession_idVariable chars (100)If response_code is “300”Logged in user's session ID
responseuser_keyVariable chars (100)If response_code is “300”Logged in user's user key
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>300</response_code>
 <response_description>User logged in</response_description>
 <response_time>Wed, 26 Aug 2009 13:20:05</response_time>
 <user_id>84</user_id>
 <session_id>896de1f873893451f4d69881bb1b3362</session_id>
 <user_key>as9jd9f92jdmm402jdmal333dj53d032</user_key>
</response>

Response code

Code Code description
300User logged in
310Wrong e-mail/password
311Invalid user key
320Empty password
330Empty e-mail
340Age restriction issue

userSessionCheck: check whether user has acquired OPAC session

This function allows checking whether OPAC session has been acquired by the user.

Input

Parameter Type (size) Mandatory
actionuserSessionCheck Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
locationVariable characters (40)Yes
user_idInteger (10)Yes
session_idVariable characters (100)Yes

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>401</response_code>
 <response_description>User session assigned</response_description>
 <response_time>Wed, 26 Aug 2009 14:20:05</response_time>
</response>

Response code

Code Code description
401User session assigned
402Session not found
403Session not assigned yet

userDelete: delete registered ChiliFresh user account

This function allows user to delete ChiliFresh account

Input

Parameter Type (size) Mandatory
actionuserDelete Yes
accountInteger (10)Yes
locationVariable characters(40)Yes
session_idVariable characters (100)Yes
api_keyVariable characters (40)Yes

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>1100</response_code>
 <response_description>User account deleted</response_description>
 <response_time>Wed, 26 Aug 2009 14:20:05</response_time>
</response>

Response code

Code Code description
1100User account deleted
60Session invalid, expired or empty

getAgeRestriction: get settings for library's age restriction

This function allows to see what age restrictions library has

Input

Parameter Type (size) Mandatory
actiongetAgeRestriction Yes
accountInteger (10)Yes
locationVariable characters (50)No
api_keyVariable characters (40)Yes

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (3)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
responserequire_birth_datebooleanAlwausIf birth date is required
responseallow_signup_before_13booleanAlwaysWhether to allow sign-ups for users younger than 13
responseverification_statustinyint (1)AlwaysWhether advanced age verification is on
responseverification_typetinyint (1)If verification_status is trueType of verification - library-card, e-mail or manual
responseverification_otherbooleanIf verification_status is true???
responsestrict_signup_requiredbooleanIf verification_status is trueWhether strict verification performed at sign-up
Block response ends

XML output example:

<response>
   <response_code>500</response_code>
   <response_time>Sun, 21 Oct 2012 18:01:41</response_time></response>
   <require_birth_date>1</require_birth_date>
   <allow_signup_before_13>1</allow_signup_before_13>
   <restriction_status>1</restriction_status>
   <age_limit>13</age_limit>
   <verification_status>1</verification_status>
   <verification_type>1</verification_type>
   <verification_other>1</verification_other>
   <strict_signup_required>0</strict_signup_required>
</response>

Response code

Code Code description
500Age restrictions supplied

userLogout: log-out of a logged in user

This function allows logging out a logged in user

Input

Parameter Type (size) Mandatory
actionuserLogout Yes
accountInteger (10)Yes
session_idVariable characters (100)Yes
locationVariable characters(40)Yes
api_keyVariable characters (40)Yes

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>1000</response_code>
 <response_description>User logout OK</response_description>
 <response_time>Wed, 26 Aug 2009 14:20:05</response_time>
</response>

Response code

Code Code description
1000User logout OK
60Session invalid, expired or empty

userGetPassword: reset password for user

This function allows resetting a password of a registered user

Input

Parameter Type (size) Mandatory
actionuserGetPassword Yes
accountInteger (10)Yes
emailE-mail address (100)If nickname empty
nicknameVariable characters (20)If email empty
locationVariable characters (40)Yes
api_keyVariable characters (40)Yes

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (3)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>700</response_code>
 <response_description>Password reset and sent sucessfully</response_description>
 <response_time>Wed, 26 Aug 2009 13:28:18</response_time>
</response>

Response code

Code Code description
700Password reset and sent sucessfully
710Password not sent due to internal error
720No such user
730Supplied e-mail not valid
740Both e-mail and nickname empty
Error code Error description
0System error
1Invalid (empty) API key
2Invalid API key
3API key request limit reached
4API key deactivated
20Empty account ID
30Account does not exists
40Account suspended
50Action not specified
60No session ID provided where required

User profile functions

getUserProfile: get information of logged-in (own) or other user profiles

Input

Parameters

Parameter Type (size) Mandatory
actiongetUserProfile Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
user_idInteger No (if session_id provided)
session_idVariable characters (100)No

Output

  • Format: XML, JSON
  • Blocks and elements:

State 1: If user logged in (viewing own profile information)

Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
responsenicknamevarcharAlwaysExample: Demo user
responselocationvarcharAlwaysExample: Olathe, Kansas, United States
responseavatar_small_imgvarcharAlwaysExample: http://chilifresh.com/userpic/small/blank.png
responseavatar_large_imgVarcharAlwaysExample: http://chilifresh.com/userpic/large/blank.png
responselast_loginDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block current_read starts
current_readisbnVarcharAlwaysISBN, UPC or other identifier. Example: 0780661656
current_readtitleVarcharAlwaysExample: Harry Potter and the sorcerer's stone
current_readauthorVarcharAlwaysExample: J.K. Rowling
current_readcoverVarcharAlwaysExample: https://content.chilifresh.com/?size=SC&amp;isbn=24689779
Block current_read ends
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>2900</response_code>
 <response_description>User profile information provided</response_description>
 <response_time>Thu, 26 Mar 2015 08:05:53</response_time>
 <nickname>Demo user</nickname>
 <location>Chililands, Kansas, United States</location>
 <avatar_small_img>http://chilifresh.com/userpic/small/blank.png</avatar_small_img>
 <avatar_large_img>http://chilifresh.com/userpic/large/blank.png</avatar_large_img>
 <last_login>2015-03-26 05:30:08</last_login>
 <current_read>
  <isbn>24689779</isbn>
  <title>Harry Potter and the sorcerer's stone</title>
  <author>by J.K. Rowling ; illustrations by Mary GrandPre.</author>
  <cover>https://content.chilifresh.com/?size=SC&amp;isbn=24689779</cover>
 </current_read>
</response>

State 2: If user not logged in (viewing other profile information)

Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
responsenicknamevarcharAlwaysExample: Demo user
responselocationvarcharAlwaysExample: Olathe, Kansas, United States
responseageIntegerIf user allowed displayExample: Olathe, Kansas, United States
responseavatar_small_imgvarcharAlwaysExample: http://chilifresh.com/userpic/small/blank.png
responseavatar_large_imgVarcharAlwaysExample: http://chilifresh.com/userpic/large/blank.png
responselast_loginDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block current_read starts
current_readisbnVarcharAlwaysISBN, UPC or other identifier. Example: 0780661656
current_readtitleVarcharAlwaysExample: Harry Potter and the sorcerer's stone
current_readauthorVarcharAlwaysExample: J.K. Rowling
current_readcoverVarcharAlwaysExample: https://content.chilifresh.com/?size=SC&amp;isbn=24689779
Block current_read ends
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>2900</response_code>
 <response_description>User profile information provided</response_description>
 <response_time>Thu, 26 Mar 2015 08:09:46</response_time>
 <nickname>Demo user</nickname>
 <location>Chililands, Kansas, United States</location>
 <age>32</age>
 <avatar_small_img>http://chilifresh.com/userpic/small/blank.png</avatar_small_img>
 <avatar_large_img>http://chilifresh.com/userpic/large/blank.png</avatar_large_img>
 <last_login>2015-03-26 05:30:08</last_login>
 <current_read>
  <isbn>24689779</isbn>
  <title>Harry Potter and the sorcerer's stone</title>
  <author>by J.K. Rowling ; illustrations by Mary GrandPre.</author>
  <cover>https://content.chilifresh.com/?size=SC&amp;isbn=24689779</cover>
 </current_read>
</response>

Response code

Code Code description
2900Item moved successfully
2901Cannot not move item to other bookshelf
61User not logged in or not specified

Bookshelf functions

bookshelfCreate: creating new bookshelf for a logged-in user

Input

Parameter Type (size) Mandatory Description
actionbookshelfCreate Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
shelf_titleVariable characters (40)YesBookshelf title
defaultValues: yes/noNoWhether to set bookshelf as default
publicValues: yes/noNowhether to set the bookshelf to public or private
locationVariable characters (40)Yes
session_idVariable characters (100)Yes

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
responseuser_idIntegerAlwaysExample: 84
responseshelf_idIntegerAlwaysExample: 24512
responseshelf_titleVariable charactersAlwaysExample: Demo title
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>2100</response_code>
 <response_description>Bookshelf created successfully</response_description>
 <response_time>Thu, 26 Mar 2015 05:12:12</response_time>
 <user_id>84</user_id>
 <shelf_id>24615</shelf_id>
 <shelf_title>Demo shelf</shelf_title>
</response>

Response code

Code Code description
2100Bookshelf created successfully
2101Empty bookshelf name

bookshelfDelete: removing a bookshelf for a logged-in user

Input

Parameter Type (size) Mandatory
actionbookshelfDelete Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
shelf_idVariable characters (40)Yes
locationVariable characters (40)Yes
session_idVariable characters (100)Yes

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>2200</response_code>
 <response_description>Shelf deleted successfully</response_description>
 <response_time>Thu, 26 Mar 2015 05:33:49</response_time>
</response>

Response code

Code Code description
2200Shelf deleted successfully
2201Cannot delete bookshelf
2202Empty shelf_id parameter

bookshelfMoveItem: move item before shelves of a logged-in user

Input

Parameters

Parameter Type (size) Mandatory
actionbookshelfMoveItem Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
from_shelfInteger Yes
to_shelfInteger Yes
item_idVariable characters - ISBN, UPC or other item identifierYes
session_idVariable characters (100)Yes

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>2800</response_code>
 <response_description>Item moved successfully</response_description>
 <response_time>Thu, 26 Mar 2015 07:55:08</response_time>
</response>

Response code

Code Code description
2800Item moved successfully
2801Cannot not move item to other bookshelf
2802To shelf does not belong to session user
2803From shelf does not belong to session user
2804No such item on source shelf
2805Empty or invalid from_shelf parameter
2806Empty or invalid to_shelf parameter
2807Empty item_id parameter
60Session invalid, expired or empty

bookshelfChangeSettings: change settings of existing bookshelf of a logged-in user

Input

Parameters

Parameter Type (size) Mandatory
actionbookshelfChangeSettings Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
shelf_idInteger Yes
publicValues: yes/noNo
defaultValues: yes/noNo
shelf_titleVariable characters (50)No
session_idVariable characters (100)Yes

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>2300</response_code>
 <response_description>Settings changed successfully</response_description>
 <response_time>Thu, 26 Mar 2015 07:55:08</response_time>
</response>

Response code

Code Code description
2300Settings changed successfully
2301Cannot change settings to bookshelf
2302All settings parameters empty
2303Empty shelf_id parameter
60Session invalid, expired or empty

bookshelfListShelves: list bookshelves of user

Input

Parameters

Parameter Type (size) Mandatory
actionbookshelfListUserBookshelves Yes
accountInteger (10)Yes
user_idInteger (10)No (if session_id provided)
api_keyVariable characters (40)Yes
locationVariable characters (40)Yes
session_idVariable characters (100)No (if user_id specified)

Please note: if session_id provided, the list will include all user's shelves (including private), while if user_id provided, it will only display public bookshelves.

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
responseuser_idIntegerAlwaysExample: 84
Block bookshelves starts
Block bookshelf starts
bookshelfidIntegerAlwaysBookshelf unique ID
bookshelfitem_countIntegerAlwaysNumber of items on shelf
bookshelfshelf_titleVarchar(40)AlwaysBookshelf title
bookshelforderIntegerAlwaysOrder number when listing shelves
bookshelfdefaultBoolean (yes/no)AlwaysWhether the bookshelv is default for the user
bookshelfrequiredBoolean (yes/no)AlwaysWhether the bookshelf is the required one
bookshelfpublicBoolean (yes/no)AlwaysWhether the bookshelf is public or private
bookshelfdateDate&time (D, d M Y H:i:s)AlwaysDate and time the bookshelf was created
Block bookshelf ends
Block bookshelves ends
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>2600</response_code>
 <response_description>Shelves listed successfully</response_description>
 <response_time>Thu, 26 Mar 2015 06:30:29</response_time>
 <user_id>84</user_id>
 <bookshelves>
  <bookshelf>
   <id>17447</id>
   <item_count>1</item_count>
   <shelf_title>Test shelf</shelf_title>
   <order>0</order>
   <default>no</default>
   <required>no</required>
   <public>yes</public>
   <date>Tue, 08 Apr 2014 21:19:33</date>
  </bookshelf>
  <bookshelf>
   <id>31</id>
   <item_count>11</item_count>
   <shelf_title>Current reads</shelf_title>
   <order>0</order>
   <default>no</default>
   <required>no</required>
   <public>yes</public>
   <date>Thu, 26 Mar 2009 01:00:00</date>
  </bookshelf>
  <bookshelf>
   <id>59</id>
   <item_count>8</item_count>
   <shelf_title>Wishlist</shelf_title>
   <order>0</order>
   <default>no</default>
   <required>no</required>
   <public>yes</public>
   <date>Thu, 26 Mar 2009 01:00:00</date>
  </bookshelf>
 </bookshelves>
</response>

Response code

Code Code description
2600Shelves listed successfully
61User not logged in or not specified

bookshelfRemoveItem: removing item from a shelf of a logged-in user

Input

Parameters

Parameter Type (size) Mandatory
actionbookshelfRemoveItem Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
item_idVariable characters (ISBN, UPC or other identifier of the item)Yes
shelf_idInteger - shelf ID from bookshelfListShelvesYes
locationVariable characters (40)Yes
session_idVariable characters (100)Yes

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>2500</response_code>
 <response_description>Item removed successfully</response_description>
 <response_time>Thu, 26 Mar 2015 07:31:15</response_time>
</response>

Response code

Code Code description
2500Item removed successfully
2501Cannot remove item from bookshelf
2502Empty item_id parameter
2503Empty shelf_id parameter
2504Shelf does not belong to session user
60Session invalid, expired or empty

bookshelfAddItem: add item to a shelf of a logged-in user

Input

Parameters

Parameter Type (size) Mandatory
actionbookshelfAddItem Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
shelf_idInteger (10)Yes
item_idVariable characters (ISBN, UPC or other identifier of the item)Yes
item_titleVariable charactersNo
item_authorVariable charactersNo
locationVariable characters (40)Yes
session_idVariable characters (100)Yes

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>2400</response_code>
 <response_description>Item added to shelf successfully</response_description>
 <response_time>Thu, 26 Mar 2015 07:22:19</response_time>
</response>

Response code

Code Code description
2400Item added to shelf successfully
2403Empty item identifier
2404Empty or invalid shelf_id item
2405Shelf does not belong to session user
2401Cannot identify item
2402Cannot add item to bookshelf
60Session invalid, expired or empty

bookshelfListItems: list items of particular bookshelf

Input

Parameters

Parameter Type (size) Mandatory
actionbookshelfListItems Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
user_idIntegerYes, if session_id not specified
shelf_idIntegerYes
locationVariable characters (40)Yes
session_idVariable characters (100)Yes, if user_id not specified

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
responseuser_idIntegerAlwaysExample: 84
responseshelf_idIntegerAlwaysExample: 23125
responseshelf_titleVarchar(40)AlwaysBookshelf title
responseshelf_typeVarchar(40)AlwaysBookshelf type - public or private
responseshelf_type_descriptionVarchar(40)AlwaysBookshelf type description, e.g. “Own, full access”
Block items starts
Block item starts
itemtitleVarcharAlwaysItem title
itemauthorVarcharAlwaysItem author
itemisbnVarcharAlwaysItem ISBN
itemitem_idIntegerAlwaysUnique CF item ID
itemwork_idIntegerAlwaysUnique CF work ID
itemitem_idIntegerAlwaysUnique CF item ID
itemdateDate&time (D, d M Y H:i:s)AlwaysDate item added to shelf
Block item ends
Block items ends
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>2700</response_code>
 <response_description>Listing of bookshelf successful</response_description>
 <response_time>Thu, 26 Mar 2015 06:59:48</response_time>
 <user_id>84</user_id>
 <shelf_id>31</shelf_id>
 <shelf_title>Current reads</shelf_title>
 <item_count>11</item_count>
 <shelf_type>private</shelf_type>
 <shelf_type_description>Own, full access</shelf_type_description>
 <items>
  <item>
   <title>Pizza fun</title>
   <author>Judy Bastyra.</author>
   <isbn>0753450615</isbn>
   <item_id>4882272</item_id>
   <work_id>3324237</work_id>
   <date>Mon, 28 Oct 2013 12:38:01</date>
  </item>
  <item>
   <title>The Help</title>
   <author>Stockett, Kathryn</author>
   <isbn>9780425232200</isbn>
   <item_id>5885860</item_id>
   <work_id>59707</work_id>
   <date>Mon, 03 Mar 2014 17:31:21</date>
  </item>
 </items>
</response>

Response code

Code Code description
2700Shelves listed successfully
2701Empty shelf_id parameter
2702Shelf does not belong to session or specified user
61User not logged in or not specified

Messaging functions

Consider limitations:
  • Users can specify privacy settings, therefore not all of users will accept messages sent from any user who are not in their friends list - use messageRecipientGet call for that and consider <allow_sending> parameter - if true, the message will be accepted.

messageGetInboxList: get inbox list of messages for particular user

Input

Parameter Type (size) Mandatory Description
actionmessageGetInboxList Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
locationVariable characters (40)Yes
page_sizeInteger (5)No Page size of response list
page_numberInteger (5)No Page number for response list
session_idVariable characters (100)Yes

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responsepage_sizeInteger (5)AlwaysInbox list response size, default = 10
responsepage_numberInteger (5)AlwaysInbox list response page number
responsemessage_countInteger (10)AlwaysTotal message count for the user
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block messages startsAlways
Block message startsAlways
messagesender_nameVariable charactersAlwaysExample: Demo user
messagesender_idIntegerAlwaysExample: 24512
messagesubjectVariable charactersAlwaysExample: Demo subject
messagedatetimeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
messagemessage_statusBooleanAlwaysExample: 1 - message viewed, 0 - message unread
messagemessage_idIntegerAlwaysExample: 23254
Block message startsAlways
Block messages endsAlways
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3000</response_code>
 <response_description>Inbox message list successful</response_description>
 <response_time>Sun, 19 Apr 2015 16:08:16</response_time>
 <page_size>10</page_size>
 <page_number>1</page_number>
 <message_count>8</message_count>
 <messages>
  <message>
   <sender_name>Demo user</sender_name>
   <sender_id>84</sender_id>
   <subject>You have a Book club invitation!</subject>
   <datetime>2011-02-26 19:26:40</datetime>
   <message_id>2344</message_id>
   <status>1</status>
  </message>
  <message>
   <sender_name>Administrator</sender_name>
   <sender_id>64</sender_id>
   <subject>Test</subject>
   <datetime>2011-05-09 19:14:10</datetime>
   <message_id>4356</message_id>
   <status>1</status>
  </message>
 </messages>
</response>

Response code

Code Code description
3000Inbox message list successful
60Session invalid, expired or empty

messageGetSentList: get sent list of messages for particular user

Input

Parameter Type (size) Mandatory Description
actionmessageGetSentList Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
locationVariable characters (40)Yes
page_sizeInteger (5)No Page size of response list
page_numberInteger (5)No Page number for response list
session_idVariable characters (100)Yes

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responsepage_sizeInteger (5)AlwaysInbox list response size, default = 10
responsepage_numberInteger (5)AlwaysInbox list response page number
responsemessage_countInteger (10)AlwaysTotal message count for the user
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block messages startsAlways
Block message startsAlways
messagesender_nameVariable charactersAlwaysExample: Demo user
messagesender_idIntegerAlwaysExample: 24512
messagesubjectVariable charactersAlwaysExample: Demo subject
messagedatetimeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
messagemessage_idIntegerAlwaysExample: 23254
Block message startsAlways
Block messages endsAlways
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3001</response_code>
 <response_description>Sent messages list successful</response_description>
 <response_time>Sun, 19 Apr 2015 16:15:55</response_time>
 <page_size>10</page_size>
 <page_number>1</page_number>
 <message_count>3</message_count>
 <messages>
  <message>
   <recepient_name>Administrator</recepient_name>
   <recepient_id>64</recepient_id>
   <subject>Test message</subject>
   <datetime>2009-08-20 04:31:52</datetime>
   <message_id>1264</message_id>
  </message>
  <message>
   <recepient_name>Demo user</recepient_name>
   <recepient_id>84</recepient_id>
   <subject>You have a Book club invitation!</subject>
   <datetime>2011-02-26 19:26:40</datetime>
   <message_id>2284</message_id>
  </message>
  <message>
   <recepient_name>pls-nn-12</recepient_name>
   <recepient_id>227629</recepient_id>
   <subject>Test</subject>
   <datetime>2012-12-29 16:12:50</datetime>
   <message_id>227629</message_id>
  </message>
 </messages>
</response>

Response code

Code Code description
3001Sent messages list successful
60Session invalid, expired or empty

messageGetNewCount: get count and IDs of new (unread) messages

Input

Parameter Type (size) Mandatory Description
actionmessageGetNewCount Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
locationVariable characters (40)Yes
session_idVariable characters (100)Yes

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responsemessage_countInteger (10)AlwaysTotal message count for the user
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block messages startsAlways
messagesmessage_idIntegerAlwaysExample: 23254
Block messages endsAlways
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3002</response_code>
 <response_description>New messages count successful</response_description>
 <response_time>Sun, 19 Apr 2015 16:57:56</response_time>
 <message_count>1</message_count>
 <message_id>2872</message_id>
</response>

Response code

Code Code description
3002New messages count successful
60Session invalid, expired or empty

messageGet: get contents of specific message

Input

Parameter Type (size) Mandatory Description
actionmessageGet Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
locationVariable characters (40)Yes
session_idVariable characters (100)Yes
message_idInteger (10)Yes Message ID from messageGetInboxList or messageGetSentList

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block message startsAlways
messagesender_idIntegerAlwaysExample: 23254
messagesender_nameVariable characters (50)AlwaysExample: Demo user
messagesubjectVariable characters (100)AlwaysExample: About book on your shelf
messagedatetimeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
messagemessage_textText (3000)AlwaysText in the message
Block message endsAlways
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3003</response_code>
 <response_description>Message contents retrieved successfully</response_description>
 <response_time>Sun, 19 Apr 2015 16:57:56</response_time>
 <message>
   <sender_id>84</sender_id>
   <sender_name>Demo user</sender_name>
   <subject>About book on your shelf</subject>
   <message_time>Sun, 19 Apr 2015 16:57:56</message_time>
   <message_text>I would like to know more about book on your shelf</message_text>
 </message>
</response>

Response code

Code Code description
3003Message contents retrieved successfully
3010Message does not exist
3011Empty or invalid message_id parameter
60Session invalid, expired or empty

messageReply: reply to specific message

Input

Parameter Type (size) Mandatory Description
actionmessageReply Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
locationVariable characters (40)Yes
session_idVariable characters (100)Yes
message_idInteger (10)Yes Message ID from messageGetInboxList or messageGetSentList
message_textText (3000)Yes Message text in reply to a specific message

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3004</response_code>
 <response_description>Message sent successfully</response_description>
 <response_time>Sun, 19 Apr 2015 16:57:56</response_time>
</response>

Response code

Code Code description
3004Message sent successfully
3010Message does not exist
3011Empty or invalid message_id parameter
3012Empty message_text parameter
60Session invalid, expired or empty

messageDelete: delete specific message

Input

Parameter Type (size) Mandatory Description
actionmessageDelete Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
locationVariable characters (40)Yes
session_idVariable characters (100)Yes
message_idInteger (10)Yes Message ID from messageGetInboxList or messageGetSentList

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3006</response_code>
 <response_description>Message deleted successfully</response_description>
 <response_time>Sun, 19 Apr 2015 16:57:56</response_time>
</response>

Response code

Code Code description
3006Message deleted successfully
3010Message does not exist
3011Empty or invalid message_id parameter
60Session invalid, expired or empty

messageNew: send message to a user

Input

Parameter Type (size) Mandatory Description
actionmessageNew Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
locationVariable characters (40)Yes
session_idVariable characters (100)Yes
recipient_idInteger (10)Yes ChiliFresh user ID from messageRecipientGet or elsewhere
subjectVarchar (50)Yes Message subject
message_textText (3000)Yes Message text

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3007</response_code>
 <response_description>Message sent successfully</response_description>
 <response_time>Sun, 19 Apr 2015 16:57:56</response_time>
</response>

Response code

Code Code description
3004Message sent successfully
3007You are not allowed to send a message to this user
3008Empty message and/or subject
3009Recipient not specified
60Session invalid, expired or empty

messageRecipientGet: get information on potential recipient

Input

Parameter Type (size) Mandatory Description
actionmessageReply Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
locationVariable characters (40)Yes
session_idVariable characters (100)Yes
user_emailVarchar (100)No User e-mail - to look up user by e-mail
nicknameVarchar (50)No User nickname - to look up user by nickname
recipient_idInteger (10)No User ID - to look up user privacy status by ID

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block user startsAlways
userrecipient_idInteger (10)AlwaysUser ID, example: 84123
userallow_sendingBoolean (0/1)AlwaysWhether sender is allowed to send messages to recipient (considering recipient's privacy settings)
Block user endsAlways
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3004</response_code>
 <response_description>Message sent successfully</response_description>
 <response_time>Sun, 19 Apr 2015 16:57:56</response_time>
  <user>
    <recipient_id>84</recipient_id>
    <allow_sending>1</allow_sending>
  </user>
</response>

Response code

Code Code description
3008User found
3009User does not exist
60Session invalid, expired or empty

Friending functions

friendsBrowseLibraryUsers: browse users of Connections users in library

Input

Parameter Type (size) Mandatory Description
actionfriendsBrowseLibraryUsers Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
locationVariable characters (40)Yes
page_sizeInteger (5)No Page size of response list
page_numberInteger (5)No Page number for response list
session_idVariable characters (100)Yes

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responsepage_sizeInteger (5)AlwaysResponse page size, default = 10
responsepage_numberInteger (5)AlwaysResponse page number
responseuser_countInteger (10)AlwaysTotal user count presented
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block users startsAlways
Block user startsAlways
useruser_idInteger (10)AlwaysExample: Demo user
usernicknameVariable characters (50)AlwaysExample: Demo user
userlast_loginDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
usercityVariable charactersAlwaysExample: Bloomington
userstateVariable charactersAlwaysExample: WA
usercountryVariable charactersAlwaysExample: US
userquoteVariable charactersAlwaysExample: “Pasaionate for books”
useruser_image_smallVariable charactersAlwaysExample: http://chilifresh.com/userpic/small/blank.png
useruser_image_mediumVariable charactersAlwaysExample: http://chilifresh.com/userpic/medium/blank.png
useruser_image_largeVariable charactersAlwaysExample: http://chilifresh.com/userpic/large/blank.png
Block user endsAlways
Block users endsAlways
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3013</response_code>
 <response_description>Library user browsing successful</response_description>
 <response_time>Sun, 24 May 2015 07:26:05</response_time>
 <page_size>10</page_size>
 <page_number>1</page_number>
 <user_count>1</user_count>
 <users>
  <user>
   <user_id>64</user_id>
   <nickname>Administrator</nickname>
   <last_login>2015-04-21 15:08:45</last_login>
   <city>Mesa</city>
   <state>AZ</state>
   <country>US</country>
   <quote>Cool users are cool</quote>
   <user_image_small>http://chilifresh.com/userpic/small/blank.png</user_image_small>
   <user_image_medium>http://chilifresh.com/userpic/midthumbs/blank.png</user_image_medium>
   <user_image_large>http://chilifresh.com/userpic/large/blank.png</user_image_large>
  </user>
 </users>
</response>

Response code

Code Code description
3013Library user browsing successful
60Session invalid, expired or empty

friendsList: list of user's friends - own and other user profile

Input

Parameter Type (size) Mandatory Description
actionfriendsList Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
locationVariable characters (40)Yes
page_sizeInteger (5)No Page size of response list
page_numberInteger (5)No Page number for response list
session_idVariable characters (100)Yes
user_idInteger (10)NoTo list friends of different user then the one with session

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseuser_idInteger (10)AlwaysUser ID for friendlist
responsepage_numberInteger (5)AlwaysResponse page number
responsepage_sizeInteger (5)AlwaysResponse size, default = 10
responseuser_countInteger (10)AlwaysTotal user count presented
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block users startsAlways
Block user startsAlways
useruser_idInteger (10)AlwaysExample: Demo user
usernicknameVariable characters (50)AlwaysExample: Demo user
userlast_loginDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
usercityVariable charactersAlwaysExample: Bloomington
userstateVariable charactersAlwaysExample: WA
usercountryVariable charactersAlwaysExample: US
userquoteVariable charactersAlwaysExample: “Pasaionate for books”
useruser_image_smallVariable charactersAlwaysExample: http://chilifresh.com/userpic/small/blank.png
useruser_image_mediumVariable charactersAlwaysExample: http://chilifresh.com/userpic/medium/blank.png
useruser_image_largeVariable charactersAlwaysExample: http://chilifresh.com/userpic/large/blank.png
Block user endsAlways
Block users endsAlways
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3014</response_code>
 <response_description>User search successful</response_description>
 <response_time>Sun, 24 May 2015 07:26:05</response_time>
 <page_size>10</page_size>
 <page_number>1</page_number>
 <user_count>1</user_count>
 <users>
  <user>
   <user_id>64</user_id>
   <nickname>Administrator</nickname>
   <last_login>2015-04-21 15:08:45</last_login>
   <city>Mesa</city>
   <state>AZ</state>
   <country>US</country>
   <quote>Cool users are cool</quote>
   <user_image_small>http://chilifresh.com/userpic/small/blank.png</user_image_small>
   <user_image_medium>http://chilifresh.com/userpic/midthumbs/blank.png</user_image_medium>
   <user_image_large>http://chilifresh.com/userpic/large/blank.png</user_image_large>
  </user>
 </users>
</response>

Response code

Code Code description
3014Library user browsing successful
60Session invalid, expired or empty
62User information protected

friendsInvite: invite existing Connections user to become a friend

Input

Parameter Type (size) Mandatory Description
actionfriendsInvite Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
locationVariable characters (40)Yes
user_idInteger (10)YesUser ID of a friend to invite
messageVarchar (255)NoInvitation message to the user to invite
session_idVariable characters (100)Yes

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3015</response_code>
 <response_description>Invite sent to the user</response_description>
 <response_time>Sun, 24 May 2015 07:26:05</response_time>
</response>

Response code

Code Code description
3015Invite sent to the user
3016User is already a friend
3017This user is already invited
3018User cannot invite yourself
3019User does not exist
60Session invalid, expired or empty

friendsAccept: accepting user's friending invitation

Input

Parameter Type (size) Mandatory Description
actionfriendsAccept Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
locationVariable characters (40)Yes
user_idInteger (10)YesUser ID of a friend to accept invite of
session_idVariable characters (100)Yes

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3021</response_code>
 <response_description>Friend request accepted successfully</response_description>
 <response_time>Sun, 24 May 2015 07:26:05</response_time>
</response>

Response code

Code Code description
3021Friend request accepted successfully
3022Invite not found
3023Parameter user_id is empty
60Session invalid, expired or empty

friendsReject: rejecting user friending invitation

Input

Parameter Type (size) Mandatory Description
actionfriendsReject Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
locationVariable characters (40)Yes
user_idInteger (10)YesUser ID of a friend to accept invite of
session_idVariable characters (100)Yes

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3021</response_code>
 <response_description>Friend request accepted successfully</response_description>
 <response_time>Sun, 24 May 2015 07:26:05</response_time>
</response>

Response code

Code Code description
3024User invite rejected successfully
3022Invite not found
3023Parameter user_id is empty
60Session invalid, expired or empty

friendsRemove: remove an existing friend from list

Input

Parameter Type (size) Mandatory Description
actionfriendsRemove Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
locationVariable characters (40)Yes
user_idInteger (10)YesUser ID of a friend to accept invite of
session_idVariable characters (100)Yes

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3021</response_code>
 <response_description>Friend request accepted successfully</response_description>
 <response_time>Sun, 24 May 2015 07:26:05</response_time>
</response>

Response code

Code Code description
3023Parameter user_id is empty
3025Friend removed successfully
3026This user is not in your friends list
60Session invalid, expired or empty

friendsFind: find a user by nickname or e-mail

Input

Parameter Type (size) Mandatory Description
actionfriendsFind Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
locationVariable characters (40)Yes
page_sizeInteger (5)No Page size of response list
page_numberInteger (5)No Page number for response list
session_idVariable characters (100)Yes
user_inputVariable characters (20)YeSearch term for user's nickname or e-mail

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseuser_idInteger (10)AlwaysUser ID for friendlist
responsepage_numberInteger (5)AlwaysResponse page number
responsepage_sizeInteger (5)AlwaysResponse size, default = 10
responseuser_countInteger (10)AlwaysTotal user count presented
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block users startsAlways
Block user startsAlways
useruser_idInteger (10)AlwaysExample: Demo user
usernicknameVariable characters (50)AlwaysExample: Demo user
userlast_loginDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
usercityVariable charactersAlwaysExample: Bloomington
userstateVariable charactersAlwaysExample: WA
usercountryVariable charactersAlwaysExample: US
userquoteVariable charactersAlwaysExample: “Pasaionate for books”
useruser_image_smallVariable charactersAlwaysExample: http://chilifresh.com/userpic/small/blank.png
useruser_image_mediumVariable charactersAlwaysExample: http://chilifresh.com/userpic/medium/blank.png
useruser_image_largeVariable charactersAlwaysExample: http://chilifresh.com/userpic/large/blank.png
Block user endsAlways
Block users endsAlways
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3027</response_code>
 <response_description>User search successful</response_description>
 <response_time>Sun, 24 May 2015 07:26:05</response_time>
 <page_size>10</page_size>
 <page_number>1</page_number>
 <user_count>1</user_count>
 <users>
  <user>
   <user_id>64</user_id>
   <nickname>Administrator</nickname>
   <last_login>2015-04-21 15:08:45</last_login>
   <city>Mesa</city>
   <state>AZ</state>
   <country>US</country>
   <quote>Cool users are cool</quote>
   <user_image_small>http://chilifresh.com/userpic/small/blank.png</user_image_small>
   <user_image_medium>http://chilifresh.com/userpic/midthumbs/blank.png</user_image_medium>
   <user_image_large>http://chilifresh.com/userpic/large/blank.png</user_image_large>
  </user>
 </users>
</response>

Response code

Code Code description
3027User search successful
3028Search input is empty
60Session invalid, expired or empty

friendsInvites: list of friending invitations

Input

Parameter Type (size) Mandatory Description
actionfriendsInvites Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
locationVariable characters (40)Yes
session_idVariable characters (100)Yes

Output

  • Format: XML, JSON
  • Blocks and elements:
Block Element Type (size)Exists Description
Block response startsAlways
responseresponse_codeInteger (4)AlwaysResponse code from the table below
responseresponse_descriptionText (255)AlwaysBrief description of response code
responseresponse_timeDate&time (D, d M Y H:i:s)AlwaysExample: Wed, 26 Aug 2009 10:34:32
Block response ends

XML output example:

<?xml version="1.0"?>
<response>
  <response_code>3020</response_code>
  <response_description>User invites listing successful</response_description>
  <response_time>Mon, 25 May 2015 16:57:07</response_time>
<invites>
  <invite>
    <user_id>15651</user_id>
    <date>2010-11-03 13:20:28</date>
    <message>Be my friend!</message>
  </invite>
  <invite>
    <user_id>232642</user_id>
    <date>2013-11-15 19:09:06</date>
    <message>hihow u doing is</message>
  </invite>
</invites>
</response>

Response code

Code Code description
3020User invites listing successful
60Session invalid, expired or empty

Recommendations functions

Input

Parameter Type (size) Mandatory
actionrecommendedUsers Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
session_idVariable characters (100)Yes
pageInteger (5)NoDefault: 1
page_sizeInteger (5)NoDefault: 10

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3030</response_code>
 <response_description>Listing recommended users successful</response_description>
 <response_time>Sun, 20 Mar 2016 11:23:41</response_time>
 <user_count>84</user_count>
 <page_count>9</page_count>
 <users>
  <user>
   <id>46</id>
   <nickname>ScoJo</nickname>
   <user_image_small>https://secure.chilifresh.com/userpic/small/blank.png</user_image_small>
   <user_image_medium>https://secure.chilifresh.com/userpic/midthumbs/blank.png</user_image_medium>
   <user_image_large>https://secure.chilifresh.com/userpic/large/blank.png</user_image_large>
  </user>
  <user>
   <id>84</id>
   <nickname>Demo user</nickname>
   <user_image_small>https://secure.chilifresh.com/userpic/small/blank.png</user_image_small>
   <user_image_medium>https://secure.chilifresh.com/userpic/midthumbs/blank.png</user_image_medium>
   <user_image_large>https://secure.chilifresh.com/userpic/large/blank.png</user_image_large>
  </user>
  <user>
   <id>185</id>
   <nickname>Cathy W</nickname>
   <user_image_small>https://secure.chilifresh.com/userpic/small/blank.png</user_image_small>
   <user_image_medium>https://secure.chilifresh.com/userpic/midthumbs/blank.png</user_image_medium>
   <user_image_large>https://secure.chilifresh.com/userpic/large/blank.png</user_image_large>
  </user>
  <user>
   <id>4338</id>
   <nickname>Superuser</nickname>
   <user_image_small>https://secure.chilifresh.com/userpic/small/blank.png</user_image_small>
   <user_image_medium>https://secure.chilifresh.com/userpic/midthumbs/blank.png</user_image_medium>
   <user_image_large>https://secure.chilifresh.com/userpic/large/blank.png</user_image_large>
  </user>
  <user>
   <id>7667</id>
   <nickname>A-G Admin</nickname>
   <user_image_small>https://secure.chilifresh.com/userpic/small/blank.png</user_image_small>
   <user_image_medium>https://secure.chilifresh.com/userpic/midthumbs/blank.png</user_image_medium>
   <user_image_large>https://secure.chilifresh.com/userpic/large/blank.png</user_image_large>
  </user>
  <user>
   <id>12897</id>
   <nickname>divine cataloger</nickname>
   <user_image_small>https://secure.chilifresh.com/userpic/small/blank.png</user_image_small>
   <user_image_medium>https://secure.chilifresh.com/userpic/midthumbs/blank.png</user_image_medium>
   <user_image_large>https://secure.chilifresh.com/userpic/large/blank.png</user_image_large>
  </user>
  <user>
   <id>230955</id>
   <nickname>EricaLibrarian</nickname>
   <user_image_small>https://secure.chilifresh.com/userpic/small/blank.png</user_image_small>
   <user_image_medium>https://secure.chilifresh.com/userpic/midthumbs/blank.png</user_image_medium>
   <user_image_large>https://secure.chilifresh.com/userpic/large/blank.png</user_image_large>
  </user>
  <user>
   <id>234298</id>
   <nickname>Maureen K</nickname>
   <user_image_small>https://secure.chilifresh.com/userpic/small/blank.png</user_image_small>
   <user_image_medium>https://secure.chilifresh.com/userpic/midthumbs/blank.png</user_image_medium>
   <user_image_large>https://secure.chilifresh.com/userpic/large/blank.png</user_image_large>
  </user>
 </users>
</response>

Response code

Code Code description
3030Listing recommended users successful
TBAUser does not have Connections profile
60Session invalid, expired or empty

recommendedItems: recommended items based on activity and interests of particular user

Input

Parameter Type (size) Mandatory
actionrecommendedItems Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
session_idVariable characters (100)Yes
pageInteger (5)NoDefault: 1
page_sizeInteger (5)NoDefault: 10

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3032</response_code>
 <response_description>Listing recommended items successful</response_description>
 <response_time>Sun, 20 Mar 2016 16:04:36</response_time>
 <item_count>947</item_count>
 <page_count>95</page_count>
 <items>
  <item>
   <id>4638265</id>
   <isbn>0439206634</isbn>
   <title>Dear Mrs. Larue</title>
   <author>written and illustrated by Mark Teague.</author>
  </item>
  <item>
   <id>4637873</id>
   <isbn>0761413936</isbn>
   <title>Dogs</title>
   <author>Rebecca Stefoff.</author>
  </item>
  <item>
   <id>4638344</id>
   <isbn>0060283289</isbn>
   <title>If you take a mouse to school</title>
   <author>by Laura Numeroff ; illustrated by Felicia Bond.</author>
  </item>
  <item>
   <id>4638269</id>
   <isbn>0399237658</isbn>
   <title>Spike in trouble</title>
   <author>written and illustrated by Paulette Bogan.</author>
  </item>
  <item>
   <id>4638496</id>
   <isbn>0866225536</isbn>
   <title>Kittens</title>
   <author>Zuza Vrbova ; photography : Susan C. Miller, Hugh Nicholas ; illustration : Robert McAulay ; reading and child psychology consultant : Dr. David Lewis.</author>
  </item>
  <item>
   <id>4638377</id>
   <isbn>006073132X</isbn>
   <title>Freakonomics</title>
   <author>Steven D. Levitt and Stephen J. Dubner.</author>
  </item>
  <item>
   <id>4638346</id>
   <isbn>0684801523</isbn>
   <title>great Gatsby</title>
   <author>F. Scott Fitzgerald ; preface and notes by Matthew J. Bruccoli.</author>
  </item>
  <item>
   <id>4638445</id>
   <isbn>0803728506</isbn>
   <title>He's got the whole world in his hands</title>
   <author>Kadir Nelson.</author>
  </item>
  <item>
   <id>4637867</id>
   <isbn>030720989X</isbn>
   <title>extraordinary healing power of ordinary things ; fourteen natural steps to health and happiness</title>
   <author>Larry Dossey.</author>
  </item>
  <item>
   <id>4638268</id>
   <isbn>1419801902</isbn>
   <title>Harry Potter and the goblet of fire</title>
   <author>Warner Bros. Pictures presents a  Heyday Films production ; a Mike Newell film ; producer, David Heyman ; screenplay, Steve Kloves ; directed by Mike Newell.</author>
  </item>
 </items>
</response>

Response code

Code Code description
3032Listing recommended users successful
TBAUser does not have Connections profile
60Session invalid, expired or empty

recommendedItemUsers: recommended users based on activity with particular item

Input

Parameter Type (size) Mandatory
actionrecommendedItems Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
session_idVariable characters (100)Yes
isbnInteger (20)No ISBN, UPC or other identifier. Can be empty if cf_item_id provided
cf_item_idInteger (10)No CF Item ID from other API calls. Can be empty if isbn provided
pageInteger (5)NoDefault: 1
page_sizeInteger (5)NoDefault: 10

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3002</response_code>
 <response_description>successful</response_description>
 <response_time>Sun, 20 Mar 2016 16:10:04</response_time>
 <user_count>1</user_count>
 <page_count>1</page_count>
 <users>
  <user>
   <id>46</id>
   <nickname>ScoJo</nickname>
   <user_image_small>https://secure.chilifresh.com/userpic/small/blank.png</user_image_small>
   <user_image_medium>https://secure.chilifresh.com/userpic/midthumbs/blank.png</user_image_medium>
   <user_image_large>https://secure.chilifresh.com/userpic/large/blank.png</user_image_large>
  </user>
 </users>
</response>

Response code

Code Code description
3034Expected isbn or cf_item_id parameters both empty
3033Listing item users successful
60Session invalid, expired or empty

recommendedItemItems: recommended items based on activity with particular item

Input

Parameter Type (size) Mandatory
actionrecommendedItemItems Yes
accountInteger (10)Yes
api_keyVariable characters (40)Yes
session_idVariable characters (100)Yes
isbnInteger (20)No ISBN, UPC or other identifier. Can be empty if cf_item_id provided
cf_item_idInteger (10)No CF Item ID from other API calls. Can be empty if isbn provided
pageInteger (5)NoDefault: 1
page_sizeInteger (5)NoDefault: 10

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3035</response_code>
 <response_description>successful</response_description>
 <response_time>Sun, 20 Mar 2016 16:27:58</response_time>
 <item_count>2</item_count>
 <page_count>1</page_count>
 <items>
  <item>
   <id>859823</id>
   <isbn>0747591059</isbn>
   <title>Harry Potter and the Deathly Hallows</title>
   <author>Rowling, J. K.</author>
  </item>
  <item>
   <id>7492254</id>
   <isbn>0755321960</isbn>
   <title>Maximum Ride</title>
   <author>Patterson, James William</author>
  </item>
 </items>
</response>

Response code

Code Code description
3034Expected isbn or cf_item_id parameters both empty
3036Listing item items successful
60Session invalid, expired or empty

"My following" functions

followingStart: start following an item or user

Input

Parameter Type (size) Mandatory Description
actionfollowingStart Yes API call
session_idVariable characters (100)Yes Session ID from logged in user
isbnInteger (20)No ISBN, UPC or other identifier. Can be empty if cf_item_id provided
cf_item_idInteger (10)No CF Item ID from other API calls. Can be empty if item_id provided
user_idInteger (10)No CF User ID from other API calls. Can be empty if cf_item_id or item_id provided
page_sizeInteger (5)No Page size of paginated results
pageInteger (5)No Page number of paginated results

XML output example for following a user:

<?xml version="1.0"?>
<response>
 <response_code>3037</response_code>
 <response_description>Started following user successfully</response_description>
 <response_time>Sun, 22 May 2016 11:34:44</response_time>
 <user_id>478</user_id>
 <nickname>bigballer</nickname>
 <last_login>2016-02-22 02:00:00</last_login>
 <city>Rochester</city>
 <state>MI</state>
 <country>US</country>
 <quote/>
 <user_image_small>https://secure.chilifresh.com/userpic/small/blank.png</user_image_small>
 <user_image_medium>https://secure.chilifresh.com/userpic/midthumbs/blank.png</user_image_medium>
 <user_image_large>https://secure.chilifresh.com/userpic/large/blank.png</user_image_large>
</response>

XML output example for following an item:

<?xml version="1.0"?>
<response>
 <response_code>3038</response_code>
 <response_description>Started following item successfully</response_description>
 <response_time>Sun, 22 May 2016 11:31:40</response_time>
 <item_id>859823</item_id>
 <isbn>0747591059</isbn>
 <title>Harry Potter and the Deathly Hallows</title>
 <author>Rowling, J. K.</author>
</response>

Response code

Code Code description
3043Expected isbn, cf_item_id and user_Id parameters all empty
3039User not found
3040Already following this user
3041Item not found
3042Already following this item
3037Started following user successfully
3038Started following item successfully
60Session invalid, expired or empty

followingStop: stop following an item or user

Input

Parameter Type (size) Mandatory Description
actionfollowingStop Yes API call
session_idVariable characters (100)Yes Session ID from logged in user
isbnInteger (20)No ISBN, UPC or other identifier. Can be empty if cf_item_id provided
cf_item_idInteger (10)No CF Item ID from other API calls. Can be empty if item_id provided
user_idInteger (10)No CF user ID from other API calls. Can be empty if item_id pr cf_item_id provided

XML output example for following a user:

<?xml version="1.0"?>
<response>
 <response_code>3044</response_code>
 <response_description>Stopped following user successfully</response_description>
 <response_time>Sun, 22 May 2016 11:57:45</response_time>
 <user_id>478</user_id>
 <nickname>bigballer</nickname>
 <last_login>2016-02-22 02:00:00</last_login>
 <city>Rochester</city>
 <state>MI</state>
 <country>US</country>
 <quote/>
 <user_image_small>https://secure.chilifresh.com/userpic/small/blank.png</user_image_small>
 <user_image_medium>https://secure.chilifresh.com/userpic/midthumbs/blank.png</user_image_medium>
 <user_image_large>https://secure.chilifresh.com/userpic/large/blank.png</user_image_large>
</response>

XML output example for following an item:

<?xml version="1.0"?>
<response>
 <response_code>3046</response_code>
 <response_description>Stopped following item successfully</response_description>
 <response_time>Sun, 22 May 2016 11:59:10</response_time>
 <item_id>859823</item_id>
 <isbn>0747591059</isbn>
 <title>Harry Potter and the Deathly Hallows</title>
 <author>Rowling, J. K.</author>
</response>

Response code

Code Code description
3043Expected isbn, cf_item_id and user_Id parameters all empty
3039User not found
3045You are not following this user
3041Item not found
3047You are not following this item
3044Stopped following user successfully
3046Stopped following item successfully
60Session invalid, expired or empty

followingFollowedEvents: list of events of followed user or item

Input

Parameter Type (size) Mandatory Description
actionfollowingFollowedEvents Yes API call
session_idVariable characters (100)Yes Session ID from logged in user - can be empty if user_id provided
user_idInteger (20)No CF user ID - can be empty if session_id provided
page_sizeInteger (5)No Page size of paginated results
pageInteger (5)No Page number of paginated results

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3048</response_code>
 <response_description>Events listed successfuly</response_description>
 <response_time>Sun, 22 May 2016 12:08:03</response_time>
 <page_size>10</page_size>
 <page_number>1</page_number>
 <event_count>2</event_count>
 <events>
  <event>
   <user>
    <user_id>84</user_id>
    <nickname>Demo user</nickname>
    <last_login>2016-04-08 16:32:51</last_login>
    <city>Chililands</city>
    <state>KS</state>
    <country>US</country>
    <quote>Your text goes here</quote>
    <user_image_small>https://secure.chilifresh.com/userpic/small/blank.png</user_image_small>
    <user_image_medium>https://secure.chilifresh.com/userpic/midthumbs/blank.png</user_image_medium>
    <user_image_large>https://secure.chilifresh.com/userpic/large/blank.png</user_image_large>
   </user>
   <item>
    <item_id>1555988</item_id>
    <isbn>9780415964845</isbn>
    <title>Critical perspectives on Harry Potter</title>
    <author></author>
   </item>
   <event_name>Demo user added Critical perspectives on Harry Potter to the bookshelf</event_name>
  </event>
  <event>
   <user>
    <user_id>84</user_id>
    <nickname>Demo user</nickname>
    <last_login>2016-04-08 16:32:51</last_login>
    <city>Chililands</city>
    <state>KS</state>
    <country>US</country>
    <quote>Your text goes here</quote>
    <user_image_small>https://secure.chilifresh.com/userpic/small/blank.png</user_image_small>
    <user_image_medium>https://secure.chilifresh.com/userpic/midthumbs/blank.png</user_image_medium>
    <user_image_large>https://secure.chilifresh.com/userpic/large/blank.png</user_image_large>
   </user>
   <item>
    <item_id>443312</item_id>
    <isbn>9780807220290</isbn>
    <title>Harry Potter and the Order of the Phoenix</title>
    <author>Rowling, J. K.</author>
   </item>
   <event_name>Demo user added Harry Potter and the Order of the Phoenix to the bookshelf</event_name>
  </event>
 </events>
</response>

Response code

Code Code description
3048Events listed successfuly
60Session invalid, expired or empty

followingUsersFollowingMe: list of users following particular user

Input

Parameter Type (size) Mandatory Description
actionfollowingUsersFollowingMe Yes API call
session_idVariable characters (100)Yes Session ID from logged in user - can be empty if user_id provided
user_idInteger (20)No CF user ID - can be empty if session_id provided
page_sizeInteger (5)No Page size of paginated results
pageInteger (5)No Page number of paginated results

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3050</response_code>
 <response_description>Users following me listed successfully</response_description>
 <response_time>Sun, 22 May 2016 12:52:15</response_time>
 <users>
  <user>
   <id>84</id>
   <nickname>Demo user</nickname>
   <user_image_small>https://secure.chilifresh.com/userpic/small/blank.png</user_image_small>
   <user_image_medium>https://secure.chilifresh.com/userpic/midthumbs/blank.png</user_image_medium>
   <user_image_large>https://secure.chilifresh.com/userpic/large/blank.png</user_image_large>
  </user>
 </users>
</response>

Response code

Code Code description
3050Users following me listed successfully
60Session invalid, expired or empty

followingUsersIFollow: list of users that particular user follows

Input

Parameter Type (size) Mandatory Description
actionfollowingItemsIFollow Yes API call
session_idVariable characters (100)Yes Session ID from logged in user - can be empty if user_id provided
user_idInteger (20)No CF user ID - can be empty if session_id provided
page_sizeInteger (5)No Page size of paginated results
pageInteger (5)No Page number of paginated results

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3051</response_code>
 <response_description>Items user follows listed successfully</response_description>
 <response_time>Sun, 22 May 2016 13:01:24</response_time>
 <users>
  <user>
   <id>84</id>
   <nickname>Demo user</nickname>
   <user_image_small>https://secure.chilifresh.com/userpic/small/blank.png</user_image_small>
   <user_image_medium>https://secure.chilifresh.com/userpic/midthumbs/blank.png</user_image_medium>
   <user_image_large>https://secure.chilifresh.com/userpic/large/blank.png</user_image_large>
  </user>
 </users>
</response>

Response code

Code Code description
3051Items user follows listed successfully
60Session invalid, expired or empty

followingItemsIFollow: list of users that particular user follows

Input

Parameter Type (size) Mandatory Description
actionfollowingItemsIFollow Yes API call
session_idVariable characters (100)Yes Session ID from logged in user - can be empty if user_id provided
user_idInteger (20)No CF user ID - can be empty if session_id provided
page_sizeInteger (5)No Page size of paginated results
pageInteger (5)No Page number of paginated results

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3049</response_code>
 <response_description>Followed items listed successfully</response_description>
 <response_time>Sun, 22 May 2016 12:54:47</response_time>
 <item_count>1</item_count>
 <page_count>1</page_count>
 <items>
  <item>
   <item_id>7492254</item_id>
   <isbn>0755321960</isbn>
   <title>Maximum Ride</title>
   <author>Patterson, James William</author>
  </item>
 </items>
</response>

Response code

Code Code description
3049Followed items listed successfully
60Session invalid, expired or empty

followingSettingsShow: show settings for following for particular user

Parameter Type (size) Mandatory Description
actionfollowingSettingsShow Yes API call
session_idVariable characters (100)Yes Session ID from logged in user - can be empty if user_id provided

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3002</response_code>
 <response_description>successful</response_description>
 <response_time>Sun, 22 May 2016 13:06:46</response_time>
 <user_id>84</user_id> 
 <allow_follow>yes</allow_follow>
 <allow_ticker>yes</allow_ticker>
</response>

Response code

Code Code description
3052Settings listed successfuly
60Session invalid, expired or empty

followingSettingsChange: update settings for following for particular user

Input

Parameter Type (size) Mandatory Description
actionfollowingSettingsShow Yes API call
allow_follow 1 (yes) / 0 (no) Yes Value of parameter
allow_ticker1 (yes) / 0 (no) Yes Value of parameter
session_idVariable characters (100)Yes Session ID from logged in user - can be empty if user_id provided

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3053</response_code>
 <response_description>Following settings saved successfully</response_description>
 <response_time>Sun, 22 May 2016 13:16:59</response_time>
</response>

Response code

Code Code description
3053Following settings saved successfully
60Session invalid, expired or empty

Tags functions

tagsList: list tags for particular item

Input

Parameter Type (size) Mandatory Description
actiontagsList Yes API call
isbnInteger (20)No ISBN, UPC or other identifier. Can be empty if cf_item_id provided
cf_item_idInteger (10)No CF Item ID from other API calls. Can be empty if isbn provided

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3054</response_code>
 <response_description>Tags for item listed successfully</response_description>
 <response_time>Sun, 22 May 2016 13:29:56</response_time>
 <tags>
  <tag>
   <id>6</id>
   <name>harry potter</name>
  </tag>
 </tags>
</response>

Response code

Code Code description
3054Tags for item listed successfully
3034Expected isbn or cf_item_id parameters both empty
3041Item not found

tagsMyList: list the tags that particular user has added

Parameter Type (size) Mandatory Description
actiontagsMyList Yes API call
session_idVariable characters (100)Yes Session ID from logged in user
user_idInteger (10)No CF User ID from other API calls. Can be empty if session_id provided

Output: tag_id, tag_name

tagsItems: list items for particular tag

Input

Parameter Type (size) Mandatory Description
action tagsItems Yes API call
tag_id Integer (20)No Tag ID from other tag calls
session_id Variable characters (100) Yes Session ID from logged in user

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3055</response_code>
 <response_description>Items for tag listed successfully</response_description>
 <response_time>Sun, 22 May 2016 13:39:41</response_time>
 <items>
  <item>
   <id>84228</id>
   <title>Harry Potter and the sorcerer's stone</title>
   <author>by J.K. Rowling ; illustrations by Mary Grandprâe.</author>
  </item>
  <item>
   <id>859823</id>
   <title>Harry Potter and the Deathly Hallows</title>
   <author>Rowling, J. K.</author>
  </item>
 </items>
</response>

Response code

Code Code description
3055Items for tag listed successfully
3056No items found for such tag
60Session invalid, expired or empty

tagsAdd: add tag for an item

Input

Parameter Type (size) Mandatory Description
actiontagsAdd Yes API call
isbnInteger (20)Yes ISBN, UPC or other identifier. Can be empty if cf_item_id provided
cf_item_idInteger (10)No CF Item ID from other API calls. Can be empty if isbn provided
tag_nameVarchar (100)Yes Tag names

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3057</response_code>
 <response_description>Tag added successfully</response_description>
 <response_time>Sun, 22 May 2016 13:46:36</response_time>
 <tag_id>109</tag_id>
</response>

Response code

Code Code description
3057Tag added successfully
3041Item not found
3058Tag name empty
60Session invalid, expired or empty

tagsFind: search for existing tags

Input

Parameter Type (size) Mandatory Description
actiontagsFind Yes API call
tag_nameVarchar (100)Yes Tag name to look for

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3059</response_code>
 <response_description>Tag found successfully</response_description>
 <response_time>Sun, 22 May 2016 13:57:03</response_time>
 <tag_name>test</tag_name>
 <tag_id>109</tag_id>
</response>

Response code

Code Code description
3059Tag found successfully
3060Tag not found
60Session invalid, expired or empty

Item information functions

itemInformation: get information on item by ISBN/UPC or cf_item_id

Input

Parameter Type (size) Mandatory Description
actionitemInformation Yes API call
isbnInteger (20)No ISBN, UPC or other identifier. Can be empty if cf_item_id provided
cf_item_idInteger (10)No CF Item ID from other API calls. Can be empty if item_id provided
session_idVariable characters (100)Yes Session ID from logged in user

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3061</response_code>
 <response_description>Item information listed successfully</response_description>
 <response_time>Sun, 22 May 2016 15:22:17</response_time>
 <item_id>31160943</item_id>
 <isbn>2070528189</isbn>
 <title>Harry Potter et le prisonnier d'Azkaban</title>
 <author>J. K. Rowling ; traduit de l'anglais par Jean-François Ménard</author>
</response>

Response code

Code Code description
3061Item information listed successfully
3041Item not found
3034Expected isbn or cf_item_id parameters both empty
60Session invalid, expired or empty

itemUsersBookshelf: get users that have item on their bookshelf

Input

Parameter Type (size) Mandatory Description
actionitemUsersBookshelf Yes API call
isbnInteger (20)No ISBN, UPC or other identifier. Can be empty if cf_item_id provided
cf_item_idInteger (10)No CF Item ID from other API calls. Can be empty if item_id provided
session_idVariable characters (100)Yes Session ID from logged in user

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3062</response_code>
 <response_description>Users listed successfully</response_description>
 <response_time>Sun, 22 May 2016 15:35:45</response_time>
 <users>
  <user>
   <id>231853</id>
   <nickname>Administrator1000</nickname>
   <user_image_small>https://secure.chilifresh.com/userpic/small/blank.png</user_image_small>
   <user_image_medium>https://secure.chilifresh.com/userpic/midthumbs/blank.png</user_image_medium>
   <user_image_large>https://secure.chilifresh.com/userpic/large/blank.png</user_image_large>
  </user>
  <user>
   <id>234300</id>
   <nickname>Mary123</nickname>
   <user_image_small>https://secure.chilifresh.com/userpic/small/blank.png</user_image_small>
   <user_image_medium>https://secure.chilifresh.com/userpic/midthumbs/blank.png</user_image_medium>
   <user_image_large>https://secure.chilifresh.com/userpic/large/blank.png</user_image_large>
  </user>
 </users>
</response>

Response code

Code Code description
3062Users listed successfully
3041Item not found
3034Expected isbn or cf_item_id parameters both empty
60Session invalid, expired or empty

itemDetailsShow: show private details user has added for particular item on shelf

Input

Parameter Type (size) Mandatory Description
actionitemDetailsShow Yes API call
isbnInteger (20)No ISBN, UPC or other identifier. Can be empty if cf_item_id provided
cf_item_idInteger (10)No CF Item ID from other API calls. Can be empty if item_id provided
session_idVariable characters (100)Yes Session ID from logged in user

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3063</response_code>
 <response_description>success</response_description>
 <response_time>Sun, 22 May 2016 15:40:49</response_time>
 <reading_start>0000-00-00 00:00:00</reading_start>
 <reading_end>0000-00-00 00:00:00</reading_end>
 <comments></comments>
</response>

Response code

Code Code description
3063Users listed successfully
3064Item not found on shelf
3034Expected isbn or cf_item_id parameters both empty
60Session invalid, expired or empty

itemDetailsAdd: add or update private details user has added for particular item on shelf

Input

Parameter Type (size) Mandatory Description
actionitemDetailsAdd Yes API call
isbnInteger (20)No ISBN, UPC or other identifier. Can be empty if cf_item_id provided
cf_item_idInteger (10)No CF Item ID from other API calls. Can be empty if item_id provided
reading_startDate (YYYY-MM-DD)Yes Reading start date
reading_endDate (YYYY-MM-DD)Yes Reading end date
commentTextYes Comment to detail
session_idVariable characters (100)Yes Session ID from logged in user

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3065</response_code>
 <response_description>Item details added successfully</response_description>
 <response_time>Sun, 22 May 2016 15:49:13</response_time>
</response>

Response code

Code Code description
3065Item details added successfully
3064Item not on shelf
3066No reading_start or reading_end parameters defined
3034Expected isbn or cf_item_id parameters both empty
60Session invalid, expired or empty

My interests functions

interestsShow: show user's interests that have been set up

Input

Parameter Type (size) Mandatory Description
actioninterestsShow Yes API call
user_idInteger (10) No Can be supplied to see display interests of other user
session_idVariable characters (100)Yes Session ID from logged in user

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3072</response_code>
 <response_description>Interests listed successfully</response_description>
 <response_time>Mon, 23 May 2016 14:15:10</response_time>
 <interests>
  <interest>
   <name>Favorite authors</name>
   <value>James Patterson</value>
  </interest>
  <interest>
   <name>Favorite books</name>
   <value>Freakonomics</value>
  </interest>
  <interest>
   <name>Favorite movies</name>
   <value>Matrix</value>
  </interest>
 </interests>
</response>

Response code

Code Code description
3072Interests listed successfully
60Session invalid, expired or empty

interestsShowGeneral: show list of general interests (user input)

Input

Parameter Type (size) Mandatory Description
actioninterestsShowGeneral Yes API call
user_idInteger (10) No Can be supplied to see display interests of other user
session_idVariable characters (100)Yes Session ID from logged in user

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3073</response_code>
 <response_description>General interests listed successfully</response_description>
 <response_time>Mon, 23 May 2016 14:21:04</response_time>
 <interests>
  <interest>dogs</interest>
  <interest>boats</interest>
 </interests>
</response>

Response code

Code Code description
3073General interests listed successfully
60Session invalid, expired or empty

interestsUpdate: add or update user's interests

Input

Parameter Type (size) Mandatory Description
actioninterestsUpdate Yes API call
favorite_authorsVarchar (50) No Favorite authors of the user
favorite_booksVarchar (50) No Favorite books of the user
favorite_moviesVarchar (50) No Favorite movies of the user
session_idVariable characters (100)Yes Session ID from logged in user

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3074</response_code>
 <response_description>Interests updated successfully</response_description>
 <response_time>Mon, 23 May 2016 14:30:51</response_time>
</response>

Response code

Code Code description
3074Interests updated successfully
3075All interests empty
60Session invalid, expired or empty

interestsAddGeneral: add general interests (user input)

Input

Parameter Type (size) Mandatory Description
actioninterestsAddGeneral Yes API call
interest_nameVarchar (50) Yes General interest of the user
session_idVariable characters (100)Yes Session ID from logged in user

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3076</response_code>
 <response_description>General interest added successfully</response_description>
 <response_time>Mon, 23 May 2016 14:37:08</response_time>
</response>

Response code

Code Code description
3076General interest added successfully
3077Paremeter interest_name empty
60Session invalid, expired or empty

interestsDeleteGeneral: delete general insterests (user input)

Input

Parameter Type (size) Mandatory Description
actioninterestsDeleteGeneral Yes API call
interest_nameVarchar (50) Yes General interest of the user
session_idVariable characters (100)Yes Session ID from logged in user

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3078</response_code>
 <response_description>General interest deleted successfully</response_description>
 <response_time>Mon, 23 May 2016 14:41:33</response_time>
</response>

Response code

Code Code description
3078General interest deleted successfully
3079Deleting interest failed
3077Paremeter interest_name empty
60Session invalid, expired or empty

Privacy settings functions

privacyShowSettings: show all privacy settings for particular user

Input

Parameter Type (size) Mandatory Description
actionprivacyShowSettings Yes API call
session_idVariable characters (100)Yes Session ID from logged in user

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3067</response_code>
 <response_description>Listing privacy settings successful</response_description>
 <response_time>Sun, 22 May 2016 16:11:36</response_time>
 <show_my_reviews>EVERYONE</show_my_reviews>
 <show_my_recommendations>EVERYONE</show_my_recommendations>
 <allow_recommending_me_items>EVERYONE</allow_recommending_me_items>
 <show_my_bookshelf>EVERYONE</show_my_bookshelf>
 <show_my_interests>EVERYONE</show_my_interests>
 <show_my_communities>EVERYONE</show_my_communities>
 <show_my_bookclubs>EVERYONE</show_my_bookclubs>
 <show_my_following>EVERYONE</show_my_following>
 <allow_following_me>EVERYONE</allow_following_me>
 <show_my_tags>EVERYONE</show_my_tags>
 <show_my_friends>EVERYONE</show_my_friends>
 <show_my_cork_board>EVERYONE</show_my_cork_board>
 <items_we_share>EVERYONE</items_we_share>
 <allow_sending_me_messages>EVERYONE</allow_sending_me_messages>
 <allow_start_chat>EVERYONE</allow_start_chat>
</response>

Response code

Code Code description
3067Listing privacy settings successful
60Session invalid, expired or empty

privacyUpdateSetting: update one item of privacy settings for paticular user

Input

Parameter Type (size) Mandatory Description
actionprivacyUpdateSettings Yes API call
setting_nameOne of settings (listed below) Yes API call
optionValues: EVERYONE, FRIENDS, NOBODY Yes API call
session_idVariable characters (100)Yes Session ID from logged in user

setting_name parameters:

  • show_my_reviews
  • show_my_recommendations
  • allow_recommending_me_items
  • show_my_bookshelf
  • show_my_interests
  • show_my_communities
  • show_my_bookclubs
  • show_my_following
  • allow_following_me
  • show_my_tags
  • show_my_friends
  • show_my_cork_board
  • items_we_share
  • allow_sending_me_messages
  • allow_start_chat

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3068</response_code>
 <response_description>Privacy settings updated successfully</response_description>
 <response_time>Sun, 22 May 2016 16:18:46</response_time>
</response>

Response code

Code Code description
3068Privacy settings updated successfully
3069Invalid setting_name value
3070Invalid option value
3071Empty setting_name or option parameters
60Session invalid, expired or empty

Profile editing functions

profileEditInformation: edit basic profile information

Parameter Type (size) Mandatory Description
actionprofileEditInformation Yes API call
birth_dateDate (YYYY-MM-DD No Birth date
show_ageY (yes) / N (no) No Whether to show age on profile
library_cardVarchar (50) No Library card
genderM (male) / F (female) No Gender of the user
location_cityVarchar (20) No City
location_state

Australia |No| State|

location_country2-letter code of the country No Country
quoteText (1000) No Personal quote
session_idVariable characters (100)Yes Session ID from logged in user

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3090</response_code>
 <response_description>Profile changes saved successfully</response_description>
 <response_time>Tue, 24 May 2016 15:34:39</response_time>
</response>

Response code

Code Code description
3090Profile changes saved successfully
3091Invalid date format, must be YYYY-MM-DD
3092Invalid gender - should be F or M
3093Invalid state code
3094Invalid country code
3092Invalid gender - should be F or M
60Session invalid, expired or empty

profileDeletePicture: delete particular user's picture

Input

Parameter Type (size) Mandatory Description
actionprofileDeletePicture Yes API call
session_idVariable characters (100)Yes Session ID from logged in user

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3095</response_code>
 <response_description>Profile picture deleted successfully</response_description>
 <response_time>Tue, 24 May 2016 15:39:40</response_time>
</response>

Response code

Code Code description
3095Profile picture deleted successfully
60Session invalid, expired or empty

profileChangePicture: change particular user's picture

Input:

  • session_id
  • picture (JPG, PNG or GIF)

Output - success with img URLs [small, mid, large], or error

profileChangePassword: set or change user password

Same as userChangePassword from Reviews API

profileChangeNickname: change user nickname

Same as userChangeNickname from Reviews API

profileChangeEmail: set or change user e-mail

Same as userChangeEmail from Reviews API

profileChangeRead: set or change user's "Current read" item

Input

Parameter Type (size) Mandatory Description
actionprofileChangeRead Yes API call
isbnISBN, UPC or other identifier of item No Identifier of the item
cf_item_idChiliFresh ID of the item No ChiliFresh identifier of the item
session_idVariable characters (100)Yes Session ID from logged in user

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3096</response_code>
 <response_description>Read changed successfully</response_description>
 <response_time>Tue, 24 May 2016 16:09:16</response_time>
 <item_id>1148103</item_id>
 <isbn>9782070529292</isbn>
 <title>Harry Potter a l'ecole des sorciers ; Harry Potter et la chambre des secrets ; Harry Potter et le prisonnier d'Azkaban -- coffret 3 volumes</title>
 <author></author>
</response>

Response code

Code Code description
3096Read changed successfully
60Session invalid, expired or empty

profileDeleteRead: delete user's "Current read" item

Input

Parameter Type (size) Mandatory Description
actionprofileDeleteRead Yes API call
session_idVariable characters (100)Yes Session ID from logged in user

XML output example:

<?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>

Response code

Code Code description
3097Current read deleted successfully
60Session invalid, expired or empty

profileDeleteAccount: delete user's ChiliFresh account

Input:

  • session_id
  • remove_reviews_account [Y/N]
  • remove_connections_account [Y/N]
  • password (optional)

Output: success or failure message

Common connections functions

commonItems: show common items that particular user and other user have on shelves

Input:

  • session_id or user_id

Output: items block, item block [item_id, cf_item_id, item_title, item_author]

commonUsers: show common users that particular user and other user have as freinds

Input:

  • session_id or user_id

Output: users_block [user_id, nickname, last_login, city, state, country, quote, user_image_small, user_image_medium, user_image_large]

"My library" functions

myLibraryContent: display HTML content for "My Library" widget

Input

Parameter Type (size) Mandatory Description
actionmyLibraryContent Yes API call
session_idVariable characters (100)Yes Session ID from logged in user

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3080</response_code>
 <response_description>My library content displayed successfully</response_description>
 <response_time>Mon, 23 May 2016 14:50:51</response_time>
 <my_library_content>&lt;li&gt;&lt;a href=&quot;http://www.google.com&quot; target=&quot;_blank&quot;&gt;http://www.google.com&lt;/a&gt;&lt;/li&gt;</my_library_content>
</response>

Response code

Code Code description
3080My library content displayed successfully
60Session invalid, expired or empty

Statistics functions

statisticsShow: show statistics of Connections and comparison to friends of particular user

Input

Parameter Type (size) Mandatory Description
actionstatisticsShow Yes API call
session_idVariable characters (100)Yes Session ID from logged in user

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3081</response_code>
 <response_description>Statistics listed successfully</response_description>
 <response_time>Mon, 23 May 2016 14:54:28</response_time>
 <my_stats>
  <friends>1</friends>
  <books_read>14</books_read>
  <reviews_written>4</reviews_written>
  <comments>0</comments>
  <recommendations>0</recommendations>
 </my_stats>
 <friends_average_stats>
  <friends>0.00</friends>
  <books_read>0.00</books_read>
  <reviews_written>0.00</reviews_written>
  <comments>0.00</comments>
  <recommendations>0.00</recommendations>
 </friends_average_stats>
</response>

Response code

Code Code description
3081Statistics listed successfully
60Session invalid, expired or empty

Cork board functions

boardShowComments: show comments of user's Cork board

Input

Parameter Type (size) Mandatory Description
actionboardShowComments Yes API call
user_idInteger (10) No Show comments from other user's profile
session_idVariable characters (100)Yes Session ID from logged in user

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3082</response_code>
 <response_description>Comments listed successfully</response_description>
 <response_time>Mon, 23 May 2016 15:10:10</response_time>
 <page_size>10</page_size>
 <item_count>11</item_count>
 <page_count>2</page_count>
 <comments>
  <comment>
   <user>
    <user_id>227629</user_id>
    <nickname>pls-nn-12</nickname>
    <last_login>0000-00-00 00:00:00</last_login>
    <city>Liverpool</city>
    <state>NY</state>
    <country>US</country>
    <quote></quote>
    <user_image_small>https://secure.chilifresh.com/userpic/small/blank.png</user_image_small>
    <user_image_medium>https://secure.chilifresh.com/userpic/midthumbs/blank.png</user_image_medium>
    <user_image_large>https://secure.chilifresh.com/userpic/large/blank.png</user_image_large>
   </user>
   <comment_text>Testing comment re-load</comment_text>
   <comment_date>2013-01-13 15:36:07</comment_date>
  </comment>
  <comment>
   <user>
    <user_id>227629</user_id>
    <nickname>pls-nn-12</nickname>
    <last_login>0000-00-00 00:00:00</last_login>
    <city>Liverpool</city>
    <state>NY</state>
    <country>US</country>
    <quote></quote>
    <user_image_small>https://secure.chilifresh.com/userpic/small/blank.png</user_image_small>
    <user_image_medium>https://secure.chilifresh.com/userpic/midthumbs/blank.png</user_image_medium>
    <user_image_large>https://secure.chilifresh.com/userpic/large/blank.png</user_image_large>
   </user>
   <comment_text>Adding comment&#13;
</comment_text>
   <comment_date>2013-01-13 15:35:04</comment_date>
  </comment>
 </comments>
</response>

Response code

Code Code description
3082Comments listed successfully
60Session invalid, expired or empty

boardAddComment: add a comment to other user's Cork board

Input

Parameter Type (size) Mandatory Description
actionboardAddComment Yes API call
user_idInteger (10) Yes Add comments in user's profile
commentText (1000) Yes Comment text
session_idVariable characters (100)Yes Session ID from logged in user

XML output example:

<?xml version="1.0"?>
<response>
 <response_code>3083</response_code>
 <response_description>Comment added successfully</response_description>
 <response_time>Mon, 23 May 2016 15:16:12</response_time>
</response>

Response code

Code Code description
3083Comment added successfully
3084Comment empty
3085Parameter user_id empty
60Session invalid, expired or empty

Connections widgets

Documentation available here.

connections/api.txt · Last modified: 2016/05/25 06:34 by jposeika