PHP code example of tokenly / tokenmap-client
1. Go to this page and download the library: Download tokenly/tokenmap-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tokenly / tokenmap-client example snippets
$tokenmap_client = app('Tokenly\TokenmapClient\TokenmapClient');
$usd_float = $tokenmap_client->getSimpleQuote('USD', 'BTC', 'bitcoin')->getFloatValue();
$tokenmap_client = app('Tokenly\TokenmapClient\TokenmapClient');
$all_tokens = $tokenmap_client->allTokens();