# Last **Repository Path**: lasts/Last ## Basic Information - **Project Name**: Last - **Description**: wi bi - **Primary Language**: PHP - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-05-09 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Sign in POST https:///user-login.htm?ajax=1 request FormData email: "", password:"" * Email value can also be an account or username * The value of the password is the result of using MD5 encryption response body.JSON() ```JSON { "code": "0", "message": { "token": "8Id9dVsN2pF0QUR2rYAfczJGaMKkEy6FhcJ..", "user": { "id": "2", "name": "Demo", "avatar": "https://xx.xx/xxx/xxx.png" }, "settings": {}, } } ``` # Sign out GET https:///user-logout.htm?bbs_token=&ajax=1 response body.JSON() ```JSON { "code": "0", "message": "ok" } ``` -------------------------------------------------------------------------------- # List GET https:///thread--.htm?bbs_token=&ajax=1 response body.JSON() ``` JSON { "code": "0", "message": [ { "id": "", "message": "", "praise": {"status": true, "count": ""}, "user": {"id":"", "name":"", "avatar":""}, } ], } ``` if error ```JSON { "code": "-1", "message": "error info.." } ``` # Post POST https:///post-create---.htm?bbs_token=&ajax=1 request FormData > message: "", doctype: "", quotepid: "" * doctype = 0 // message type TEXT * doctype = 1 // message type HTML * quotepid = 0 // quote post id, default 0 response JSON ```JSON { "code": "0", "message": "ok" } ``` if error ```JSON { "code": "-1", "message": "error info.." } ``` # Like POST https:///post-like-.htm?bbs_token=&ajax=1 request FormData > status: 1 || 0 * Like or Cancel Like response JSON ```JSON { "code": "0", "message": "ok" } ``` if error ```JSON { "code": "-1", "message": "error info.." } ```