Currensees is a WordPress plugin that provides an interface to interact with the Currency API. With this plugin, you can authenticate a user, convert currencies, and convert a base currency to all other available currencies.
“`php
$currensees = new Currensees\Currensees();
$login_result = $currensees->login(‘username’, ‘password’);
if ($login_result) {
// Login was successful, do something with the result data.
} else {
// Login failed, show an error message.
}
$currensees = new Currensees\Currensees();
$conversion_result = $currensees->convert(‘2023_04_02’, ‘GBP’, ‘CAD’, ‘500’);
if ($conversion_result) {
// Conversion was successful, do something with the result data.
} else {
// Conversion failed, show an error message.
}
$currensees = new Currensees\Currensees();
$conversion_all_result = $currensees->convertAll(‘GBP’, 120, ‘2023_04_02’);
if ($conversion_all_result) {
// Conversion was successful, do something with the result data.
} else {
// Conversion failed, show an error message.
}
`
You can read the API documentation to understand what’s possible with the Currency API. If you need further assistance, don’t hesitate to contact us.
This project is licensed under the BSD 3-Clause License.
(c) 2020 – 2023 Moat Systems Limited.