Skip to content

Instantly share code, notes, and snippets.

@basst85
basst85 / covid-19_vaccins_nl.js
Created Jan 26, 2021
covid-19_vaccins_nl.js
View covid-19_vaccins_nl.js
let https = require("https");
let jsdom = require("jsdom");
// Get page
https.get("https://coronadashboard.rijksoverheid.nl", (res) => {
let htmlData;
res.on("data", (chunk) => {
htmlData += chunk;
});
View bunqListInsights.php
<?php
use bunq\Context\ApiContext;
use bunq\Context\BunqContext;
use bunq\Model\Generated\Endpoint\Insight;
use bunq\Util\BunqEnumApiEnvironmentType;
require_once(__DIR__ . '/vendor/autoload.php');
$environmentType = BunqEnumApiEnvironmentType::PRODUCTION();
$apiKey = 'YOUR_ARI_KEY'; // Replace with your APIk-key
@basst85
basst85 / bunqCreateCallbackFilter.php
Created Aug 6, 2020
Create new callback filter for bunq sub-account
View bunqCreateCallbackFilter.php
<?php
use bunq\Context\ApiContext;
use bunq\Context\BunqContext;
use bunq\Model\Generated\Endpoint\User;
use bunq\Model\Generated\Endpoint\UserPerson;
use bunq\Model\Generated\Endpoint\NotificationFilterUrlMonetaryAccount;
use bunq\Model\Generated\Object\NotificationFilterUrl;
use bunq\Model\Core\NotificationFilterUrlMonetaryAccountInternal;
use bunq\Util\BunqEnumApiEnvironmentType;
@basst85
basst85 / get_Lidl_refreshtoken.js
Last active Aug 28, 2020
Get refresh_token for Lidl Plus API
View get_Lidl_refreshtoken.js
/**
* Get refresh_token for Lidl Plus API
*
* By: Bastiaan Steinmeier, https://github.com/basst85
*
*/
const { Issuer, generators } = require('openid-client');
const puppeteer = require('puppeteer');
const devices = require('puppeteer/DeviceDescriptors');
View bunq_psd2_oauth.php
<?php
use bunq\Context\ApiContext;
use bunq\Context\BunqContext;
use bunq\Model\Core\BunqEnumOauthResponseType;
use bunq\Model\Core\OauthAuthorizationUri;
use bunq\Model\Generated\Endpoint\OauthCallbackUrl;
use bunq\Model\Generated\Endpoint\OauthClient;
use bunq\Util\BunqEnumApiEnvironmentType;
use bunq\Util\FileUtil;
use bunq\Util\SecurityUtil;
View bunq_events_list.py
#!/usr/bin/python3
import warnings
from bunq.sdk import context
from bunq.sdk.json import converter
from bunq.sdk.client import Pagination
from bunq.sdk.context import ApiContext
from bunq.sdk.context import ApiEnvironmentType
from bunq.sdk.context import BunqContext
from bunq.sdk.model.generated import endpoint
@basst85
basst85 / pihole_cloudflared.yml
Last active Aug 7, 2020
pihole_cloudflared.yml
View pihole_cloudflared.yml
version: "3.5"
services:
pihole:
image: pihole/pihole:latest
container_name: pihole
hostname: pihole
networks:
dockernet:
ipv4_address: 172.19.0.2
@basst85
basst85 / bunq_callback_filter.py
Created Aug 13, 2019
Add callback URL to bunq user
View bunq_callback_filter.py
#!/usr/bin/python3
import warnings
from bunq.sdk import context
from bunq.sdk.json import converter
from bunq.sdk.client import Pagination
from bunq.sdk.context import ApiContext
from bunq.sdk.context import ApiEnvironmentType
from bunq.sdk.context import BunqContext
from bunq.sdk.model.generated import endpoint
@basst85
basst85 / bunq_monetaryaccount_list.py
Last active Feb 13, 2019
bunq_monetaryaccount_list.py
View bunq_monetaryaccount_list.py
#!/usr/bin/python3
import warnings
from bunq.sdk import context
from bunq.sdk.json import converter
from bunq.sdk.client import Pagination
from bunq.sdk.context import ApiContext
from bunq.sdk.context import ApiEnvironmentType
from bunq.sdk.context import BunqContext
from bunq.sdk.model.generated import endpoint
@basst85
basst85 / index.js
Last active Jun 19, 2018
Use BunqJSClient with NodeJS
View index.js
const BunqJSClient = require('@bunq-community/bunq-js-client').default;
const JSONStore = require('json-store');
const LocalStorage = JSONStore(__dirname+'\\storage.json');
BunqClient = new BunqJSClient(LocalStorage);
const ENCRYPTION_KEY = "3c7a4d431a846ed33a3bb1b1fa9b5c26";
const API_KEY = "sandbox_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
const DEVICE_NAME = "NodeTest";
const ENVIRONMENT = "SANDBOX"; // OR you can use PRODUCTION