Question

For getting the Latest Version of a Pass, GET request to webServiceURL/version/passes/passTypeIdentifier/serialNumber. What server do to respond to this request ? This is code I use:
if (strtoupper($_SERVER['REQUEST_METHOD']) === "GET" && $request[3]==='passes'){ $passTypeID = $request[4]; $serial = $request[5]; $auth_key = str_replace('ApplePass ', '', $headers['Authorization']); }

Was it helpful?

Solution

From the Apple Docs.

  • If request is authorized, return HTTP status 200 with a payload of the pass data.
  • If the request is not authorized, return HTTP status 401.
  • Otherwise, return the appropriate standard HTTP status.

The "payload of the pass data" means the .pkpass bundle.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top