Returns a JSON of the Templates owned by the user.
curl -i https://api.passdock.com/api/v1/templates?api_token=75778a65dfdae310a107d2ef0bbd3780
[
{
"auxiliary": [
{
"changeMessage": "Departure time changed to %@",
"dateStyle": "PKDateStyleMedium",
"key": "departure",
"label": "DEPARTURE",
"timeStyle": "PKDateStyleMedium",
"value": ""
}
],
"back": [
{
"changeMessage": "",
"key": "passport",
"label": "PASSPORT",
"value": ""
}
],
"bar": {
"altText": "",
"format": "PKBarcodeFormatQR",
"message": "",
"messageEncoding": "iso-8859-1"
},
"created_at": "2012-10-18T09:03:46Z",
"custom": [
{
"transitType": "PKTransitTypeAir"
}
],
"header": [
{
"changeMessage": "Gate changed to %@",
"key": "gate",
"label": "GATE",
"value": ""
}
],
"id": 106,
"primary": [
{
"changeMessage": "Departure changed in %@",
"key": "from",
"label": "FROM",
"value": ""
},
{
"changeMessage": "Destination changed to %@",
"key": "to",
"label": "TO",
"value": ""
}
],
"relevance": {
"relevantDate": ""
},
"secondary": [
{
"changeMessage": "Passenger name changed to %@",
"key": "name",
"label": "NAME",
"value": ""
}
],
"title": "Passdock Airways",
"updated_at": "2012-10-18T09:13:47Z",
"visual": {
"backgroundColor": "rgb(237,184,61)",
"foregroundColor": "rgb(255,255,255)",
"labelColor": "",
"logoText": "Passdock Airways"
}
}
]
| Param name | Description |
|---|---|
|
api_token required |
Your Passdock API key Value: Must be String |
|
page optional |
Page of results, currently the param is optional, but will be required soon. Each page contains 50 Templates ordered date (more recents first) Value: Must be Fixnum |