php-bitpay-client/examples/Currencies.php
Chris Kleeschulte 0e144004c6 Examples/Tutorial, price checking
- 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)
2016-03-11 16:22:44 -05:00

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]);