Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Obtener la tasa de cambio representativa del mercado para Colombia con PHP
$date = date("Y-m-d");
try {
$soap = new soapclient("", array(
'soap_version' => SOAP_1_1,
'trace' => 1,
"location" => "",
$response = $soap->queryTCRM(array('tcrmQueryAssociatedDate' => $date));
$response = $response->return;
echo $response->value;
} catch(Exception $e){
echo $e->getMessage();

This comment has been minimized.

Copy link

@melimestiza melimestiza commented May 18, 2016

Sabes como podría acceder a cualquier tasa de cambio no solo el dólar?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment