- Upgraded examples to show how to interact with the config.yml file and encrypted file storage - checkPriceAndCurrency will now allow prices that do not have fractions of main units (e.g. $1000)
14 lines
304 B
PHP
14 lines
304 B
PHP
<?php
|
|
/**
|
|
* Copyright (c) 2014-2015 BitPay
|
|
*/
|
|
|
|
require __DIR__ . '/../vendor/autoload.php';
|
|
|
|
$bitpay = new \Bitpay\Bitpay(__DIR__ . '/config.yml');
|
|
$client = $bitpay->get('client');
|
|
$currencies = $client->getCurrencies();
|
|
|
|
/** @var \Bitpay\Currency $currencies[0] **/
|
|
var_dump($currencies[0]);
|