//====================================================== 1. pcloud.ddns.net/liansin/api/my_profile.php POST; { "u":"1", "t":"12345" } RETURN: { "session": { "status": "YES", "message": "Login successfully" }, "my_profile": { "email": "bernard@gmaill.com", "full_name": "Bernard wong", "contact_no": "010-12344566", "type": "", "status": "ACTIVE" } } 2.pcloud.ddns.net/liansin/api/products.php > get product list 3. pcloud.ddns.net/liansin/api/verify.php > click from apple/google/fb login POST: { "apple_uid":"ss", "gl_uid":"", "fb_uid":"" } RETURN: if YES, proceed to logged in ; if NO, show form. API 4 ( name, email, contact, type, password**); { "session": { "status": "YES", "message": "Log in now." }, "my_profile": { "user_id": "4", "session_token": "71996020221229143618", "full_name": "asadasdasd", "email": "pcloud@gmail.com", "contact_no": "0101234567", "type": "INDIVIDUAL", "status": "ACTIVE" } } OR { "session": { "status": "NO", "message": "New User. Proceed to form." }, "my_profile": { "user_id": "5", "session_token": "42963120221229143630", "full_name": "", "email": "", "contact_no": "", "type": "", "status": "" } } 4. pcloud.ddns.net/liansin/api/register.php > register form submit, submit name, email, contact, type, md5 password; after success, logged in. POST: { "name":"asadasdasd", "password":"81dc9bdb52d04dc20036dbd8313ed055", "email":"pcloud@gmail.com", "contact":"0101234567", "type": "INDIVIDUAL" } RETURN: { "session": { "status": "YES", "message": "Register successfully. Proceed to login now..." }, "my_profile": { "user_id": "4", "session_token": "70386520221229143433", "full_name": "asadasdasd", "email": "pcloud@gmail.com", "contact_no": "0101234567", "type": "INDIVIDUAL", "status": "ACTIVE" } } 5. pcloud.ddns.net/liansin/api/login.php > login for others (not third party app ) POST: { "m":"0109778007", "p":"81dc9bdb52d04dc20036dbd8313ed055" } RETURN: { "session": { "status": "YES", "message": "Login successfully", "user_id": "4", "session_token": "32736020221229143512", "full_name": "asadasdasd" }, "my_profile": { "user_id": "4", "email": "pcloud@gmail.com", "full_name": "asadasdasd", "contact_no": "0101234567", "type": "INDIVIDUAL", "status": "ACTIVE" } } 6. pcloud.ddns.net/liansin/api/session.php POST: { "u":"3", "t":"81837320221229143502" } RETURN: { "session": { "status": "YES", "message": "Valid Session" } } //====================================================== pcloud.ddns.net/liansin/api/scan_ticket.php POST; { "u":"1", "t":"12345", "qr":"lCyjSLwc7jbyxJLFZNhpLy9nTtZZh5qy", "pid":"2" } status == YES means submitted. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Print API //====================================================== pcloud.ddns.net/liansin/api_printing/print.php pcloud.ddns.net/liansin/api_printing/print_confirm.php POST: confirm_id=1 Manual Printing pcloud.ddns.net/liansin/api_printing/print_v2.php?draw_period=2023-01