The objective is to learn how to use Github's API to pull in real data. Your need to figure out how to compose an URL for accessing a particular API to grab the data you want.
Github provides a wide range of APIs. We will focus on these three for now.
Carefully go through the examples below.
{% githubapi %} https://api.github.com/repos/bigdatahci2015/forum/issues/1 {% endgithubapi %}
The data is saved in data
. It looks like below.
{{ data | json }}
{{ data.title }}
{{ data.user.login }}
{% githubapi %} https://api.github.com/repos/bigdatahci2015/forum/issues/1/comments {% endgithubapi %}
The comments data look like
{{ data | json }}
There are {{ data.length }} comments.
{% lodash %} return _.pluck(data, 'user.login') {% endlodash %}
The github account names are {{ result }}.
Now it's your turn to answer the following questions using the real data.
{% githubapi %} // enter the URL to access the Github API to get the data for this question {% endgithubapi %}
{% lodash %} // add lodash code to process the data and generate the answer return 'something' {% endlodash %}
(answer)
Our class's Github organization is bigdatahci2015.
{% githubapi %} // enter the URL to access the Github API to get the data for this question {% endgithubapi %}
{% lodash %} // add lodash code to process the data and generate the answer return 'something' {% endlodash %}
(answer)
{% githubapi %} // enter the URL to access the Github API to get the data for this question {% endgithubapi %}
{% lodash %} // add lodash code to process the data and generate the answer return 'something' {% endlodash %}
(answer)