Xurrency provides developers with direct access to exchange rate information. Now you can integrate the data into your site directly from Xurrency or allow people to query the exchange rate.
The API is based in SOAP, a protocol for exchanging XML-based messages. It is multiplatform, so you can use it in several programming languages. For PHP, we propose to use NuSOAP library, a free collection of PHP classes that allow users to send and receive SOAP messages.
Nowadays, we're offering to our users the following available methods. You can move the cursor over each method to see more details.
If you want, you can see a list of examples here.
In this example, we've used the NuSOAP library, we can get the name of the currency with code eur.
require('lib/nusoap.php');
$cliente = new soapclient('http://xurrency.com/api.wsdl', 'wsdl');
$err = $cliente->getError();
if($err)
exit();
$proxy = $cliente->getProxy();
$resultado = $proxy->getName('eur');
if (!$cliente->getError())
echo $resultado;
else
echo $cliente->getError();