ogic.fred.client.fred-client-webstart-application.1.0.6-RELEASE.source-code.GetObservationsExample.groovy Maven / Gradle / Ivy
/* This example, which is written in Groovy script, sends a request to the
* following URI:
*
* https://api.stlouisfed.org/fred/series/observations
*
* Note that the api key has been set for you.
*/
import com.coherentlogic.fred.client.core.domain.Observations
return queryBuilder
.series ()
.observations ()
.setSeriesId("EXJPUS")
.doGet(Observations.class)