Ratings | | Unique User Downloads | | Download Rankings |
Not enough user ratings | | Total: 138 | | All time: 9,240 This week: 524 |
|
Description | | Author |
This class provides REST API to return exchange rates from other APIs.
It responds to REST API requests to get information of Foreign Exchange rates by calling other APIs that provide the requested information.
Currently it returns the current foreign exchange buy and sell rates between two currencies retrieving the values from the Yahoo Finance API. | |
|
|
Innovation award
Nominee: 1x |
|
Example
<?php
require_once 'RestApi.php';
if(isset($_REQUEST["request"]))
{
$api = new RestApi($_REQUEST["request"]);
echo $api->executeApi();
}
else
{
header("Location: http://www.sauryatech.com");
}
|
Details
Live-Forex-Rate-REST-Api
This is the live foreign exchange rate RESTful API done by me. The response is returned in JSON format.
Method: GET
/fx/api/currency/rates/currency_pair (For single pair)
/fx/api/currency/rates/currency_pair1, currency_pair2 (For multiple pairs)
Example:
/fx/api/currency/rates/AUDUSD
/fx/api/currency/rates/AUDUSD, EURUSD
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.