@@ -96,7 +96,7 @@ def query_files(lst, dpid, site="all", startdate=None, enddate=None,
96
96
relurl = "&release=" + release
97
97
98
98
# construct full query url and run query
99
- qurl = "http ://data.neonscience.org/api/v0/data/query?productCode=" + dpid + sitesurl + dateurl + ipurl + "&package=" + package + relurl
99
+ qurl = "https ://data.neonscience.org/api/v0/data/query?productCode=" + dpid + sitesurl + dateurl + ipurl + "&package=" + package + relurl
100
100
qreq = get_api (api_url = qurl , token = token )
101
101
if qreq is None :
102
102
logging .info ("No API response for selected query. Check inputs." )
@@ -320,10 +320,10 @@ def zips_by_product(dpid, site="all", startdate=None, enddate=None,
320
320
# end of error and exception handling, start the work
321
321
# query the /products endpoint for the product requested
322
322
if release == "current" or release == "PROVISIONAL" :
323
- prodreq = get_api (api_url = "http ://data.neonscience.org/api/v0/products/"
323
+ prodreq = get_api (api_url = "https ://data.neonscience.org/api/v0/products/"
324
324
+ dpid , token = token )
325
325
else :
326
- prodreq = get_api (api_url = "http ://data.neonscience.org/api/v0/products/"
326
+ prodreq = get_api (api_url = "https ://data.neonscience.org/api/v0/products/"
327
327
+ dpid + "?release=" + release , token = token )
328
328
329
329
if prodreq is None :
@@ -332,7 +332,7 @@ def zips_by_product(dpid, site="all", startdate=None, enddate=None,
332
332
return
333
333
else :
334
334
if release != "current" and release != "PROVISIONAL" :
335
- rels = get_api (api_url = "http ://data.neonscience.org/api/v0/releases/" ,
335
+ rels = get_api (api_url = "https ://data.neonscience.org/api/v0/releases/" ,
336
336
token = token )
337
337
if rels is None :
338
338
raise ConnectionError ("Data product was not found or API was unreachable." )
0 commit comments