Page History
...
Code Block | ||
---|---|---|
| ||
{ "targets": [ { "id": "moominvalley", "name": "Moominvalley library", }, { "id": "testi", "name": "Test library", "secondary_login_field_label": "Last Name" } ] } |
libraryCardLogin
Returns whether the login was successful and any errors encountered. The parameters must be sent with a POST request (application/x-www-form-urlencoded; charset=utf-8) .
Parameter | Type | Description | Allowed Values |
---|---|---|---|
prettyPrint | Number | Whether the JSON is pretty-printed with line feeds | 0 (default), 1 |
lng | String | Language to use |
|
target | String | Login target, i.e. library | Any id returned by getLoginTargets request |
username | String | User name (library card number) | |
password | String | Password (PIN code) | |
secondary | String | Secondary identification field if getLoginTargets returned a secondary_login_field_label |
Example request (here as a GET request, use a POST request):
...