PHP Classes

File: testing.php

Recommend this page to a friend!
  Classes of Dave Smith   Coin Layer PHP Cryptocurrency Exchange Rates API   testing.php   Download  
File: testing.php
Role: Example script
Content type: text/plain
Description: Example Source
Class: Coin Layer PHP Cryptocurrency Exchange Rates API
Get the exchange rates for crypto currencies
Author: By
Last change:
Date: 6 years ago
Size: 569 bytes
 

Contents

Class file image Download
<?php
//instantiate the class
include('coinlayer.class.php');
$coin = new coinLayer();

$coin->setEndPoint('live');

//$fixer->setParam('base','USD');
$coin->setParam('symbols','BTC, TRUMP, 611');
//$coin->setParam('start_date','2018-04-01');
//$coin->setParam('end_date','2018-04-05');
//$coin->setParam('from','BTC');
//$coin->setParam('to','USD');
//$coin->setParam('amount','10');

$coin->getResponse();

echo
'<pre>';
var_dump($coin->response);
echo
'<pre>';
die;

//$newVal = $fixer->convertTo(100,'USD');

//echo 'Test: '.$newVal;

?>