Skip to content

Instantly share code, notes, and snippets.

@PassKit
PassKit / Postman Pre-request Script.js
Last active May 13, 2019 15:17
Pre-request script for Postman app to help make requests against the PassKit API
var apiKey = "passkit_api_key",
apiSecret = "passkit_api_secret";
var jwtBody = {
"key": apiKey,
"exp": Math.floor(new Date().getTime() / 1000) + 30,
"iat": Math.floor(new Date().getTime() / 1000),
"url": request.url,
"method": request.method
};