PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Slava Striletskyi   NBU API   example.php   Download  
File: example.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: NBU API
Get data of exchange rates and banks from Ukraine
Author: By
Last change:
Date: 5 years ago
Size: 575 bytes
 

Contents

Class file image Download
<?php
/**
 * Project: nbuAPI
 * Created by: spaceweb.com.ua
 * Date: 10/16/2018
 * Time: 2:05 PM
 */
?>

<h3>Example</h3>
<code>
    require_once "NBU_API.php";<br>
    require_once "extend/JSON_NBU_API.php";<br>
    require_once "extend/XML_NBU_API.php";<br>
    <br>
    $jsonNbuAPI = new JSON_NBU_API();<br>
    $xmlNbuAPI = new XML_NBU_API();<br>
    <br>
    print_r( $xmlNbuAPI->getExchanges( array( 'valcode' => 'USD' ) ) );<br>
    <br>
    print_r( $jsonNbuAPI->getBanks( array( 'typ' => 6 ), false ) );<br>
    <br>
</code>

<h3>Answers</h3>