白板服务帮助文档 -- OPENAPI

php-SDK 下载

签名认证方式

"Authorization: wis " + AccessId + ":" + Signature
"AD-Expire: expire"
'Content-Type: application/json' 

Signature = base64(hmac-sha1(AccessKey,
        VERB + "\n” 
        + REQUESTURI+"\n"
        + EXPIRE + "\n" 
        + Content-MD5 + "\n"))

获取白板服务信息

REQUESTURI "/v1/wis/{wisId}" 例如"/v1/wis/ca16ca84c1889f3a0e5f31b6378fb386"
METHOD GET

获取文档列表

REQUESTURI "/v1/wis/docs?skip=0&num=10" 例如"/v1/wis/docs?skip=0&num=10"
METHOD GET

获取文档信息

REQUESTURI "/v1/wis/docs/{docId}" 例如"/v1/wis/docs/0935a9d7ac68a73a2a981bc3a33063ab"
METHOD GET

删除文档

REQUESTURI "/v1/wis/docs/{docId}" 例如"/v1/wis/docs/0935a9d7ac68a73a2a981bc3a33063ab"
METHOD DELETE

绘制的历史数据

REQUESTURI "/v1/wis/{wisId}/history" 例如"/v1/wis/ca16ca84c1889f3a0e5f31b6378fb386/history"
METHOD GET

页码信息

REQUESTURI "/v1/wis/docs/{docId}/pages/{page}" 例如"/v1/wis/docs/0935a9d7ac68a73a2a981bc3a33063ab/pages/1 
METHOD GET

同步绘制信息

REQUESTURI "/v1/wis/{wisId}/draw" 例如"/v1/wis/ca16ca84c1889f3a0e5f31b6378fb386/draw"
METHOD POST
CONTENT-DATA {body:"draw data"}

同步翻页

REQUESTURI "/v1/wis/{wisId}/syncPage" 例如"/v1/wis/ca16ca84c1889f3a0e5f31b6378fb386/draw"
METHOD POST
CONTENT-DATA {page:<your page>}

上传文档

REQUESTURI "/v1/wis/docs/auto"
METHOD POST
CONTENT-DATA {fileName:"draw data",fileData:base64(<file-data>)}

PHP SDK下载