
ogic.fred.client.fred-client-webstart-application.0.9.14.source-code.GetCategoriesExample.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fred-client-webstart-application Show documentation
Show all versions of fred-client-webstart-application Show documentation
This application demonstrates how to use the FRED Client and
allows the developer to write custom queries via the FRED Client API.
/* This example, which is written in Groovy script, sends a request to the
following URI:
*
* http://api.stlouisfed.org/fred/series/categories
*
* Note that the api key has been set for you.
*/
import com.coherentlogic.fred.client.core.domain.Categories
import static com.coherentlogic.fred.client.misc.utils.Utils.using
return queryBuilder
.series ()
.categories ()
.setSeriesId("EXJPUS")
.setRealtimeStart(
using (2001, Calendar.JANUARY, 20)
).setRealtimeEnd(
using (2004, Calendar.MAY, 17)
).doGet(Categories.class)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy