unissoft-bj / ihostsvc

system services & data services on ihost
0 stars 0 forks source link

为录音新建reception的rest #52

Open unissoft-bj opened 9 years ago

unissoft-bj commented 9 years ago

开始录音时,android app向ihost 发送手机号(手机号在app的设置界面中输入) ihost接收到request后:

根据mac和phone确定account 在ihost上创建一个新的reception 把reception分配给account 返回httpcode给app

android app不需要login,也不需要接收reception id

结束录音时,app端停止录音,超过20s,ihost端会自动结束此次录音过程;是否还需要app端发送一个request给ihost?

结束录音,并不操作reception;对reception的操作是在webapp上进行(webapp执行正常的login)

michaelyin commented 9 years ago

only for apk built for Android.

michaelyin commented 9 years ago

post http://localhost:8080/reception

json payload: {"phone":"5016548878", "mac": "88-36-AA-FF-FF-BB"}

return: http 201 { id: 11 agent_id: "4028a7814cc82897014cc832ba120000" agent_phone: "" agent_mac: "" person_cnt: 0 gender: "MALE" customer_name: "" phone: "" location: "" transport: "" intention: "" visit_index: 1 refer_source: "" car_usage: "PRIVATE" car_style: "" car_model: "" car_color: "" buy_level: "A" description: "" result: "" comparison: "" memo: "" status: "NEW" sibling_id: 0 start_t: 1431532883487 end_t: null modify_t: null }