{"action":"created","comment":{"url":"https://api.github.com/repos/sorah/niconico/pulls/comments/24291637","id":24291637,"diff_hunk":"@@ -0,0 +1,46 @@\n+# -*- coding: utf-8 -*-\n+require 'json'\n+\n+class Niconico\n+  class API\n+    class ApiParseError < Exception; end\n+\n+    def initialize(parent, token=nil)\n+      @parent = parent\n+      @agent = parent.agent\n+      @token = token || get_token","path":"lib/niconico/api.rb","position":11,"original_position":11,"commit_id":"9208c38ab487f36cb105b0ddb24fd0fe05021aa9","original_commit_id":"9208c38ab487f36cb105b0ddb24fd0fe05021aa9","user":{"login":"sorah","id":29440,"avatar_url":"https://avatars.githubusercontent.com/u/29440?v=3","gravatar_id":"","url":"https://api.github.com/users/sorah","html_url":"https://github.com/sorah","followers_url":"https://api.github.com/users/sorah/followers","following_url":"https://api.github.com/users/sorah/following{/other_user}","gists_url":"https://api.github.com/users/sorah/gists{/gist_id}","starred_url":"https://api.github.com/users/sorah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorah/subscriptions","organizations_url":"https://api.github.com/users/sorah/orgs","repos_url":"https://api.github.com/users/sorah/repos","events_url":"https://api.github.com/users/sorah/events{/privacy}","received_events_url":"https://api.github.com/users/sorah/received_events","type":"User","site_admin":false},"body":"defer acquiring token: `def token; @token ||= token || get_token; end`","created_at":"2015-02-07T18:40:06Z","updated_at":"2015-02-07T18:40:06Z","html_url":"https://github.com/sorah/niconico/pull/8#discussion_r24291637","pull_request_url":"https://api.github.com/repos/sorah/niconico/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/sorah/niconico/pulls/comments/24291637"},"html":{"href":"https://github.com/sorah/niconico/pull/8#discussion_r24291637"},"pull_request":{"href":"https://api.github.com/repos/sorah/niconico/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/sorah/niconico/pulls/8","id":28796360,"html_url":"https://github.com/sorah/niconico/pull/8","diff_url":"https://github.com/sorah/niconico/pull/8.diff","patch_url":"https://github.com/sorah/niconico/pull/8.patch","issue_url":"https://api.github.com/repos/sorah/niconico/issues/8","number":8,"state":"open","locked":false,"title":"Creating a add_mylist methods","user":{"login":"soramugi","id":1216011,"avatar_url":"https://avatars.githubusercontent.com/u/1216011?v=3","gravatar_id":"","url":"https://api.github.com/users/soramugi","html_url":"https://github.com/soramugi","followers_url":"https://api.github.com/users/soramugi/followers","following_url":"https://api.github.com/users/soramugi/following{/other_user}","gists_url":"https://api.github.com/users/soramugi/gists{/gist_id}","starred_url":"https://api.github.com/users/soramugi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soramugi/subscriptions","organizations_url":"https://api.github.com/users/soramugi/orgs","repos_url":"https://api.github.com/users/soramugi/repos","events_url":"https://api.github.com/users/soramugi/events{/privacy}","received_events_url":"https://api.github.com/users/soramugi/received_events","type":"User","site_admin":false},"body":"I tried to make method to add a video to My List","created_at":"2015-02-06T09:51:16Z","updated_at":"2015-02-07T18:40:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"929418ca26258c920b5b612c71237fbfec661d61","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sorah/niconico/pulls/8/commits","review_comments_url":"https://api.github.com/repos/sorah/niconico/pulls/8/comments","review_comment_url":"https://api.github.com/repos/sorah/niconico/pulls/comments/{number}","comments_url":"https://api.github.com/repos/sorah/niconico/issues/8/comments","statuses_url":"https://api.github.com/repos/sorah/niconico/statuses/9208c38ab487f36cb105b0ddb24fd0fe05021aa9","head":{"label":"soramugi:add_mylist","ref":"add_mylist","sha":"9208c38ab487f36cb105b0ddb24fd0fe05021aa9","user":{"login":"soramugi","id":1216011,"avatar_url":"https://avatars.githubusercontent.com/u/1216011?v=3","gravatar_id":"","url":"https://api.github.com/users/soramugi","html_url":"https://github.com/soramugi","followers_url":"https://api.github.com/users/soramugi/followers","following_url":"https://api.github.com/users/soramugi/following{/other_user}","gists_url":"https://api.github.com/users/soramugi/gists{/gist_id}","starred_url":"https://api.github.com/users/soramugi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soramugi/subscriptions","organizations_url":"https://api.github.com/users/soramugi/orgs","repos_url":"https://api.github.com/users/soramugi/repos","events_url":"https://api.github.com/users/soramugi/events{/privacy}","received_events_url":"https://api.github.com/users/soramugi/received_events","type":"User","site_admin":false},"repo":{"id":30398964,"name":"niconico","full_name":"soramugi/niconico","owner":{"login":"soramugi","id":1216011,"avatar_url":"https://avatars.githubusercontent.com/u/1216011?v=3","gravatar_id":"","url":"https://api.github.com/users/soramugi","html_url":"https://github.com/soramugi","followers_url":"https://api.github.com/users/soramugi/followers","following_url":"https://api.github.com/users/soramugi/following{/other_user}","gists_url":"https://api.github.com/users/soramugi/gists{/gist_id}","starred_url":"https://api.github.com/users/soramugi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soramugi/subscriptions","organizations_url":"https://api.github.com/users/soramugi/orgs","repos_url":"https://api.github.com/users/soramugi/repos","events_url":"https://api.github.com/users/soramugi/events{/privacy}","received_events_url":"https://api.github.com/users/soramugi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/soramugi/niconico","description":"wrapper of Mechanize, optimized for nicovideo.","fork":true,"url":"https://api.github.com/repos/soramugi/niconico","forks_url":"https://api.github.com/repos/soramugi/niconico/forks","keys_url":"https://api.github.com/repos/soramugi/niconico/keys{/key_id}","collaborators_url":"https://api.github.com/repos/soramugi/niconico/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/soramugi/niconico/teams","hooks_url":"https://api.github.com/repos/soramugi/niconico/hooks","issue_events_url":"https://api.github.com/repos/soramugi/niconico/issues/events{/number}","events_url":"https://api.github.com/repos/soramugi/niconico/events","assignees_url":"https://api.github.com/repos/soramugi/niconico/assignees{/user}","branches_url":"https://api.github.com/repos/soramugi/niconico/branches{/branch}","tags_url":"https://api.github.com/repos/soramugi/niconico/tags","blobs_url":"https://api.github.com/repos/soramugi/niconico/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/soramugi/niconico/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/soramugi/niconico/git/refs{/sha}","trees_url":"https://api.github.com/repos/soramugi/niconico/git/trees{/sha}","statuses_url":"https://api.github.com/repos/soramugi/niconico/statuses/{sha}","languages_url":"https://api.github.com/repos/soramugi/niconico/languages","stargazers_url":"https://api.github.com/repos/soramugi/niconico/stargazers","contributors_url":"https://api.github.com/repos/soramugi/niconico/contributors","subscribers_url":"https://api.github.com/repos/soramugi/niconico/subscribers","subscription_url":"https://api.github.com/repos/soramugi/niconico/subscription","commits_url":"https://api.github.com/repos/soramugi/niconico/commits{/sha}","git_commits_url":"https://api.github.com/repos/soramugi/niconico/git/commits{/sha}","comments_url":"https://api.github.com/repos/soramugi/niconico/comments{/number}","issue_comment_url":"https://api.github.com/repos/soramugi/niconico/issues/comments/{number}","contents_url":"https://api.github.com/repos/soramugi/niconico/contents/{+path}","compare_url":"https://api.github.com/repos/soramugi/niconico/compare/{base}...{head}","merges_url":"https://api.github.com/repos/soramugi/niconico/merges","archive_url":"https://api.github.com/repos/soramugi/niconico/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/soramugi/niconico/downloads","issues_url":"https://api.github.com/repos/soramugi/niconico/issues{/number}","pulls_url":"https://api.github.com/repos/soramugi/niconico/pulls{/number}","milestones_url":"https://api.github.com/repos/soramugi/niconico/milestones{/number}","notifications_url":"https://api.github.com/repos/soramugi/niconico/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/soramugi/niconico/labels{/name}","releases_url":"https://api.github.com/repos/soramugi/niconico/releases{/id}","created_at":"2015-02-06T06:38:06Z","updated_at":"2015-02-06T06:38:06Z","pushed_at":"2015-02-06T09:48:13Z","git_url":"git://github.com/soramugi/niconico.git","ssh_url":"git@github.com:soramugi/niconico.git","clone_url":"https://github.com/soramugi/niconico.git","svn_url":"https://github.com/soramugi/niconico","homepage":"","size":138,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sorah:master","ref":"master","sha":"ca87b26eb020ca1f9f648a6c2b719bda146fc5b3","user":{"login":"sorah","id":29440,"avatar_url":"https://avatars.githubusercontent.com/u/29440?v=3","gravatar_id":"","url":"https://api.github.com/users/sorah","html_url":"https://github.com/sorah","followers_url":"https://api.github.com/users/sorah/followers","following_url":"https://api.github.com/users/sorah/following{/other_user}","gists_url":"https://api.github.com/users/sorah/gists{/gist_id}","starred_url":"https://api.github.com/users/sorah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorah/subscriptions","organizations_url":"https://api.github.com/users/sorah/orgs","repos_url":"https://api.github.com/users/sorah/repos","events_url":"https://api.github.com/users/sorah/events{/privacy}","received_events_url":"https://api.github.com/users/sorah/received_events","type":"User","site_admin":false},"repo":{"id":2560716,"name":"niconico","full_name":"sorah/niconico","owner":{"login":"sorah","id":29440,"avatar_url":"https://avatars.githubusercontent.com/u/29440?v=3","gravatar_id":"","url":"https://api.github.com/users/sorah","html_url":"https://github.com/sorah","followers_url":"https://api.github.com/users/sorah/followers","following_url":"https://api.github.com/users/sorah/following{/other_user}","gists_url":"https://api.github.com/users/sorah/gists{/gist_id}","starred_url":"https://api.github.com/users/sorah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorah/subscriptions","organizations_url":"https://api.github.com/users/sorah/orgs","repos_url":"https://api.github.com/users/sorah/repos","events_url":"https://api.github.com/users/sorah/events{/privacy}","received_events_url":"https://api.github.com/users/sorah/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sorah/niconico","description":"wrapper of Mechanize, optimized for nicovideo.","fork":false,"url":"https://api.github.com/repos/sorah/niconico","forks_url":"https://api.github.com/repos/sorah/niconico/forks","keys_url":"https://api.github.com/repos/sorah/niconico/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sorah/niconico/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sorah/niconico/teams","hooks_url":"https://api.github.com/repos/sorah/niconico/hooks","issue_events_url":"https://api.github.com/repos/sorah/niconico/issues/events{/number}","events_url":"https://api.github.com/repos/sorah/niconico/events","assignees_url":"https://api.github.com/repos/sorah/niconico/assignees{/user}","branches_url":"https://api.github.com/repos/sorah/niconico/branches{/branch}","tags_url":"https://api.github.com/repos/sorah/niconico/tags","blobs_url":"https://api.github.com/repos/sorah/niconico/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sorah/niconico/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sorah/niconico/git/refs{/sha}","trees_url":"https://api.github.com/repos/sorah/niconico/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sorah/niconico/statuses/{sha}","languages_url":"https://api.github.com/repos/sorah/niconico/languages","stargazers_url":"https://api.github.com/repos/sorah/niconico/stargazers","contributors_url":"https://api.github.com/repos/sorah/niconico/contributors","subscribers_url":"https://api.github.com/repos/sorah/niconico/subscribers","subscription_url":"https://api.github.com/repos/sorah/niconico/subscription","commits_url":"https://api.github.com/repos/sorah/niconico/commits{/sha}","git_commits_url":"https://api.github.com/repos/sorah/niconico/git/commits{/sha}","comments_url":"https://api.github.com/repos/sorah/niconico/comments{/number}","issue_comment_url":"https://api.github.com/repos/sorah/niconico/issues/comments/{number}","contents_url":"https://api.github.com/repos/sorah/niconico/contents/{+path}","compare_url":"https://api.github.com/repos/sorah/niconico/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sorah/niconico/merges","archive_url":"https://api.github.com/repos/sorah/niconico/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sorah/niconico/downloads","issues_url":"https://api.github.com/repos/sorah/niconico/issues{/number}","pulls_url":"https://api.github.com/repos/sorah/niconico/pulls{/number}","milestones_url":"https://api.github.com/repos/sorah/niconico/milestones{/number}","notifications_url":"https://api.github.com/repos/sorah/niconico/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sorah/niconico/labels{/name}","releases_url":"https://api.github.com/repos/sorah/niconico/releases{/id}","created_at":"2011-10-12T06:44:23Z","updated_at":"2015-02-06T05:55:50Z","pushed_at":"2015-01-29T14:24:17Z","git_url":"git://github.com/sorah/niconico.git","ssh_url":"git@github.com:sorah/niconico.git","clone_url":"https://github.com/sorah/niconico.git","svn_url":"https://github.com/sorah/niconico","homepage":"","size":300,"stargazers_count":37,"watchers_count":37,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":1,"forks":12,"open_issues":1,"watchers":37,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sorah/niconico/pulls/8"},"html":{"href":"https://github.com/sorah/niconico/pull/8"},"issue":{"href":"https://api.github.com/repos/sorah/niconico/issues/8"},"comments":{"href":"https://api.github.com/repos/sorah/niconico/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/sorah/niconico/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/sorah/niconico/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/sorah/niconico/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/sorah/niconico/statuses/9208c38ab487f36cb105b0ddb24fd0fe05021aa9"}}}}