Skip to content

API_1_FLUSH_MESSAGES

gearsofdev edited this page Jun 10, 2013 · 5 revisions

API ▸ Flush messages API 1

###DELETE /1/google/messages/:appid Flush messages of appid and reset badgenumber to 0

###Resource URL https://katooserver/1/google/messages/:appid

Parameters  
appid required String: Application ID

State Machine

|appid|Status Connected|Actions| |:-------------|:--|:--|:--|:--|:--| | Found | T | OK Response. Remove all messages from appid and reset badgenumber to 0 | | Not found | - | 404 Not Found |

###Return JSON

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

###success True or False

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

Clone this wiki locally