Skip to content

Instantly share code, notes, and snippets.

@tristankenney
tristankenney / Up.js
Last active February 20, 2021 22:15
Up Bank + Google Sheets = ❤️
const UP_ACCOUNTS = "https://api.up.com.au/api/v1/accounts";
const UP_TRANSACTIONS = (accountId, params) =>
`https://api.up.com.au/api/v1/accounts/${accountId}/transactions?${params}`;
/**
* Retrieves a list of accounts from Up bank account
*
* @param {string} token Up API token
* @param {bool} [includeSavers=true] Include savers accounts
* @return list of accounts

Keybase proof

I hereby claim:

  • I am tristankenney on github.
  • I am tristankenney (https://keybase.io/tristankenney) on keybase.
  • I have a public key ASAqxnAdyLhNgq0odR_vQaUJzcnmWCUXsPmhUd9baS4ytQo

To claim this, I am signing this object:

@tristankenney
tristankenney / gist:73b8dcf25aeff8a6868e
Created February 16, 2015 01:20
Decorated Exception Handler
class MyHandler implements ExceptionHandlerInterface
{
protected $handler;
//Accept the interface, rather than the implementation
public function __construct(ExceptionHandlerInterface $handler)
{
$this->handler = $handler;
}