|
|
4年前 | |
|---|---|---|
| .idea | 4年前 | |
| html | 4年前 | |
| README.md | 4年前 | |
| apiV1ChartPastYearMonthly.go | 4年前 | |
| apiV1ChartRecent10Loans.go | 4年前 | |
| apiV1ChartTopBroker.go | 4年前 | |
| apiV1ChartTypeOfLoans.go | 4年前 | |
| apiV1Response.go | 4年前 | |
| apiV1login.go | 4年前 | |
| apiV1logout.go | 4年前 | |
| apiv1.go | 4年前 | |
| config.go | 4年前 | |
| config.json | 4年前 | |
| debug.go | 4年前 | |
| go.mod | 4年前 | |
| go.sum | 4年前 | |
| main.go | 4年前 | |
| main_test.go | 4年前 | |
| websocket.go | 4年前 | |
Version 1
input
**username** : must be email
**password** : 4-40 chars
output: always json
{
"login": true, //true = login ,false = failed.
"Biukop-Session": "3c88be7a-552a-474f-8e4b-92ff22fa0e1c", //session id, for each session
"Biukop-Mid": "a0acd59c-ffa5-439f-b415-7313b7cb1d34", //machine id, never change
"sessionExpire": 1646338110, //unix timestamp
"sessionExpireHuman": "Fri, 04 Mar 2022 07:08:30 +1100," // same as unix timestamp
}
User Sign up through email authentication, a temporary code will be generated for the user to sign up for the first time. Not implemented yet.
Client side clear the session ID and it will logout. Serverside will also clear the session when user logout. No data is kept for a dead or expired session.