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


Class file image Download
 * Project: nbuAPI
 * Created by:
 * Date: 10/16/2018
 * Time: 2:05 PM

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