user/login
Log a user in with their username and password. Returns the users API Key
Sample Request
http://api.verifiapp.com/user/login/{username}/{password}
Sample Response
{"result":"success","api_key":"sghfd3456"}
POST parameters
[optional] imei_code => The IMEI of the device. This will be used to disable the login if the IMEI is not registered in the application. If the IMEI is null, the device can login as normal. If the list of registered IMEIs is empty, it will be able to login too.
Successful Response Reference
A successful response will return the following items in a JSON array
| Preference | Description | Default value | Notes |
|---|---|---|---|
| result | Result of the call | success | |
| api_key | The users API Key |
Unsuccessful Response Reference
A unsuccessful response will return the following items in a JSON array
| Preference | Description | Default value | Notes |
|---|---|---|---|
| result | Result of the call | error | |
| error | The error message |