You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 4
Next »
Device API
Get device key
curl --verbose -X POST --data @- \
--header "Content-Type: application/json" \
https://test1.mobileticket.se/api/v1/device/key <<JSON
{"did": "MY_DEVICE_ID"}
JSON
Get current KDK set
curl --verbose -X GET \
--header "X-BoB-AuthToken: MY_AUTH_TOKEN" \
https://test1.mobileticket.se/api/v1/device/kdk
Ticket API
Issue ticket
curl --verbose -X POST --data @- \
--header "Content-Type: application/json" \
--header "X-BoB-AuthToken: MY_AUTH_TOKEN" \
https://test1.mobileticket.se/api/v1/ticket <<JSON
{
"manifestMtbTemplate": "MANIFEST_BASE64URL",
issueMtb: True
}
JSON
Get ticket bundle
curl --verbose -X POST --data @- \
--header "Content-Type: application/json" \
--header "X-BoB-AuthToken: MY_AUTH_TOKEN" \
https://test1.mobileticket.se/api/v1/ticketbundle <<JSON
{
"ticketIds": [ "TICKET1", "TICKET2", "..."]
}
JSON
Get ticket events
curl --verbose -X GET \
--header "X-BoB-AuthToken: MY_AUTH_TOKEN" \
https://test1.mobileticket.se/api/v1/ticket/TICKET_ID/event
Validation API
Get blacklist
curl --verbose -X GET \
--header "X-BoB-AuthToken: MY_AUTH_TOKEN" \
https://test1.mobileticket.se/api/v1/blacklist?blacklistEntryId=0