Skip to content

Instantly share code, notes, and snippets.

@mbernson
Created November 13, 2017 11:22
Show Gist options
  • Save mbernson/dd8c966e277b4acd820463335cd47e24 to your computer and use it in GitHub Desktop.
Save mbernson/dd8c966e277b4acd820463335cd47e24 to your computer and use it in GitHub Desktop.
<?php
use bunq\Context\ApiContext;
use bunq\Model\Generated\Endpoint\SchedulePayment;
require_once 'vendor/autoload.php';
const BUNQ_PRODUCTION_CONF = 'bunq.production.conf'; // Config was set up earlier
const MONETARY_ACCOUNT_ID = 000000; // The MA I used has one scheduled payment
const USER_ID = 000000;
$apiContext = ApiContext::restore(BUNQ_PRODUCTION_CONF);
$apiContext->ensureSessionActive();
$apiContext->save(BUNQ_PRODUCTION_CONF);
$scheduled = SchedulePayment::listing($apiContext, USER_ID, MONETARY_ACCOUNT_ID)->getValue();
var_dump($scheduled);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment