SDKs / Libraries
We maintain libraries in popular scripting languages to make it easy to build on top of PassNinja. You can find the source code for these here:
Installation
You can find the installation commands for each of these below.
Authentication
Initialize the PassNinja client with your API credentials. You can find your API key and Account ID in your account dashboard.
List Pass Templates
Retrieve a list of all pass templates for your account. (for more information check the API Reference)
Get Pass Template
Retrieve a specific pass template by its ID. (for more information check the API Reference)
Create a Pass
Create a new pass for a given pass template with specified field values. (for more information check the API Reference)
List Passes
Retrieve a list of passes for a given pass template. (for more information check the API Reference)
Get a Pass
Retrieve a specific pass by its pass type and serial number. (for more information check the API Reference)
Decrypt a Pass
Decrypt a pass payload using its pass type and encrypted payload. (for more information check the API Reference)
Patch a Pass
Partially update a pass. Only the fields provided will be updated; other fields retain their existing values. (for more information check the API Reference)
Update a Pass
Fully update a pass with new field values. All fields must be provided. (for more information check the API Reference)
Delete a Pass
Delete a pass by its pass type and serial number. (for more information check the API Reference)