Author | Message |
---|---|
kjangad
Posts: 6
|
Posted 12:40 Oct 19, 2015 |
I just heard from few of the classmates that we need to implement the 5th point using superagent. There's no such thing mentioned in the homework description. Please clarify.
|
MariahM
Posts: 35
|
Posted 12:48 Oct 19, 2015 |
You could use superagent to get the JSON from the URL. OR You could require http in order to use 'get' to fetch the json data from the URL This is the example from class using http: https://github.com/cydneymikel/CS454/blob/master/Week03/examples/http-request.js This is the example from class using superagent: https://github.com/cydneymikel/CS454/blob/master/Week03/examples/superagent-example/app.js
Last edited by MariahM at
12:50 Oct 19, 2015.
|
kjangad
Posts: 6
|
Posted 12:50 Oct 19, 2015 |
Im using http 'require' for fetching the data. Im guessing that is fine right? |
MariahM
Posts: 35
|
Posted 12:51 Oct 19, 2015 |
We aren't required to use a specific way. The way your doing it should be fine. |
kjangad
Posts: 6
|
Posted 12:53 Oct 19, 2015 |
Alright, thanks. |