Skip to content

Instantly share code, notes, and snippets.

@dgonzo
Created June 8, 2012 03:14
Show Gist options
  • Save dgonzo/2893306 to your computer and use it in GitHub Desktop.
Save dgonzo/2893306 to your computer and use it in GitHub Desktop.
Federal Reserve FRED Java API
cPropertyURIProperty
public static final java.lang.String cPropertyURIProperty
System.getProperty(cPropertyURIProperty) returns the URI of the property file. Define this on the java command line. For example, if your properties file is fred.properties then the command line should be
java -Dcom.uniservsolutions.stlouisfed.fred.properties="fred"
It is also necessary that the classpath contains the directory fred.properties is in.
The properties it's looking for are these:
# FRED API parameters
fredAPIKey=<api_key>
fredURL=http://api.stlouisfed.org/fred/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment