@@ -17,10 +17,10 @@ for release yet, but you can track our development progress and help us test it
17
17
[ epidatpy] ( https://github.com/cmu-delphi/epidatpy ) .
18
18
19
19
In the meantime, minimalist Epidata clients remain available for
20
- [ JavaScript] ( https://github.com/cmu-delphi/delphi-epidata/blob/master/src/client/delphi_epidata.js ) ,
21
20
[ Python] ( https://github.com/cmu-delphi/delphi-epidata/blob/master/src/client/delphi_epidata.py ) ,
21
+ [ JavaScript] ( https://github.com/cmu-delphi/delphi-epidata/blob/master/src/client/delphi_epidata.js ) ,
22
22
and
23
- [ R] ( https://github.com/cmu-delphi/delphi-epidata/blob/master/src/client/delphi_epidata.R ) .
23
+ [ R (legacy) ] ( https://github.com/cmu-delphi/delphi-epidata/blob/master/src/client/delphi_epidata.R ) .
24
24
The following samples show how to import the library and fetch Delphi's COVID-19
25
25
Surveillance Streams from Facebook Survey CLI for county 06001, and days
26
26
` 20200401 ` and ` 20200405-20200414 ` (11 days total).
@@ -39,21 +39,6 @@ res <- pub_covidcast('fb-survey', 'smoothed_cli', 'county', 'day', geo_values =
39
39
cat(res )
40
40
````
41
41
42
- ### JavaScript (in a web browser)
43
-
44
- The minimalist JavaScript client does not currently support API keys. If you need API key support in JavaScript, contact
[email protected] .
45
-
46
- ```` html
47
- <!-- Imports -->
48
- <script src =" delphi_epidata.js" ></script >
49
- <!-- Fetch data -->
50
- <script >
51
- EpidataAsync .covidcast (' fb-survey' , ' smoothed_cli' , ' day' , ' county' , [20200401 , EpidataAsync .range (20200405 , 20200414 )], ' 06001' ).then ((res ) => {
52
- console .log (res .result , res .message , res .epidata != null ? res .epidata .length : 0 );
53
- });
54
- </script >
55
- ````
56
-
57
42
### Python
58
43
59
44
Optionally install the [ package from PyPI] ( https://pypi.org/project/delphi-epidata/ ) using pip(env):
@@ -75,6 +60,21 @@ res = Epidata.covidcast('fb-survey', 'smoothed_cli', 'day', 'county', [20200401,
75
60
print (res[' result' ], res[' message' ], len (res[' epidata' ]))
76
61
````
77
62
63
+ ### JavaScript (in a web browser)
64
+
65
+ The minimalist JavaScript client does not currently support API keys. If you need API key support in JavaScript, contact
[email protected] .
66
+
67
+ ```` html
68
+ <!-- Imports -->
69
+ <script src =" delphi_epidata.js" ></script >
70
+ <!-- Fetch data -->
71
+ <script >
72
+ EpidataAsync .covidcast (' fb-survey' , ' smoothed_cli' , ' day' , ' county' , [20200401 , EpidataAsync .range (20200405 , 20200414 )], ' 06001' ).then ((res ) => {
73
+ console .log (res .result , res .message , res .epidata != null ? res .epidata .length : 0 );
74
+ });
75
+ </script >
76
+ ````
77
+
78
78
### R (legacy)
79
79
80
80
``` R
0 commit comments