Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit acd5653

Browse files
committed
README.md
Signed-off-by: Finbarrs Oketunji <f@finbarrs.eu>
1 parent 4036e9d commit acd5653

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,32 @@ if ($convertAllResult) {
8181
} else {
8282
echo "Conversion to all currencies failed: " . $convertAllResult['error'] . "\n";
8383
}
84+
85+
// Set the date for which you want to retrieve the currencies
86+
$day = '02';
87+
$month = '04';
88+
$year = '2023';
89+
90+
// Set the UUID of the currency you want to retrieve
91+
$uuid = 'currency_uuid';
92+
93+
// Call the getCurrencies method to get the available currencies for the given date
94+
$currenciesResult = $currensees->getCurrencies($username, $day, $month, $year);
95+
if ($currenciesResult) {
96+
echo "Currencies for " . $day . "/" . $month . "/" . $year . ":\n";
97+
echo json_encode($currenciesResult) . "\n";
98+
} else {
99+
echo "Failed to retrieve currencies for the given date.\n";
100+
}
101+
102+
// Call the getCurrency method to get the details of the specific currency for the given date
103+
$currencyResult = $currensees->getCurrency($uuid, $username, $day, $month, $year);
104+
if ($currencyResult) {
105+
echo "Currency details for " . $day . "/" . $month . "/" . $year . ":\n";
106+
echo json_encode($currencyResult) . "\n";
107+
} else {
108+
echo "Failed to retrieve currency details for the given date.\n";
109+
}
84110
?>
85111
```
86112

0 commit comments

Comments
 (0)