白板接口
好热闹
创建白板
Method and URL Structure
Method |
Resource URL |
POST |
/whitboard/whiteboard_create/ |
Request Parameters
Name |
Description |
Required |
Default |
username |
用户名 |
YES |
|
password |
密码 |
YES |
|
invitee |
被邀请者用户名 |
YES |
|
Request
{
"username":"18012345678",
"password":"123456",
"invitee":"1234567890",
}
cURL Example
$ curl -X POST \
--data 'username=18012345678&password=124566&invitee=1234567890' \
'http://www.haorenao.cn/whiteboard/whiteboard_create/'
JSON Response
Name |
Description |
NOTE |
ret |
标识是否成功。 |
@Depracted |
reason |
失败原因 |
@Depracted |
status |
Status Code |
|
message |
Failure Message |
|
{
"ret":"ok", # ok, 成功; failed, 失败
"reason":"",
"status":0,
"message":"",
}
获取白板
第一次获取时,可能需要轮询
Method and URL Structure
Method |
Resource URL |
GET |
/whiteboard/get_whiteboard/ |
Request Parameters
Name |
Description |
Required |
Default |
username |
用户名(被邀请者) |
YES |
|
password |
密码 |
YES |
|
owner |
创建者用户名 |
YES |
|
cURL Example
$ curl 'http://www.haorenao.cn/whiteboard/get_whiteboard/?username=1234567890&password=12345678&password=18012345678'
JSON Response
Name |
Description |
NOTE |
ret |
标识是否成功。 |
@Depracted |
reason |
失败原因 |
@Depracted |
status |
Status Code |
|
message |
Failure Message |
|
url |
白板 url |
|
{
"ret":"ok", # ok, 成功; failed, 失败
"reason":"",
"status":0,
"message":"",
"url":"http://whiteboard.haorenao.cn/9kdjkeJSKdAcDj"
}