

# create a sessioncurl http://localhost:4000/api/v2/session.create \ -u key:secret # response{ "id": 5102525283827712, "token": "eyJzZXNzaW9uX2lkIjogNTEwMjUyNTI4MzgyNzcxMn0"} # redirect the user to http://localhost:4000/open?token=eyJzZXNzaW9uX2lkIjogNTEwMjUyNTI4MzgyNzcxMn0 # wait for the session to complete, then fetch the datacurl http://localhost:4000/api/v2/session.get \ -u key:secret \ -d @- << EOF{ "id": 5102525283827712}EOF # response{ "issuing_country": "ZZ", "given_names": "Sofie", "surname": "Martin", "document_number": "AA123456", "expiry_date": "2031-01-01", "date_of_birth": "1999-01-01", ...}