This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Script to make GET or POST requests to psd2.holvi.com with HTTP signature and all required headers. | |
# Python 2.7 and Python 3.5+ compatible. | |
# requires requests and cryptography packages. | |
import time | |
import base64 | |
import datetime | |
import hashlib | |
import email.utils | |
from collections import OrderedDict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Borrowed from https://developer.nordeaopenbanking.com/app/documentation?api=Business%20Accounts%20API&version=1.0 | |
// With some small adjustments to header names | |
// Load Forge library | |
// !!!!!!!!!!!!!! Unsafe: it is better to download and compile forge lib | |
// from https://github.com/digitalbazaar/forge and put it to service managed | |
// by you instead of using | |
// https://raw.githubusercontent.com/loveiset/RSAForPostman/master/forge.js | |
// or just copy whole script to Postman Pre-Script section | |
if (!pm.globals.has("forgeJS")) { |