Vous êtes sur la page 1sur 33

Contenu

I.
II.

Cration et distribution de Pass


Mise jour le nouvel Pass

III. Base de donnes IV. Web service API de Pass V. Digi Promo App VI. Dmo
1

I. Cration et distribution de Pass


Admin Remplir les information de client
Copier le lien dmontr sarfari dans iPodtouch ou iPhone

client
Ajouter Pass Passbook
2

Example de cration et distribution de Pass


Admin
Aller :http://localhost/passesWebserver/createPass/ Remplir les information de client

Information de client

Lien dmontr

Client obtient Pass

II. Mise jour le nouvel Pass


Add new location

Edit location info Admin Delete location new Pass

Edit other info

II. Mise jour le nouvel Pass

pushToken1

Server

APNS
pushToken2

pushToken..

Example de nouvel pass avec Push notification

III. Base de donnes

10

Tableaux dtailes

11

Tableaux dtailes

12

Tableaux dtailes

13

Tableaux dtailes

14

Tableaux dtailes

15

Tableaux dtailes

16

Tableaux dtailes

17

IV. Web service API de Pass


1. Registering Device
2. Getting the Serial Numbers for Passes Associated with a Device 3. Getting the Latest Version of a Pass 4. Unregistering a device

5. Logging Errors
18

1. Registering Device
POST request to version/devices/<deviceLibraryIdentifier>/registrations/<passTyp eIdentifier>/<serialNumber> EX:
Generating POST request with URL <http:/192.168.1.106/passesWebserver/webService/v1/devices/ a87fc03c8b17142c8f0f01c02fe77417/registrations/pass.cammob.passbookpasstest/1>
19

Response for success Registering Device


Response for Registering 201 Meaning Registration succeeds

200
401

Serial number is already registered for this device


Request is not authorized

EX: Register task (for device a87fc03c8b17142c8f0f01c02fe77417, pass type pass.cam-mob.passbookpasstest, serial number 1; with web service url http://192.168.1.106/passesWebserver/webService/) got response with code 201

20

2. Getting the Serial Numbers for Passes

Associated with a Device


GET request to webServiceURL/version/devices/deviceLibraryIdentifier/registrati ons/passTypeIdentifier?passesUpdatedSince=tag EX:
Generating GET request with URL <http:/192.168.1.106/passesWebserver/webService/v1/devices/ a87fc03c8b17142c8f0f01c02fe77417/registrations/pass.cammob.passbookpasstest>
21

Response for Getting the Serial Numbers for

Passes Associated with a Device for 1 device


Response for Getting Serial Numbers Meaning

200
204 401
Ex:

There are matching passes.


There is no matching pass. Request is not authorized.

- Get serial #s task (for device a87fc03c8b17142c8f0f01c02fe77417, pass type pass.cam-mob.passbookpasstest, last updated (null); with web service url http://192.168.1.106/passesWebserver/webService/) got response with code 200

Get serial numbers task completed with update tag 1369106116, serial numbers ( 1)

22

3. Getting the Latest Version of a Pass


GET request to webServiceURL/version/passes/passTypeIdentifier/serialNumbe r EX:
Generating GET request with URL <http:/192.168.1.106/passesWebserver/webService/v1/passes/p ass.cam-mob.passbookpasstest/1>
23

Response for Getting the Latest Version of a Pass


Response for Getting latest Pass 200 304 401
Ex: - Get pass task (pass type pass.cam-mob.passbookpasstest, serial number 1, if-modified-since Tue, 21 May 2013 10:35:42 GMT + 7; with web service url http://192.168.1.106/passesWebserver/webService/) got response with code 304 - Get pass task (pass type pass.cam-mob.passbookpasstest, serial number 2, if-modified-since Tue, 21 May 2013 11:09:41 GMT + 7; with web service url http://192.168.1.106/passesWebserver/webService/) got response with code 200

Meaning Request is authorized. Pass has not changed. Request is not authorized.

24

4. Unregistering a device
DELETE request to webServiceURL/version/devices/deviceLibraryIdentifier/regis trations/passTypeIdentifier/serialNumber
Ex: Generating DELETE request with URL <http:/192.168.1.106/passesWebserver/webService/v1/devic es/a87fc03c8b17142c8f0f01c02fe77417/registrations/pass.c am-mob.passbookpasstest/1>
25

Response for Unregistering a device


Response for Unregistering a device 200 401 Meaning Disassociation succeeds Request is not authorized.

Ex: Unregister task (for device a87fc03c8b17142c8f0f01c02fe77417, pass type pass.cam-mob.passbookpasstest, serial number 1; with web service url http://192.168.1.106/passesWebserver/webService/) got response with code 200
26

5. Logging Errors
POST request to webServiceURL/version/log
Ex:

Generating POST request with URL <http:/192.168.1.106/passesWebserver/webService/v1/ log

27

V. Digi Promo App

28

Digi Promo App- Detail

29

Digi Promo App- Search

30

Rfrences
http://stackoverflow.com/
https://developer.apple.com/passbook/

https://developer.apple.com/library/ios/#documentati on/PassKit/Reference/PassKit_WebService/WebSer vice.html

VI. Dmo

Vous aimerez peut-être aussi