Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
{
    "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) .

ParameterTypeDescriptionAllowed Values
prettyPrintNumberWhether the JSON is pretty-printed with line feeds0 (default), 1
lngStringLanguage to use
  • fi (Finnish, default)
  • sv (Swedish)
  • en-gb (English)

targetStringLogin target, i.e. libraryAny id returned by getLoginTargets request
usernameStringUser name (library card number) 
passwordStringPassword (PIN code) 
secondaryStringSecondary identification field if getLoginTargets returned a secondary_login_field_label 

Example request (here as a GET request, use a POST request):

...