-
-
Save mbernson/dd8c966e277b4acd820463335cd47e24 to your computer and use it in GitHub Desktop.
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
<?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