Skip to content

Instantly share code, notes, and snippets.

@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 / 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;
<?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 / 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;
});
@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 / 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;