public function __construct()
{
self::$settings = new Settings();
self::$settings->host = self::$settings->sandbox ? self::$settings->sandbox_host : self::$settings->production_host;
$this->settings = self::$settings;
$p = ['defaults' => ['headers' => ['Content-Type' => 'application/json', 'User-Agent' => 'dwolla-php/2'], 'timeout' => self::$settings->rest_timeout]];
if (self::$settings->proxy) {
$p['proxy'] = self::$settings->proxy;
}
$this->client = new Client($p);
}