Skip to content
Insane edited this page Sep 9, 2015 · 1 revision

1. POST /feedback

add new feedback to kulebao, it can be found at admin console

(id: Option[Long], phone: String, content: String, timestamp: Option[Long], comment: Option[String], source: Option[String] = None)

request payload:

{
"phone": "123456",
"content": "我要说两句",
"source": "android_parent"
}

id, timestamp, comment are optional.

source has 4 options: android_parent(default), android_teacher, ios_parent, ios_teacher.

json response:

{"error_msg":"","error_code":0}

2. GET /feedback

json response:

[
{"id":45,"phone":"13999498549","content":"昨天中午的公告,今天早上才收到。","timestamp":1406164946291,"comment":"","source":"android parent"},

{"id":46,"phone":"18555030903","content":"林楚雄测试反馈","timestamp":1406428239574,"comment":"","source":"android_teacher"},

{"id":57,"phone":"18999242007","content":"不大iOS","timestamp":1410275544262,"comment":"","source":"ios_parent"}
]

Clone this wiki locally