Top Banner
Back end de Pass & Digi Promo App Par CHHAN Malin ~ Mardi 21, mai 2013
33

CHHAN Malin Presentation 21.05.13

Jan 03, 2016

Download

Documents

Malin Chhan

Back end of Pass
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: CHHAN Malin Presentation 21.05.13

Back end de Pass & Digi Promo App

Par CHHAN Malin ~ Mardi 21, mai 2013

Page 2: CHHAN Malin Presentation 21.05.13

Contenu

I. Création et distribution de Pass

II. Mise à jour le nouvel Pass

III. Base de données

IV. Web service API de Pass

V. Digi Promo App

VI. Démo1

Page 3: CHHAN Malin Presentation 21.05.13

I. Création et distribution de

Pass

Admin Remplir les information de client

client

Copier le lien démontré à sarfari dans iPod-touch ou iPhone

Ajouter Pass à Passbook2

Page 4: CHHAN Malin Presentation 21.05.13

Example de création et distribution de Pass

3

Admin

Aller à :http://localhost/passesWebserver/createPass/

Remplir les information de client

Page 5: CHHAN Malin Presentation 21.05.13

Information de

client

4

Page 6: CHHAN Malin Presentation 21.05.13

Lien démontré

5

Page 7: CHHAN Malin Presentation 21.05.13

Client obtient Pass

6

Page 8: CHHAN Malin Presentation 21.05.13

II. Mise à jour le nouvel Pass

Admin

Add new location

Edit other info

Edit location info

Delete location

new Pass

7

Page 9: CHHAN Malin Presentation 21.05.13

II. Mise à jour le nouvel Pass

Server APNS

………….

pushToken1

pushToken2

pushToken..

8

Page 10: CHHAN Malin Presentation 21.05.13

Example de nouvel pass avec

Push notification

9

Page 11: CHHAN Malin Presentation 21.05.13

III. Base de données

10

Page 12: CHHAN Malin Presentation 21.05.13

Tableaux détailées

11

Page 13: CHHAN Malin Presentation 21.05.13

Tableaux détailées

12

Page 14: CHHAN Malin Presentation 21.05.13

Tableaux détailées

13

Page 15: CHHAN Malin Presentation 21.05.13

Tableaux détailées

14

Page 16: CHHAN Malin Presentation 21.05.13

Tableaux détailées

15

Page 17: CHHAN Malin Presentation 21.05.13

Tableaux détailées

16

Page 18: CHHAN Malin Presentation 21.05.13

Tableaux détailées

17

Page 19: CHHAN Malin Presentation 21.05.13

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

Page 20: CHHAN Malin Presentation 21.05.13

1. Registering Device

POST request to version/devices/<deviceLibraryIdentifier>/registrations/<passTypeIdentifier>/<serialNumber>

EX:

Generating POST request with URL <http:/192.168.1.106/passesWebserver/webService/v1/devices/a87fc03c8b17142c8f0f01c02fe77417/registrations/pass.cam-mob.passbookpasstest/1> 1

9

Page 21: CHHAN Malin Presentation 21.05.13

Response for success Registering Device

Response for Registering

Meaning

201 Registration succeeds

200 Serial number is already registered for this device

401 Request is not authorizedEX:

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 2

0

Page 22: CHHAN Malin Presentation 21.05.13

2. Getting the Serial Numbers for

Passes Associated with a Device

GET request to webServiceURL/version/devices/deviceLibraryIdentifier/registrations/passTypeIdentifier?passesUpdatedSince=tag

EX:

Generating GET request with URL <http:/192.168.1.106/passesWebserver/webService/v1/devices/a87fc03c8b17142c8f0f01c02fe77417/registrations/pass.cam-mob.passbookpasstest>

21

Page 23: CHHAN Malin Presentation 21.05.13

Response for Getting the Serial Numbers for

Passes Associated with a Device for 1

device

Ex:

- 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)

Response for Getting Serial Numbers

Meaning

200 There are matching passes.

204 There is no matching pass.

401 Request is not authorized.

22

Page 24: CHHAN Malin Presentation 21.05.13

3. Getting the Latest Version of a

Pass

GET request to webServiceURL/version/passes/passTypeIdentifier/serialNumber

EX:

Generating GET request with URL <http:/192.168.1.106/passesWebserver/webService/v1/passes/pass.cam-mob.passbookpasstest/1>

23

Page 25: CHHAN Malin Presentation 21.05.13

Response for Getting the Latest Version of a Pass

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

Response for Getting latest Pass

Meaning

200 Request is authorized.

304 Pass has not changed.

401 Request is not authorized.

24

Page 26: CHHAN Malin Presentation 21.05.13

4. Unregistering a device

DELETE request to webServiceURL/version/devices/deviceLibraryIdentifier/registrations/passTypeIdentifier/serialNumber

Ex:

Generating DELETE request with URL <http:/192.168.1.106/passesWebserver/webService/v1/devices/a87fc03c8b17142c8f0f01c02fe77417/registrations/pass.cam-mob.passbookpasstest/1>

25

Page 27: CHHAN Malin Presentation 21.05.13

Response for Unregistering a

device

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

Response for Unregistering a device

Meaning

200 Disassociation succeeds

401 Request is not authorized.

26

Page 28: CHHAN Malin Presentation 21.05.13

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

Page 29: CHHAN Malin Presentation 21.05.13

V. Digi Promo App

28

Page 30: CHHAN Malin Presentation 21.05.13

Digi Promo App- Detail

29

Page 31: CHHAN Malin Presentation 21.05.13

Digi Promo App- Search

30

Page 33: CHHAN Malin Presentation 21.05.13

VI. Démo