Метод | Описание | |
---|---|---|
GetImageData ( string imageId ) : |
Method returns information about the image with imageId.
|
|
GetPassDetails ( string passId ) : |
Gets the details for a pass identified by the given unique pass-id. Returns the details for one unique pass only.
|
|
GetPassDetails ( string templateName, string serialNumber ) : |
Gets the details for a pass identified by the given template name and serial number. Serial number is not unique in case the user decided to use the same serial for multiple passes in the pass designer. In that case the response can contain information for multiple passes.
|
|
GetPasses ( string templateName ) : |
Gets the passes for a given template.
|
|
GetTemplateFieldNames ( string templateName, bool full = false ) : |
This method returns the field names that can be used with the Issue Pass and Update Pass methods for a particular template. It returns the names of all dynamic fields in the template, plus other variables such as barcode content, serial number or thumbnail image that can be set or updated.
|
|
GetTemplates ( ) : |
Requests a list of templates for the current API account.
|
|
InvalidatePass ( string passId, string>.Dictionary |
This method is used for invalidating a pass. It accepts the parameters returned by the Get Template Field Names method, plus relevance fields for date and for up to 10 locations. Invalidating a pass, performs two functions in a single call. Firstly, it serves as a update, allowing you to change the content of an invalidated pass and secondly, it removes the pass from circulation, preventing it from being updated or manually refreshed.
|
|
InvalidatePass ( string templateName, string serialNumber, string>.Dictionary |
This method is used for invalidating a pass. It accepts the parameters returned by the Get Template Field Names method, plus relevance fields for date and for up to 10 locations. Invalidating a pass, performs two functions in a single call. Firstly, it serves as a update, allowing you to change the content of an invalidated pass and secondly, it removes the pass from circulation, preventing it from being updated or manually refreshed.
|
|
IssuePass ( string templateName, string>.Dictionary |
Issues a new PassKit pass for template with 'templateName', with the data provided in the 'fields' dictionary. The 'fields' dictionary uses the field-names as 'key' and the values as 'value'.
|
|
PassKit ( string account, string secret ) : System |
Constructor for the PassKit class. All API methods return a PassKitResponse object that always contains: 1. HTTP Response Code; 2. Response object. The first parameter on success is: success (bool), or error (string) on error;
|
|
ResetTemplate ( string templateName, bool push = true ) : |
This method resets each pass record to the default values. This only affects values that the user cannot edit. The method also removes all data-fields from each pass record.
|
|
UpdatePass ( string passId, string>.Dictionary |
Updates the fields for pass identified by 'passId'. 'passId' is unique, so method will update one pass.
|
|
UpdatePass ( string templateName, string serialNumber, string>.Dictionary |
Updates the fields for pass identified by 'templateName' and 'serialNumber'. Method can update multiple passes at once in case the user decided to use the same serial for multiple passes in the pass designer.
|
|
UpdateTemplate ( string templateName, string>.Dictionary |
Updates the template. Causes all the passes of the template to be updated as well.
|
|
UploadImage ( string pathToLocalFile, PassKitImageType imageType ) : |
This method allows you to upload images for use with other methods such as template methods and pass methods. Each image that is uploaded is assigned a unique ID, and is processed for use with Passbook, according to the imageType selected.
|
Метод | Описание | |
---|---|---|
Execute ( |
The execute method. Used for all calls to the API.
|
public GetImageData ( string imageId ) : |
||
imageId | string | The unique ID of the image |
Результат |
public GetPassDetails ( string passId ) : |
||
passId | string | The unique pass id for the pass |
Результат |
public GetPassDetails ( string templateName, string serialNumber ) : |
||
templateName | string | The template name of the pass |
serialNumber | string | The serial number pf the pass |
Результат |
public GetPasses ( string templateName ) : |
||
templateName | string | The template name |
Результат |
public GetTemplateFieldNames ( string templateName, bool full = false ) : |
||
templateName | string | The name of the template |
full | bool | Boolean, if true the method will also return information re. the fields on the back of the template |
Результат |
public InvalidatePass ( string passId, string>.Dictionary |
||
passId | string | The unique pass id |
fields | string>.Dictionary | A dictionary of field-names and their values |
Результат |
public InvalidatePass ( string templateName, string serialNumber, string>.Dictionary |
||
templateName | string | The template name of the pass |
serialNumber | string | The serial number pf the pass |
fields | string>.Dictionary | A dictionary of field-names and their values |
Результат |
public IssuePass ( string templateName, string>.Dictionary |
||
templateName | string | The name of the template to issue the pass for |
fields | string>.Dictionary | A dictionary of field-names and their values |
Результат |
public PassKit ( string account, string secret ) : System | ||
account | string | The PassKit API account key: a 32 character Hexadecimal string or a 20 character base62 string |
secret | string | The PassKit API secret: a base64 string |
Результат | System |
public ResetTemplate ( string templateName, bool push = true ) : |
||
templateName | string | The name of the template |
push | bool | Indicates if the update should be pushed to all devices with an active pass |
Результат |
public UpdatePass ( string passId, string>.Dictionary |
||
passId | string | The unique pass id |
fields | string>.Dictionary | A dictionary of field-names and their values |
push | bool | Indicates if the update should be pushed to all devices with an active pass |
Результат |
public UpdatePass ( string templateName, string serialNumber, string>.Dictionary |
||
templateName | string | The template name of the pass |
serialNumber | string | The serial number of the pass |
fields | string>.Dictionary | A dictionary of field-names and their values |
push | bool | Indicates if the update should be pushed to all devices with an active pass |
Результат |
public UpdateTemplate ( string templateName, string>.Dictionary |
||
templateName | string | The template name |
fields | string>.Dictionary | A dictionary of field-names and their values |
push | bool | Indicates if the update should be pushed to all devices with an active pass |
Результат |
public UploadImage ( string pathToLocalFile, PassKitImageType imageType ) : |
||
pathToLocalFile | string | The path to the local filename (make sure that you have read access to the file) |
imageType | PassKitImageType | The image type of the file (according to PassKitImageType enum) |
Результат |