CHHAN Malin Presentation 21.05.13

Download CHHAN Malin Presentation 21.05.13

Post on 03-Jan-2016

12 views

Category:

Documents

3 download

Embed Size (px)

DESCRIPTION

Back end of Pass

TRANSCRIPT

<p>Passbook ?</p> <p>Back end de Pass &amp; Digi Promo AppPar CHHAN Malin ~ Mardi 21, mai 2013 ContenuCration et distribution de Pass Mise jour le nouvel PassBase de donnesWeb service API de PassDigi Promo AppDmo</p> <p>12I. Cration et distribution de Pass 2Example de cration et distribution de Pass 3Admin Aller :http://localhost/passesWebserver/createPass/Remplir les information de client</p> <p>4Information de client </p> <p>4Lien dmontr </p> <p>5Client obtient Pass </p> <p>6II. Mise jour le nouvel PassAdminAdd new locationEdit other info Edit location infoDelete locationnew Pass7II. Mise jour le nouvel Pass</p> <p>ServerAPNS</p> <p>.pushToken1pushToken2pushToken..8Example de nouvel pass avec Push notification</p> <p>9III. Base de donnes</p> <p>10Tableaux dtailes</p> <p>11Tableaux dtailes</p> <p>12Tableaux dtailes</p> <p>13Tableaux dtailes</p> <p>14Tableaux dtailes</p> <p>15Tableaux dtailes</p> <p>16Tableaux dtailes</p> <p>17IV. Web service API de PassRegistering DeviceGetting the Serial Numbers for Passes Associated with a DeviceGetting the Latest Version of a Pass Unregistering a device Logging Errors </p> <p>181. Registering DevicePOST request to version/devices//registrations//EX: Generating POST request with URL </p> <p>19Response for success Registering Device Response for RegisteringMeaning201Registration succeeds200Serial number is already registered for this device401Request 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 20120Requte autoris; Le sens</p> <p>212. Getting the Serial Numbers for Passes Associated with a DeviceGET request to webServiceURL/version/devices/deviceLibraryIdentifier/registrations/passTypeIdentifier?passesUpdatedSince=tagEX: Generating GET request with URL 21Response for Getting the Serial Numbers for Passes Associated with a Device for 1 deviceEx: - 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 200Get serial numbers task completed with update tag 1369106116, serial numbers ( 1)</p> <p>Response for Getting Serial NumbersMeaning200There are matching passes.204There is no matching pass.401Request is not authorized.223. Getting the Latest Version of a Pass GET request to webServiceURL/version/passes/passTypeIdentifier/serialNumber EX: Generating GET request with URL 23Response 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</p> <p>Response for Getting latest PassMeaning200Request is authorized.304Pass has not changed.401Request is not authorized.24Le sens254. Unregistering a device DELETE request to webServiceURL/version/devices/deviceLibraryIdentifier/registrations/passTypeIdentifier/serialNumber Ex: Generating DELETE request with URL </p> <p>25Response 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 200Response for Unregistering a deviceMeaning200Disassociation succeeds401Request is not authorized.265. Logging Errors POST request to webServiceURL/version/log Ex: Generating POST request with URL </p>