-
Notifications
You must be signed in to change notification settings - Fork 2
Login Obtain Token
Ks Tan edited this page Jun 16, 2020
·
1 revision
Simbiz API required 1 time authentication via user name and secret key (You can refer below section to generate secret key). Once authenticated you will receive token from server. Subsequent API you can supply uid, token to gain access the resources.
Since Simbiz break most of the data by organization, to authenticate specific user we need to submit uid, secret, and org 3 parameter too.
http(s)://simbiz_system_url/api.php?action=login&module=system&uid=__username__&secret=__secret__&org=__ORG__
Which is: user = user name in simbiz secret = secret key generated in simbiz org = Valid organization code in simbiz, which current user have authority to access.
The authenticate result as something below:
{
"status":"OK",
"msg":"Authenticated successfully",
"token":"simit_xxxxxxxxx-xxxx",
"expireddate":"2028-11-07 09:48:50"
}