{"action":"created","comment":{"url":"https://api.github.com/repos/jue58/kintone/pulls/comments/50704485","id":50704485,"diff_hunk":"@@ -88,6 +90,21 @@ def delete(url, body = nil)\n     response.body\n   end\n \n+  def file_post(url, file)","path":"lib/kintone/api.rb","position":27,"original_position":27,"commit_id":"5f8b2fbfa030e5d06e293c53b05196125380bd89","original_commit_id":"5f8b2fbfa030e5d06e293c53b05196125380bd89","user":{"login":"jue58","id":1419621,"avatar_url":"https://avatars.githubusercontent.com/u/1419621?v=3","gravatar_id":"","url":"https://api.github.com/users/jue58","html_url":"https://github.com/jue58","followers_url":"https://api.github.com/users/jue58/followers","following_url":"https://api.github.com/users/jue58/following{/other_user}","gists_url":"https://api.github.com/users/jue58/gists{/gist_id}","starred_url":"https://api.github.com/users/jue58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jue58/subscriptions","organizations_url":"https://api.github.com/users/jue58/orgs","repos_url":"https://api.github.com/users/jue58/repos","events_url":"https://api.github.com/users/jue58/events{/privacy}","received_events_url":"https://api.github.com/users/jue58/received_events","type":"User","site_admin":false},"body":"メソッド名はpost_fileでお願いします。","created_at":"2016-01-25T15:09:31Z","updated_at":"2016-01-25T15:09:31Z","html_url":"https://github.com/jue58/kintone/pull/3#discussion_r50704485","pull_request_url":"https://api.github.com/repos/jue58/kintone/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/jue58/kintone/pulls/comments/50704485"},"html":{"href":"https://github.com/jue58/kintone/pull/3#discussion_r50704485"},"pull_request":{"href":"https://api.github.com/repos/jue58/kintone/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/jue58/kintone/pulls/3","id":57058252,"html_url":"https://github.com/jue58/kintone/pull/3","diff_url":"https://github.com/jue58/kintone/pull/3.diff","patch_url":"https://github.com/jue58/kintone/pull/3.patch","issue_url":"https://api.github.com/repos/jue58/kintone/issues/3","number":3,"state":"open","locked":false,"title":"ファイルアップロード、ダウンロード追加","user":{"login":"t1h","id":2144034,"avatar_url":"https://avatars.githubusercontent.com/u/2144034?v=3","gravatar_id":"","url":"https://api.github.com/users/t1h","html_url":"https://github.com/t1h","followers_url":"https://api.github.com/users/t1h/followers","following_url":"https://api.github.com/users/t1h/following{/other_user}","gists_url":"https://api.github.com/users/t1h/gists{/gist_id}","starred_url":"https://api.github.com/users/t1h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t1h/subscriptions","organizations_url":"https://api.github.com/users/t1h/orgs","repos_url":"https://api.github.com/users/t1h/repos","events_url":"https://api.github.com/users/t1h/events{/privacy}","received_events_url":"https://api.github.com/users/t1h/received_events","type":"User","site_admin":false},"body":"https://github.com/jue58/kintone/pull/2\r\nこちらの対応ありがとうございました。\r\nspecの修正はやはり必要そうだったのでしました。\r\n","created_at":"2016-01-25T11:22:01Z","updated_at":"2016-01-25T15:09:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b956044d746af999dfdc2a04bfbc853dc360c80f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jue58/kintone/pulls/3/commits","review_comments_url":"https://api.github.com/repos/jue58/kintone/pulls/3/comments","review_comment_url":"https://api.github.com/repos/jue58/kintone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jue58/kintone/issues/3/comments","statuses_url":"https://api.github.com/repos/jue58/kintone/statuses/5f8b2fbfa030e5d06e293c53b05196125380bd89","head":{"label":"t1h:file-api2","ref":"file-api2","sha":"5f8b2fbfa030e5d06e293c53b05196125380bd89","user":{"login":"t1h","id":2144034,"avatar_url":"https://avatars.githubusercontent.com/u/2144034?v=3","gravatar_id":"","url":"https://api.github.com/users/t1h","html_url":"https://github.com/t1h","followers_url":"https://api.github.com/users/t1h/followers","following_url":"https://api.github.com/users/t1h/following{/other_user}","gists_url":"https://api.github.com/users/t1h/gists{/gist_id}","starred_url":"https://api.github.com/users/t1h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t1h/subscriptions","organizations_url":"https://api.github.com/users/t1h/orgs","repos_url":"https://api.github.com/users/t1h/repos","events_url":"https://api.github.com/users/t1h/events{/privacy}","received_events_url":"https://api.github.com/users/t1h/received_events","type":"User","site_admin":false},"repo":{"id":46770162,"name":"kintone","full_name":"t1h/kintone","owner":{"login":"t1h","id":2144034,"avatar_url":"https://avatars.githubusercontent.com/u/2144034?v=3","gravatar_id":"","url":"https://api.github.com/users/t1h","html_url":"https://github.com/t1h","followers_url":"https://api.github.com/users/t1h/followers","following_url":"https://api.github.com/users/t1h/following{/other_user}","gists_url":"https://api.github.com/users/t1h/gists{/gist_id}","starred_url":"https://api.github.com/users/t1h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t1h/subscriptions","organizations_url":"https://api.github.com/users/t1h/orgs","repos_url":"https://api.github.com/users/t1h/repos","events_url":"https://api.github.com/users/t1h/events{/privacy}","received_events_url":"https://api.github.com/users/t1h/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/t1h/kintone","description":"kintone REST API client for Ruby","fork":true,"url":"https://api.github.com/repos/t1h/kintone","forks_url":"https://api.github.com/repos/t1h/kintone/forks","keys_url":"https://api.github.com/repos/t1h/kintone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/t1h/kintone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/t1h/kintone/teams","hooks_url":"https://api.github.com/repos/t1h/kintone/hooks","issue_events_url":"https://api.github.com/repos/t1h/kintone/issues/events{/number}","events_url":"https://api.github.com/repos/t1h/kintone/events","assignees_url":"https://api.github.com/repos/t1h/kintone/assignees{/user}","branches_url":"https://api.github.com/repos/t1h/kintone/branches{/branch}","tags_url":"https://api.github.com/repos/t1h/kintone/tags","blobs_url":"https://api.github.com/repos/t1h/kintone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/t1h/kintone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/t1h/kintone/git/refs{/sha}","trees_url":"https://api.github.com/repos/t1h/kintone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/t1h/kintone/statuses/{sha}","languages_url":"https://api.github.com/repos/t1h/kintone/languages","stargazers_url":"https://api.github.com/repos/t1h/kintone/stargazers","contributors_url":"https://api.github.com/repos/t1h/kintone/contributors","subscribers_url":"https://api.github.com/repos/t1h/kintone/subscribers","subscription_url":"https://api.github.com/repos/t1h/kintone/subscription","commits_url":"https://api.github.com/repos/t1h/kintone/commits{/sha}","git_commits_url":"https://api.github.com/repos/t1h/kintone/git/commits{/sha}","comments_url":"https://api.github.com/repos/t1h/kintone/comments{/number}","issue_comment_url":"https://api.github.com/repos/t1h/kintone/issues/comments{/number}","contents_url":"https://api.github.com/repos/t1h/kintone/contents/{+path}","compare_url":"https://api.github.com/repos/t1h/kintone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/t1h/kintone/merges","archive_url":"https://api.github.com/repos/t1h/kintone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/t1h/kintone/downloads","issues_url":"https://api.github.com/repos/t1h/kintone/issues{/number}","pulls_url":"https://api.github.com/repos/t1h/kintone/pulls{/number}","milestones_url":"https://api.github.com/repos/t1h/kintone/milestones{/number}","notifications_url":"https://api.github.com/repos/t1h/kintone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/t1h/kintone/labels{/name}","releases_url":"https://api.github.com/repos/t1h/kintone/releases{/id}","deployments_url":"https://api.github.com/repos/t1h/kintone/deployments","created_at":"2015-11-24T05:54:06Z","updated_at":"2016-01-25T10:08:35Z","pushed_at":"2016-01-25T11:17:07Z","git_url":"git://github.com/t1h/kintone.git","ssh_url":"git@github.com:t1h/kintone.git","clone_url":"https://github.com/t1h/kintone.git","svn_url":"https://github.com/t1h/kintone","homepage":"","size":122,"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":"jue58:master","ref":"master","sha":"36be06553e4f988746274cea9dc7e74843d9a50d","user":{"login":"jue58","id":1419621,"avatar_url":"https://avatars.githubusercontent.com/u/1419621?v=3","gravatar_id":"","url":"https://api.github.com/users/jue58","html_url":"https://github.com/jue58","followers_url":"https://api.github.com/users/jue58/followers","following_url":"https://api.github.com/users/jue58/following{/other_user}","gists_url":"https://api.github.com/users/jue58/gists{/gist_id}","starred_url":"https://api.github.com/users/jue58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jue58/subscriptions","organizations_url":"https://api.github.com/users/jue58/orgs","repos_url":"https://api.github.com/users/jue58/repos","events_url":"https://api.github.com/users/jue58/events{/privacy}","received_events_url":"https://api.github.com/users/jue58/received_events","type":"User","site_admin":false},"repo":{"id":16401246,"name":"kintone","full_name":"jue58/kintone","owner":{"login":"jue58","id":1419621,"avatar_url":"https://avatars.githubusercontent.com/u/1419621?v=3","gravatar_id":"","url":"https://api.github.com/users/jue58","html_url":"https://github.com/jue58","followers_url":"https://api.github.com/users/jue58/followers","following_url":"https://api.github.com/users/jue58/following{/other_user}","gists_url":"https://api.github.com/users/jue58/gists{/gist_id}","starred_url":"https://api.github.com/users/jue58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jue58/subscriptions","organizations_url":"https://api.github.com/users/jue58/orgs","repos_url":"https://api.github.com/users/jue58/repos","events_url":"https://api.github.com/users/jue58/events{/privacy}","received_events_url":"https://api.github.com/users/jue58/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jue58/kintone","description":"kintone REST API client for Ruby","fork":false,"url":"https://api.github.com/repos/jue58/kintone","forks_url":"https://api.github.com/repos/jue58/kintone/forks","keys_url":"https://api.github.com/repos/jue58/kintone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jue58/kintone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jue58/kintone/teams","hooks_url":"https://api.github.com/repos/jue58/kintone/hooks","issue_events_url":"https://api.github.com/repos/jue58/kintone/issues/events{/number}","events_url":"https://api.github.com/repos/jue58/kintone/events","assignees_url":"https://api.github.com/repos/jue58/kintone/assignees{/user}","branches_url":"https://api.github.com/repos/jue58/kintone/branches{/branch}","tags_url":"https://api.github.com/repos/jue58/kintone/tags","blobs_url":"https://api.github.com/repos/jue58/kintone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jue58/kintone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jue58/kintone/git/refs{/sha}","trees_url":"https://api.github.com/repos/jue58/kintone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jue58/kintone/statuses/{sha}","languages_url":"https://api.github.com/repos/jue58/kintone/languages","stargazers_url":"https://api.github.com/repos/jue58/kintone/stargazers","contributors_url":"https://api.github.com/repos/jue58/kintone/contributors","subscribers_url":"https://api.github.com/repos/jue58/kintone/subscribers","subscription_url":"https://api.github.com/repos/jue58/kintone/subscription","commits_url":"https://api.github.com/repos/jue58/kintone/commits{/sha}","git_commits_url":"https://api.github.com/repos/jue58/kintone/git/commits{/sha}","comments_url":"https://api.github.com/repos/jue58/kintone/comments{/number}","issue_comment_url":"https://api.github.com/repos/jue58/kintone/issues/comments{/number}","contents_url":"https://api.github.com/repos/jue58/kintone/contents/{+path}","compare_url":"https://api.github.com/repos/jue58/kintone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jue58/kintone/merges","archive_url":"https://api.github.com/repos/jue58/kintone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jue58/kintone/downloads","issues_url":"https://api.github.com/repos/jue58/kintone/issues{/number}","pulls_url":"https://api.github.com/repos/jue58/kintone/pulls{/number}","milestones_url":"https://api.github.com/repos/jue58/kintone/milestones{/number}","notifications_url":"https://api.github.com/repos/jue58/kintone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jue58/kintone/labels{/name}","releases_url":"https://api.github.com/repos/jue58/kintone/releases{/id}","deployments_url":"https://api.github.com/repos/jue58/kintone/deployments","created_at":"2014-01-31T06:20:21Z","updated_at":"2016-01-20T13:44:04Z","pushed_at":"2016-01-25T11:22:01Z","git_url":"git://github.com/jue58/kintone.git","ssh_url":"git@github.com:jue58/kintone.git","clone_url":"https://github.com/jue58/kintone.git","svn_url":"https://github.com/jue58/kintone","homepage":"","size":112,"stargazers_count":14,"watchers_count":14,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":1,"forks":6,"open_issues":1,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jue58/kintone/pulls/3"},"html":{"href":"https://github.com/jue58/kintone/pull/3"},"issue":{"href":"https://api.github.com/repos/jue58/kintone/issues/3"},"comments":{"href":"https://api.github.com/repos/jue58/kintone/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/jue58/kintone/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/jue58/kintone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jue58/kintone/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/jue58/kintone/statuses/5f8b2fbfa030e5d06e293c53b05196125380bd89"}}}}