{"action":"created","comment":{"url":"https://api.github.com/repos/Gapminder/gapminder-org/pulls/comments/57133209","id":57133209,"diff_hunk":"@@ -0,0 +1,55 @@\n+import {Injectable} from 'angular2/core';\n+import {Observable} from 'rxjs/Observable';\n+import * as _ from 'lodash';\n+\n+declare const TWITTER_CONSUMER_KEY: string;\n+declare const TWITTER_CONSUMER_SECRET: string;\n+declare const TWITTER_ACCESS_TOKEN_KEY: string;\n+declare const TWITTER_ACCESS_TOKEN_SECRET: string;\n+\n+const Codebird = require('codebird');\n+const cb = new Codebird();\n+cb.setConsumerKey(TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET);\n+cb.setToken(TWITTER_ACCESS_TOKEN_KEY, TWITTER_ACCESS_TOKEN_SECRET);\n+\n+@Injectable()\n+export class TwitterService {\n+  create(): TwitterRequest {\n+    return new TwitterRequest();\n+  }\n+}\n+\n+export class TwitterRequest {\n+  private params:any = {};\n+\n+  author(name: string): TwitterRequest {\n+    this.params.screen_name = name;\n+    return this;\n+  }\n+\n+  maxId(maxId: string): TwitterRequest {\n+    if (maxId) {\n+      this.params.max_id = maxId;","path":"app/shared/services/twitter.service.ts","position":32,"original_position":32,"commit_id":"a80191751aec2a36a0f083a5833a9f5de2f10b7e","original_commit_id":"a80191751aec2a36a0f083a5833a9f5de2f10b7e","user":{"login":"rychkog","id":1942440,"avatar_url":"https://avatars.githubusercontent.com/u/1942440?v=3","gravatar_id":"","url":"https://api.github.com/users/rychkog","html_url":"https://github.com/rychkog","followers_url":"https://api.github.com/users/rychkog/followers","following_url":"https://api.github.com/users/rychkog/following{/other_user}","gists_url":"https://api.github.com/users/rychkog/gists{/gist_id}","starred_url":"https://api.github.com/users/rychkog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rychkog/subscriptions","organizations_url":"https://api.github.com/users/rychkog/orgs","repos_url":"https://api.github.com/users/rychkog/repos","events_url":"https://api.github.com/users/rychkog/events{/privacy}","received_events_url":"https://api.github.com/users/rychkog/received_events","type":"User","site_admin":false},"body":"Michal, do you mean 'maxId' of null ? Or can you provide an example?\r\n","created_at":"2016-03-23T09:57:44Z","updated_at":"2016-03-23T09:57:44Z","html_url":"https://github.com/Gapminder/gapminder-org/pull/35#discussion_r57133209","pull_request_url":"https://api.github.com/repos/Gapminder/gapminder-org/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/Gapminder/gapminder-org/pulls/comments/57133209"},"html":{"href":"https://github.com/Gapminder/gapminder-org/pull/35#discussion_r57133209"},"pull_request":{"href":"https://api.github.com/repos/Gapminder/gapminder-org/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/Gapminder/gapminder-org/pulls/35","id":63741689,"html_url":"https://github.com/Gapminder/gapminder-org/pull/35","diff_url":"https://github.com/Gapminder/gapminder-org/pull/35.diff","patch_url":"https://github.com/Gapminder/gapminder-org/pull/35.patch","issue_url":"https://api.github.com/repos/Gapminder/gapminder-org/issues/35","number":35,"state":"open","locked":false,"title":"Feat twitter","user":{"login":"natali-abyss","id":7370255,"avatar_url":"https://avatars.githubusercontent.com/u/7370255?v=3","gravatar_id":"","url":"https://api.github.com/users/natali-abyss","html_url":"https://github.com/natali-abyss","followers_url":"https://api.github.com/users/natali-abyss/followers","following_url":"https://api.github.com/users/natali-abyss/following{/other_user}","gists_url":"https://api.github.com/users/natali-abyss/gists{/gist_id}","starred_url":"https://api.github.com/users/natali-abyss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natali-abyss/subscriptions","organizations_url":"https://api.github.com/users/natali-abyss/orgs","repos_url":"https://api.github.com/users/natali-abyss/repos","events_url":"https://api.github.com/users/natali-abyss/events{/privacy}","received_events_url":"https://api.github.com/users/natali-abyss/received_events","type":"User","site_admin":false},"body":"Twitter credentials are for read-only access.","created_at":"2016-03-22T15:41:53Z","updated_at":"2016-03-23T09:57:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"16e5c6a2e084c36723d43b7175cb6e74dbaf145f","assignee":{"login":"dydek","id":1159947,"avatar_url":"https://avatars.githubusercontent.com/u/1159947?v=3","gravatar_id":"","url":"https://api.github.com/users/dydek","html_url":"https://github.com/dydek","followers_url":"https://api.github.com/users/dydek/followers","following_url":"https://api.github.com/users/dydek/following{/other_user}","gists_url":"https://api.github.com/users/dydek/gists{/gist_id}","starred_url":"https://api.github.com/users/dydek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dydek/subscriptions","organizations_url":"https://api.github.com/users/dydek/orgs","repos_url":"https://api.github.com/users/dydek/repos","events_url":"https://api.github.com/users/dydek/events{/privacy}","received_events_url":"https://api.github.com/users/dydek/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Gapminder/gapminder-org/pulls/35/commits","review_comments_url":"https://api.github.com/repos/Gapminder/gapminder-org/pulls/35/comments","review_comment_url":"https://api.github.com/repos/Gapminder/gapminder-org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Gapminder/gapminder-org/issues/35/comments","statuses_url":"https://api.github.com/repos/Gapminder/gapminder-org/statuses/a80191751aec2a36a0f083a5833a9f5de2f10b7e","head":{"label":"Gapminder:feat-twitter","ref":"feat-twitter","sha":"a80191751aec2a36a0f083a5833a9f5de2f10b7e","user":{"login":"Gapminder","id":1391460,"avatar_url":"https://avatars.githubusercontent.com/u/1391460?v=3","gravatar_id":"","url":"https://api.github.com/users/Gapminder","html_url":"https://github.com/Gapminder","followers_url":"https://api.github.com/users/Gapminder/followers","following_url":"https://api.github.com/users/Gapminder/following{/other_user}","gists_url":"https://api.github.com/users/Gapminder/gists{/gist_id}","starred_url":"https://api.github.com/users/Gapminder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gapminder/subscriptions","organizations_url":"https://api.github.com/users/Gapminder/orgs","repos_url":"https://api.github.com/users/Gapminder/repos","events_url":"https://api.github.com/users/Gapminder/events{/privacy}","received_events_url":"https://api.github.com/users/Gapminder/received_events","type":"Organization","site_admin":false},"repo":{"id":51299122,"name":"gapminder-org","full_name":"Gapminder/gapminder-org","owner":{"login":"Gapminder","id":1391460,"avatar_url":"https://avatars.githubusercontent.com/u/1391460?v=3","gravatar_id":"","url":"https://api.github.com/users/Gapminder","html_url":"https://github.com/Gapminder","followers_url":"https://api.github.com/users/Gapminder/followers","following_url":"https://api.github.com/users/Gapminder/following{/other_user}","gists_url":"https://api.github.com/users/Gapminder/gists{/gist_id}","starred_url":"https://api.github.com/users/Gapminder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gapminder/subscriptions","organizations_url":"https://api.github.com/users/Gapminder/orgs","repos_url":"https://api.github.com/users/Gapminder/repos","events_url":"https://api.github.com/users/Gapminder/events{/privacy}","received_events_url":"https://api.github.com/users/Gapminder/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Gapminder/gapminder-org","description":"ng2 gapminder.org","fork":false,"url":"https://api.github.com/repos/Gapminder/gapminder-org","forks_url":"https://api.github.com/repos/Gapminder/gapminder-org/forks","keys_url":"https://api.github.com/repos/Gapminder/gapminder-org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Gapminder/gapminder-org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Gapminder/gapminder-org/teams","hooks_url":"https://api.github.com/repos/Gapminder/gapminder-org/hooks","issue_events_url":"https://api.github.com/repos/Gapminder/gapminder-org/issues/events{/number}","events_url":"https://api.github.com/repos/Gapminder/gapminder-org/events","assignees_url":"https://api.github.com/repos/Gapminder/gapminder-org/assignees{/user}","branches_url":"https://api.github.com/repos/Gapminder/gapminder-org/branches{/branch}","tags_url":"https://api.github.com/repos/Gapminder/gapminder-org/tags","blobs_url":"https://api.github.com/repos/Gapminder/gapminder-org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Gapminder/gapminder-org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Gapminder/gapminder-org/git/refs{/sha}","trees_url":"https://api.github.com/repos/Gapminder/gapminder-org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Gapminder/gapminder-org/statuses/{sha}","languages_url":"https://api.github.com/repos/Gapminder/gapminder-org/languages","stargazers_url":"https://api.github.com/repos/Gapminder/gapminder-org/stargazers","contributors_url":"https://api.github.com/repos/Gapminder/gapminder-org/contributors","subscribers_url":"https://api.github.com/repos/Gapminder/gapminder-org/subscribers","subscription_url":"https://api.github.com/repos/Gapminder/gapminder-org/subscription","commits_url":"https://api.github.com/repos/Gapminder/gapminder-org/commits{/sha}","git_commits_url":"https://api.github.com/repos/Gapminder/gapminder-org/git/commits{/sha}","comments_url":"https://api.github.com/repos/Gapminder/gapminder-org/comments{/number}","issue_comment_url":"https://api.github.com/repos/Gapminder/gapminder-org/issues/comments{/number}","contents_url":"https://api.github.com/repos/Gapminder/gapminder-org/contents/{+path}","compare_url":"https://api.github.com/repos/Gapminder/gapminder-org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Gapminder/gapminder-org/merges","archive_url":"https://api.github.com/repos/Gapminder/gapminder-org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Gapminder/gapminder-org/downloads","issues_url":"https://api.github.com/repos/Gapminder/gapminder-org/issues{/number}","pulls_url":"https://api.github.com/repos/Gapminder/gapminder-org/pulls{/number}","milestones_url":"https://api.github.com/repos/Gapminder/gapminder-org/milestones{/number}","notifications_url":"https://api.github.com/repos/Gapminder/gapminder-org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Gapminder/gapminder-org/labels{/name}","releases_url":"https://api.github.com/repos/Gapminder/gapminder-org/releases{/id}","deployments_url":"https://api.github.com/repos/Gapminder/gapminder-org/deployments","created_at":"2016-02-08T13:22:00Z","updated_at":"2016-03-18T17:45:34Z","pushed_at":"2016-03-22T15:42:10Z","git_url":"git://github.com/Gapminder/gapminder-org.git","ssh_url":"git@github.com:Gapminder/gapminder-org.git","clone_url":"https://github.com/Gapminder/gapminder-org.git","svn_url":"https://github.com/Gapminder/gapminder-org","homepage":null,"size":17455,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":11,"forks":4,"open_issues":11,"watchers":0,"default_branch":"development"}},"base":{"label":"Gapminder:development","ref":"development","sha":"500807f2297ce28578531f0b7cc940362a0e0efd","user":{"login":"Gapminder","id":1391460,"avatar_url":"https://avatars.githubusercontent.com/u/1391460?v=3","gravatar_id":"","url":"https://api.github.com/users/Gapminder","html_url":"https://github.com/Gapminder","followers_url":"https://api.github.com/users/Gapminder/followers","following_url":"https://api.github.com/users/Gapminder/following{/other_user}","gists_url":"https://api.github.com/users/Gapminder/gists{/gist_id}","starred_url":"https://api.github.com/users/Gapminder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gapminder/subscriptions","organizations_url":"https://api.github.com/users/Gapminder/orgs","repos_url":"https://api.github.com/users/Gapminder/repos","events_url":"https://api.github.com/users/Gapminder/events{/privacy}","received_events_url":"https://api.github.com/users/Gapminder/received_events","type":"Organization","site_admin":false},"repo":{"id":51299122,"name":"gapminder-org","full_name":"Gapminder/gapminder-org","owner":{"login":"Gapminder","id":1391460,"avatar_url":"https://avatars.githubusercontent.com/u/1391460?v=3","gravatar_id":"","url":"https://api.github.com/users/Gapminder","html_url":"https://github.com/Gapminder","followers_url":"https://api.github.com/users/Gapminder/followers","following_url":"https://api.github.com/users/Gapminder/following{/other_user}","gists_url":"https://api.github.com/users/Gapminder/gists{/gist_id}","starred_url":"https://api.github.com/users/Gapminder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gapminder/subscriptions","organizations_url":"https://api.github.com/users/Gapminder/orgs","repos_url":"https://api.github.com/users/Gapminder/repos","events_url":"https://api.github.com/users/Gapminder/events{/privacy}","received_events_url":"https://api.github.com/users/Gapminder/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Gapminder/gapminder-org","description":"ng2 gapminder.org","fork":false,"url":"https://api.github.com/repos/Gapminder/gapminder-org","forks_url":"https://api.github.com/repos/Gapminder/gapminder-org/forks","keys_url":"https://api.github.com/repos/Gapminder/gapminder-org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Gapminder/gapminder-org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Gapminder/gapminder-org/teams","hooks_url":"https://api.github.com/repos/Gapminder/gapminder-org/hooks","issue_events_url":"https://api.github.com/repos/Gapminder/gapminder-org/issues/events{/number}","events_url":"https://api.github.com/repos/Gapminder/gapminder-org/events","assignees_url":"https://api.github.com/repos/Gapminder/gapminder-org/assignees{/user}","branches_url":"https://api.github.com/repos/Gapminder/gapminder-org/branches{/branch}","tags_url":"https://api.github.com/repos/Gapminder/gapminder-org/tags","blobs_url":"https://api.github.com/repos/Gapminder/gapminder-org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Gapminder/gapminder-org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Gapminder/gapminder-org/git/refs{/sha}","trees_url":"https://api.github.com/repos/Gapminder/gapminder-org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Gapminder/gapminder-org/statuses/{sha}","languages_url":"https://api.github.com/repos/Gapminder/gapminder-org/languages","stargazers_url":"https://api.github.com/repos/Gapminder/gapminder-org/stargazers","contributors_url":"https://api.github.com/repos/Gapminder/gapminder-org/contributors","subscribers_url":"https://api.github.com/repos/Gapminder/gapminder-org/subscribers","subscription_url":"https://api.github.com/repos/Gapminder/gapminder-org/subscription","commits_url":"https://api.github.com/repos/Gapminder/gapminder-org/commits{/sha}","git_commits_url":"https://api.github.com/repos/Gapminder/gapminder-org/git/commits{/sha}","comments_url":"https://api.github.com/repos/Gapminder/gapminder-org/comments{/number}","issue_comment_url":"https://api.github.com/repos/Gapminder/gapminder-org/issues/comments{/number}","contents_url":"https://api.github.com/repos/Gapminder/gapminder-org/contents/{+path}","compare_url":"https://api.github.com/repos/Gapminder/gapminder-org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Gapminder/gapminder-org/merges","archive_url":"https://api.github.com/repos/Gapminder/gapminder-org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Gapminder/gapminder-org/downloads","issues_url":"https://api.github.com/repos/Gapminder/gapminder-org/issues{/number}","pulls_url":"https://api.github.com/repos/Gapminder/gapminder-org/pulls{/number}","milestones_url":"https://api.github.com/repos/Gapminder/gapminder-org/milestones{/number}","notifications_url":"https://api.github.com/repos/Gapminder/gapminder-org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Gapminder/gapminder-org/labels{/name}","releases_url":"https://api.github.com/repos/Gapminder/gapminder-org/releases{/id}","deployments_url":"https://api.github.com/repos/Gapminder/gapminder-org/deployments","created_at":"2016-02-08T13:22:00Z","updated_at":"2016-03-18T17:45:34Z","pushed_at":"2016-03-22T15:42:10Z","git_url":"git://github.com/Gapminder/gapminder-org.git","ssh_url":"git@github.com:Gapminder/gapminder-org.git","clone_url":"https://github.com/Gapminder/gapminder-org.git","svn_url":"https://github.com/Gapminder/gapminder-org","homepage":null,"size":17455,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":11,"forks":4,"open_issues":11,"watchers":0,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/Gapminder/gapminder-org/pulls/35"},"html":{"href":"https://github.com/Gapminder/gapminder-org/pull/35"},"issue":{"href":"https://api.github.com/repos/Gapminder/gapminder-org/issues/35"},"comments":{"href":"https://api.github.com/repos/Gapminder/gapminder-org/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/Gapminder/gapminder-org/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/Gapminder/gapminder-org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Gapminder/gapminder-org/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/Gapminder/gapminder-org/statuses/a80191751aec2a36a0f083a5833a9f5de2f10b7e"}}}}