2017 © Pedro Peláez
 

library bunq-api-client

Bunq API Client

image

snijder/bunq-api-client

Bunq API Client

  • Saturday, March 25, 2017
  • by Dsnijder
  • Repository
  • 8 Watchers
  • 11 Stars
  • 27 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 4 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

Bunq API Client

Build status, (*1)

Description

A PHP Client Library for accessing Bunq's API., (*2)

Installation

$ composer require snijder/bunq-api-client

Usage

$keyPair = new \Snijder\Bunq\Model\KeyPair($apiKey, $publicKey, $privateKey);
$bunqClient = new \Snijder\Bunq\BunqClient($keyPair);

$userResource = new \Snijder\Bunq\Resource\UserResource($BunqClient);
$userResource->listUsers(); //list all available users.

Token Storage

This Bunq API client automatically handles the installation by itself. By default the tokens are being store in the "PHP temporary folder"., (*3)

You can use the TokenStorageInterface to overwrite the default file system storage., (*4)

$bunqClient->setInstallationTokenStorage($myInstallationTokenStorage);
$bunqClient->setSessionTokenStorage($mySessionTokenStorage);

or use the default token file storage., (*5)

$bunqClient->setSessionTokenStorage(
    new \Snijder\Bunq\Storage\SessionTokenFileStorage($path)
);

$bunqClient->setInstallationTokenStorage(
    new \Snijder\Bunq\Storage\InstallationTokenFileStorage($path)
);

The Versions

25/03 2017

dev-master

9999999-dev

Bunq API Client

  Sources   Download

The Requires

 

The Development Requires

by Dennis Snijder