Skip to content

Instantly share code, notes, and snippets.

@basst85
basst85 / bunq_MastercardAction_notes.php
Created September 5, 2023 10:04
bunq_MastercardAction_notes.php
<?php
require_once __DIR__ . '/vendor/autoload.php';
use bunq\Context\ApiContext;
use bunq\Http\ApiClient;
use bunq\Model\Generated\Endpoint\MasterCardAction;
use bunq\Model\Generated\Endpoint\NoteAttachmentMasterCardAction;
use bunq\Util\BunqEnumApiEnvironmentType;
use bunq\Context\BunqContext;
use bunq\Model\Generated\Endpoint\MonetaryAccountBank;
@basst85
basst85 / bunq_create_bunqMeTab.py
Created November 3, 2021 14:19
bunq_create_bunqMeTab.py
#!/usr/bin/python3
import warnings
from bunq.sdk.context.api_context import ApiContext, ApiEnvironmentType
from bunq.sdk.context.bunq_context import BunqContext
from bunq.sdk.model.generated.endpoint import BunqMeTab, BunqMeTabEntry
from bunq.sdk.model.generated.object_ import Amount
warnings.filterwarnings("ignore")
_API_KEY = '<YOUR_BUNQ_API_KEY>'
@basst85
basst85 / covid-19_vaccins_nl.js
Created January 26, 2021 15:38
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;
});
<?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 August 6, 2020 20:29
Create new callback filter for bunq sub-account
<?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 February 4, 2024 23:00
Get refresh_token for Lidl Plus API
/**
* 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');
@basst85
basst85 / bunq_psd2_oauth.php
Created November 6, 2019 08:43
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;
@basst85
basst85 / bunq_events_list.py
Created October 17, 2019 19:32
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 August 7, 2020 21:55
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 August 13, 2019 12:59
Add callback URL to bunq user
#!/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