{"action":"created","comment":{"url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/comments/25514018","id":25514018,"diff_hunk":"@@ -87,8 +87,11 @@ public static function send(Client $client, $endPoint, $json = array(), $method\n                 $size = filesize($filename);\n                 $fileData = fread($file, $size);\n                 $json = $fileData;\n-                $contentType = '';","path":"src/Zendesk/API/Http.php","position":4,"original_position":4,"commit_id":"9327bd2027ec9039ec75844909110ac0816bb86c","original_commit_id":"9327bd2027ec9039ec75844909110ac0816bb86c","user":{"login":"mikealmond","id":600744,"avatar_url":"https://avatars.githubusercontent.com/u/600744?v=3","gravatar_id":"","url":"https://api.github.com/users/mikealmond","html_url":"https://github.com/mikealmond","followers_url":"https://api.github.com/users/mikealmond/followers","following_url":"https://api.github.com/users/mikealmond/following{/other_user}","gists_url":"https://api.github.com/users/mikealmond/gists{/gist_id}","starred_url":"https://api.github.com/users/mikealmond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikealmond/subscriptions","organizations_url":"https://api.github.com/users/mikealmond/orgs","repos_url":"https://api.github.com/users/mikealmond/repos","events_url":"https://api.github.com/users/mikealmond/events{/privacy}","received_events_url":"https://api.github.com/users/mikealmond/received_events","type":"User","site_admin":false},"body":"Need to tell cURL the file size as well\r\n\r\n```php\r\ncurl_setopt($curl, CURLOPT_INFILESIZE, $size);\r\n```","created_at":"2015-02-27T15:37:04Z","updated_at":"2015-02-27T15:37:04Z","html_url":"https://github.com/zendesk/zendesk_api_client_php/pull/76#discussion_r25514018","pull_request_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/76","_links":{"self":{"href":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/comments/25514018"},"html":{"href":"https://github.com/zendesk/zendesk_api_client_php/pull/76#discussion_r25514018"},"pull_request":{"href":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/76"}}},"pull_request":{"url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/76","id":29951752,"html_url":"https://github.com/zendesk/zendesk_api_client_php/pull/76","diff_url":"https://github.com/zendesk/zendesk_api_client_php/pull/76.diff","patch_url":"https://github.com/zendesk/zendesk_api_client_php/pull/76.patch","issue_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues/76","number":76,"state":"open","locked":false,"title":"Fix bugs for uploading","user":{"login":"shanitang","id":9438502,"avatar_url":"https://avatars.githubusercontent.com/u/9438502?v=3","gravatar_id":"","url":"https://api.github.com/users/shanitang","html_url":"https://github.com/shanitang","followers_url":"https://api.github.com/users/shanitang/followers","following_url":"https://api.github.com/users/shanitang/following{/other_user}","gists_url":"https://api.github.com/users/shanitang/gists{/gist_id}","starred_url":"https://api.github.com/users/shanitang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shanitang/subscriptions","organizations_url":"https://api.github.com/users/shanitang/orgs","repos_url":"https://api.github.com/users/shanitang/repos","events_url":"https://api.github.com/users/shanitang/events{/privacy}","received_events_url":"https://api.github.com/users/shanitang/received_events","type":"User","site_admin":false},"body":"Fix bugs for uploading with `filename` and `body`\r\n\r\n@zendesk/archer ","created_at":"2015-02-25T00:51:24Z","updated_at":"2015-02-27T15:37:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cdfb3c9415848efe61b4f80452cde4d12445ff0b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/76/commits","review_comments_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/76/comments","review_comment_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues/76/comments","statuses_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/statuses/9327bd2027ec9039ec75844909110ac0816bb86c","head":{"label":"zendesk:ytang/attachment_with_filename","ref":"ytang/attachment_with_filename","sha":"9327bd2027ec9039ec75844909110ac0816bb86c","user":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"repo":{"id":16820767,"name":"zendesk_api_client_php","full_name":"zendesk/zendesk_api_client_php","owner":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendesk/zendesk_api_client_php","description":"","fork":false,"url":"https://api.github.com/repos/zendesk/zendesk_api_client_php","forks_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/forks","keys_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/teams","hooks_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/hooks","issue_events_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues/events{/number}","events_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/events","assignees_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/assignees{/user}","branches_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/branches{/branch}","tags_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/tags","blobs_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/statuses/{sha}","languages_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/languages","stargazers_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/stargazers","contributors_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/contributors","subscribers_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/subscribers","subscription_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/subscription","commits_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues/comments{/number}","contents_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/contents/{+path}","compare_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/merges","archive_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/downloads","issues_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues{/number}","pulls_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls{/number}","milestones_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/milestones{/number}","notifications_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/labels{/name}","releases_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/releases{/id}","created_at":"2014-02-13T23:21:28Z","updated_at":"2015-02-26T01:21:52Z","pushed_at":"2015-02-25T00:49:07Z","git_url":"git://github.com/zendesk/zendesk_api_client_php.git","ssh_url":"git@github.com:zendesk/zendesk_api_client_php.git","clone_url":"https://github.com/zendesk/zendesk_api_client_php.git","svn_url":"https://github.com/zendesk/zendesk_api_client_php","homepage":null,"size":2121,"stargazers_count":50,"watchers_count":50,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":50,"mirror_url":null,"open_issues_count":20,"forks":50,"open_issues":20,"watchers":50,"default_branch":"master"}},"base":{"label":"zendesk:master","ref":"master","sha":"41d42e14b932301d12f580bb6cebabd883a2696a","user":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"repo":{"id":16820767,"name":"zendesk_api_client_php","full_name":"zendesk/zendesk_api_client_php","owner":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendesk/zendesk_api_client_php","description":"","fork":false,"url":"https://api.github.com/repos/zendesk/zendesk_api_client_php","forks_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/forks","keys_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/teams","hooks_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/hooks","issue_events_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues/events{/number}","events_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/events","assignees_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/assignees{/user}","branches_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/branches{/branch}","tags_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/tags","blobs_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/statuses/{sha}","languages_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/languages","stargazers_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/stargazers","contributors_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/contributors","subscribers_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/subscribers","subscription_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/subscription","commits_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues/comments{/number}","contents_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/contents/{+path}","compare_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/merges","archive_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/downloads","issues_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues{/number}","pulls_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls{/number}","milestones_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/milestones{/number}","notifications_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/labels{/name}","releases_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/releases{/id}","created_at":"2014-02-13T23:21:28Z","updated_at":"2015-02-26T01:21:52Z","pushed_at":"2015-02-25T00:49:07Z","git_url":"git://github.com/zendesk/zendesk_api_client_php.git","ssh_url":"git@github.com:zendesk/zendesk_api_client_php.git","clone_url":"https://github.com/zendesk/zendesk_api_client_php.git","svn_url":"https://github.com/zendesk/zendesk_api_client_php","homepage":null,"size":2121,"stargazers_count":50,"watchers_count":50,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":50,"mirror_url":null,"open_issues_count":20,"forks":50,"open_issues":20,"watchers":50,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/76"},"html":{"href":"https://github.com/zendesk/zendesk_api_client_php/pull/76"},"issue":{"href":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues/76"},"comments":{"href":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/zendesk/zendesk_api_client_php/statuses/9327bd2027ec9039ec75844909110ac0816bb86c"}}}}