node-airtable-currency
v0.0.5
Published
Fill open exchange currency rates to Airtable spreadsheet.
Downloads
11
Maintainers
Readme
node-airtable-currency
Fill open exchange currency rates to Airtable spreadsheet.
Fetches latest currency rates from open-exchange-rates and syncs them to Airtable's table.
Open exchange rates: https://openexchangerates.org/ Airtable: https://airtable.com/
How to use:
var nodeAirtableCurrency = require("node-airtable-currency");
var config = new nodeAirtableCurrency.config();
config.exchange.base = "SEK"; // base currency, default is USD config.exchange.appId = "<app_id>"; // Get App ID here: https://openexchangerates.org/ config.exchange.decimals = 8; // Number of decimals to use for currency, default is 8
config.airtable.apiKey = "<api_key>"; // Check airtable account settings to get this: https://airtable.com/ config.airtable.base = "<base_key>"; // Check API documentation to get this: https://airtable.com/api config.airtable.table = "Currency"; // Airtable's table name, should have these 2 columns: Code, Rate config.airtable.view = "Grid view"; // Airtable table's view
nodeAirtableCurrency.sync(config); // check console for output