******************************************
*
* iBSG Web Service Interface (iWSI) version 0.1
* Reference Note
*
******************************************
Functions:
-------------------------------------
1.get_policy / use to get available policy name
-------------------------------------
Function parameters
- policy_name (optional)
- self_register (optional)
+ 1 = filter self register policy
:function=get_policy
:hash=1
self_register=1
http://192.168.2.254/wsi.php?function=get_policy&self_register=1&hash=83DCEFB7&debug
-------------------------------------
2.add_new_account / use to create new login account to ibsg database
-------------------------------------
Function parameters
-------------------------------------
3.set_account_state / use to set existing login account state (active,inactive)
-------------------------------------
Function parameters
-------------------------------------
- Global parameters
-------------------------------------
- debug (this will enabled error description response)
- single (force get/remove 1 first record only even mutiple records are matched)
- hash (calculated crc32 in HEX format by hashing 'ALL' NOT NULL/ZERO parameter values in order)
Hash Calculation Example:
guest_name=hemmarit hema
guest_idcard=1122334455667
guest_room_no=6996
crc32(hemmarit hema11223344556676996) = D820F673
-------------------------------------
- Response errors
-------------------------------------
1 "REQUESTED HOST NOT ALLOW";
2 "WEB SERIVCE INTERFACE DISABLED";
3 "UNKNOW WSI FUNCTION";
4 "INVALID CALCULATED HASH";
5 "INVALID REQUEST PARAMETER";
6 "RECORD ALREADY EXIST";
7 "RECORD NOT EXIST";
8 "REFERENCE RECORD NOT EXST";
9 "CAN NOT WRITE RECORD";
-------------------------------------
- Response data format
-------------------------------------
JSON format only (JavaScript Object Notation)