A WordPress plugin for integrating with Currency API.
Author: | Moat Systems Limited (profile at wordpress.org) |
WordPress version required: | 6.0 |
WordPress version tested: | 6.2 |
Plugin version: | 1.0 |
Added to WordPress repository: | 04-05-2023 |
Last updated: | 04-05-2023 |
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | https://moatsystems.com/currency-api/ |
Total downloads: | 166 |
Click to start download |
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.
Usage Examples
Login
“`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.
}
Convert
$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.
}
Convert All
$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.
}
`
Using the Currency
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.
License
This project is licensed under the BSD 3-Clause License.
Copyright
(c) 2020 – 2023 Moat Systems Limited.
FAQ
ChangeLog