@@ -17,10 +17,10 @@ for release yet, but you can track our development progress and help us test it
1717[ epidatpy] ( https://github.com/cmu-delphi/epidatpy ) .
1818
1919In the meantime, minimalist Epidata clients remain available for
20- [ JavaScript] ( https://github.com/cmu-delphi/delphi-epidata/blob/master/src/client/delphi_epidata.js ) ,
2120[ 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 ) ,
2222and
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 ) .
2424The following samples show how to import the library and fetch Delphi's COVID-19
2525Surveillance Streams from Facebook Survey CLI for county 06001, and days
2626` 20200401 ` and ` 20200405-20200414 ` (11 days total).
@@ -39,21 +39,6 @@ res <- pub_covidcast('fb-survey', 'smoothed_cli', 'county', 'day', geo_values =
3939cat(res )
4040````
4141
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 delphi-support+privacy@andrew.cmu.edu .
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-
5742### Python
5843
5944Optionally 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,
7560print (res[' result' ], res[' message' ], len (res[' epidata' ]))
7661````
7762
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 delphi-support+privacy@andrew.cmu.edu .
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+
7878### R (legacy)
7979
8080``` R
0 commit comments