Tiny smidge of tidying
This commit is contained in:
parent
4f05c1cbae
commit
9d7f4f5932
7
Code.gs
7
Code.gs
@ -1,3 +1,4 @@
|
|||||||
|
// vim:filetype=javascript
|
||||||
const defaultSeriesURL = "https://api.bls.gov/publicAPI/v2/timeseries/data/";
|
const defaultSeriesURL = "https://api.bls.gov/publicAPI/v2/timeseries/data/";
|
||||||
const defaultSeriesID = "CUUR0200SA0";
|
const defaultSeriesID = "CUUR0200SA0";
|
||||||
const defaultStartYear = "2014";
|
const defaultStartYear = "2014";
|
||||||
@ -11,9 +12,9 @@ function CURRENTCPI(blsToken, options) {
|
|||||||
var reqOptions = {
|
var reqOptions = {
|
||||||
"method": "post",
|
"method": "post",
|
||||||
"payload": JSON.stringify({
|
"payload": JSON.stringify({
|
||||||
"seriesid": [seriesID],
|
"seriesid": [seriesID],
|
||||||
"startyear": startYear,
|
"startyear": startYear,
|
||||||
"endyear": endYear
|
"endyear": endYear
|
||||||
}),
|
}),
|
||||||
"contentType": "application/json",
|
"contentType": "application/json",
|
||||||
"headers": {
|
"headers": {
|
||||||
|
Loading…
Reference in New Issue
Block a user