passport-parking
This library provides an unofficial wrapper around Passport's parking APIs. These APIs provide users with the ability to look up parking rules and create & pay for authorized parking sessions in many US cities.
Getting started
You must request access credentials from Passport here. Once registered, you will receive a client_id
and a client_secret
.
Once you have credentials, install this library into your project with:
npm i passport-parking
To make a simple zone lookup request in your application:
const client = ; // client.auth() is only required prior to the first request; the access token// will be cached for future requests.client;
Full documentation
The following methods are available in this library; documentation is available on Passport's developer portal.
Authorize a client
Documentation: POST /oauth/token
client
Generate an access token; this operation must be performed prior to making any other requests, and requires access credentials (username and password). Access tokens will be cached with the client once retrieved.
Retrieve zone information
Documentation: GET /zones
authorized_client
Retrieves a list of zones that match the provided criteria. Response matches format described in developer portal.
Retrieve rate information
Documentation: GET /rates
authorized_client
Coming soon
- Create quotes
- Create sessions
- Retrieve existing sessions
- Generate single-use payment tokens