BoxLang 🚀 A New JVM Dynamic Language Learn More...
Wraps the FinnHub API for easy CFML usage using the Hyper ColdBox module.
box install FinnHub
.env
moduleSettings
FinnHub can mainly be configured using environment variables:
FINNHUB_API_KEY
- Required API key for authenticating with the FinnHub APIFINNUHB_API_URL
- base URL of the FinnHub API.You'll need to either use commandbox-dotenv
to automatically populate environment variables from the .env
file on server start, or manually read this file to populate environment variables inside your application.
# .env file
# FinnHub API Credentials
FINNHUB_API_KEY=
FINNHUB_API_URL=https://finnhub.io/api/v1
Set this in config/ColdBox.cfc
in the configure()
method:
moduleSettings.finnHub = {
apiKey : "blablasecret",
apiURL : "my.url"
};
$
box install finnhub