Skip to content

API_1_UPDATE_CONTACTS

pvicente edited this page Sep 24, 2013 · 14 revisions

API ▸ Update Contact Information

###PUT /1/google/contacts/:appid

Update a contact information of appid

###Resource URL https://katooserver.herokuapp.com/1/google/contacts/:appid

Parameters  
appid required String: Application ID
jid required String: Bare JID of contact to updated
contactName optional String: Name of contact (If blank take default name from roster)
favorite optional Boolean: in favorite group (Default False if not exist)
snoozePushTime optional Integer: seconds while push notifications will be disabled from now (Default: blank. 0 means forever-implemented as 365 days counter)
notifyWhenAvailable optional Integer: notify when contact will be available in the next seconds (Default blank. 0 means forever-implemented as 365 days counter)

** String values can be cleared with " " blank space.

State Machine

|appid|Status Connected|Actions| |:-------------|:--|:--|:--|:--|:--| | Found | T | OK Response | | Found | F | 404 Not Found | | Not found | - | 404 Not Found |

###OK Response JSON

{
 "success": True, 
 "reason": "ok", 
}

###success True or False

###reason ok when success == True or string message when success == False

Clone this wiki locally