{"action":"created","issue":{"url":"https://api.github.com/repos/IonicaBizau/ghcal/issues/4","labels_url":"https://api.github.com/repos/IonicaBizau/ghcal/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/IonicaBizau/ghcal/issues/4/comments","events_url":"https://api.github.com/repos/IonicaBizau/ghcal/issues/4/events","html_url":"https://github.com/IonicaBizau/ghcal/issues/4","id":57874181,"number":4,"title":"Show contributions for private repositories","user":{"login":"EpicDavi","id":3261707,"avatar_url":"https://avatars.githubusercontent.com/u/3261707?v=3","gravatar_id":"","url":"https://api.github.com/users/EpicDavi","html_url":"https://github.com/EpicDavi","followers_url":"https://api.github.com/users/EpicDavi/followers","following_url":"https://api.github.com/users/EpicDavi/following{/other_user}","gists_url":"https://api.github.com/users/EpicDavi/gists{/gist_id}","starred_url":"https://api.github.com/users/EpicDavi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EpicDavi/subscriptions","organizations_url":"https://api.github.com/users/EpicDavi/orgs","repos_url":"https://api.github.com/users/EpicDavi/repos","events_url":"https://api.github.com/users/EpicDavi/events{/privacy}","received_events_url":"https://api.github.com/users/EpicDavi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IonicaBizau/ghcal/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"IonicaBizau","id":2864371,"avatar_url":"https://avatars.githubusercontent.com/u/2864371?v=3","gravatar_id":"","url":"https://api.github.com/users/IonicaBizau","html_url":"https://github.com/IonicaBizau","followers_url":"https://api.github.com/users/IonicaBizau/followers","following_url":"https://api.github.com/users/IonicaBizau/following{/other_user}","gists_url":"https://api.github.com/users/IonicaBizau/gists{/gist_id}","starred_url":"https://api.github.com/users/IonicaBizau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IonicaBizau/subscriptions","organizations_url":"https://api.github.com/users/IonicaBizau/orgs","repos_url":"https://api.github.com/users/IonicaBizau/repos","events_url":"https://api.github.com/users/IonicaBizau/events{/privacy}","received_events_url":"https://api.github.com/users/IonicaBizau/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-02-17T01:55:22Z","updated_at":"2015-09-09T07:05:03Z","closed_at":"2015-09-08T18:36:47Z","body":"On the GitHub calender, contributions are included from private repositories you have access to. This would mean that if a friend and I contribute to a certain private repo, his contributions would be visible on his calender to me and I would also be able to view my own contributions on my calender.\r\n\r\n This would require the user to log in or provide an API key."},"comment":{"url":"https://api.github.com/repos/IonicaBizau/ghcal/issues/comments/138808686","html_url":"https://github.com/IonicaBizau/ghcal/issues/4#issuecomment-138808686","issue_url":"https://api.github.com/repos/IonicaBizau/ghcal/issues/4","id":138808686,"user":{"login":"IonicaBizau","id":2864371,"avatar_url":"https://avatars.githubusercontent.com/u/2864371?v=3","gravatar_id":"","url":"https://api.github.com/users/IonicaBizau","html_url":"https://github.com/IonicaBizau","followers_url":"https://api.github.com/users/IonicaBizau/followers","following_url":"https://api.github.com/users/IonicaBizau/following{/other_user}","gists_url":"https://api.github.com/users/IonicaBizau/gists{/gist_id}","starred_url":"https://api.github.com/users/IonicaBizau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IonicaBizau/subscriptions","organizations_url":"https://api.github.com/users/IonicaBizau/orgs","repos_url":"https://api.github.com/users/IonicaBizau/repos","events_url":"https://api.github.com/users/IonicaBizau/events{/privacy}","received_events_url":"https://api.github.com/users/IonicaBizau/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T07:05:03Z","updated_at":"2015-09-09T07:05:03Z","body":"And using it as library is also possible. It will return an array of arrays in the callback function. :sparkle: \r\n\r\n```js\r\nvar GhCal = require(\"ghcal\");\r\n\r\nGhCal({\r\n    username: \"izuzak\"\r\n   , cookie: \"the cookie value\"\r\n}, function (err, data) {\r\n    // Do something with the JSON response\r\n    // [..., [\"2015-04-26\", 22], ...]\r\n    console.log(err || data);\r\n});\r\n```"}}