Skip to content

animatedcreativity/node-airtable-currency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Fill currency rates to Airtable spreadsheet.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published