{"action":"created","comment":{"url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/pulls/comments/37358168","id":37358168,"diff_hunk":"@@ -586,4 +589,72 @@ public function videoToUpload($pathToFile)\n     {\n         return new FacebookVideo($pathToFile);\n     }\n+\n+    /**\n+     * Upload video\n+     *\n+     * @param int $target\n+     * @param string $pathToFile\n+     * @param string $accessToken\n+     * @param int $maxTransferTries\n+     *\n+     * @return array\n+     *\n+     * @throws FacebookSDKException\n+     */\n+    public function uploadVideo($target, $pathToFile, $accessToken, $maxTransferTries = 5)\n+    {\n+        $uploader = $this->getResumableUploader($accessToken, $maxTransferTries);\n+        $endpoint = '/'.$target.'/videos';","path":"src/Facebook/Facebook.php","position":39,"original_position":39,"commit_id":"5b6a85a5b52c7e7277852316fc29ad2e08496c2f","original_commit_id":"5b6a85a5b52c7e7277852316fc29ad2e08496c2f","user":{"login":"yguedidi","id":1480128,"avatar_url":"https://avatars.githubusercontent.com/u/1480128?v=3","gravatar_id":"","url":"https://api.github.com/users/yguedidi","html_url":"https://github.com/yguedidi","followers_url":"https://api.github.com/users/yguedidi/followers","following_url":"https://api.github.com/users/yguedidi/following{/other_user}","gists_url":"https://api.github.com/users/yguedidi/gists{/gist_id}","starred_url":"https://api.github.com/users/yguedidi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yguedidi/subscriptions","organizations_url":"https://api.github.com/users/yguedidi/orgs","repos_url":"https://api.github.com/users/yguedidi/repos","events_url":"https://api.github.com/users/yguedidi/events{/privacy}","received_events_url":"https://api.github.com/users/yguedidi/received_events","type":"User","site_admin":false},"body":"I'd prefer an easy to use signature with a good doc rather an opened signature to any endpoint with a pattern check in the definition :)","created_at":"2015-08-18T21:49:51Z","updated_at":"2015-08-18T21:49:51Z","html_url":"https://github.com/facebook/facebook-php-sdk-v4/pull/489#discussion_r37358168","pull_request_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/pulls/489","_links":{"self":{"href":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/pulls/comments/37358168"},"html":{"href":"https://github.com/facebook/facebook-php-sdk-v4/pull/489#discussion_r37358168"},"pull_request":{"href":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/pulls/489"}}},"pull_request":{"url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/pulls/489","id":42624245,"html_url":"https://github.com/facebook/facebook-php-sdk-v4/pull/489","diff_url":"https://github.com/facebook/facebook-php-sdk-v4/pull/489.diff","patch_url":"https://github.com/facebook/facebook-php-sdk-v4/pull/489.patch","issue_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/489","number":489,"state":"open","locked":false,"title":"Video Resumable uploader","user":{"login":"YuanhuiChen","id":1373578,"avatar_url":"https://avatars.githubusercontent.com/u/1373578?v=3","gravatar_id":"","url":"https://api.github.com/users/YuanhuiChen","html_url":"https://github.com/YuanhuiChen","followers_url":"https://api.github.com/users/YuanhuiChen/followers","following_url":"https://api.github.com/users/YuanhuiChen/following{/other_user}","gists_url":"https://api.github.com/users/YuanhuiChen/gists{/gist_id}","starred_url":"https://api.github.com/users/YuanhuiChen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuanhuiChen/subscriptions","organizations_url":"https://api.github.com/users/YuanhuiChen/orgs","repos_url":"https://api.github.com/users/YuanhuiChen/repos","events_url":"https://api.github.com/users/YuanhuiChen/events{/privacy}","received_events_url":"https://api.github.com/users/YuanhuiChen/received_events","type":"User","site_admin":false},"body":"Finally comes another update.  Sorry I opened a new branch. You cannot see the old comments. I committed to some others' diff by mistake in the old branch. \r\nThe new changes:\r\n1. add integration test\r\n2. distinguish between no resumable exception and resumable exception in the transfer phase.\r\n3. fix some other issues. \r\n\r\nThanks again for your patience!","created_at":"2015-08-17T19:24:43Z","updated_at":"2015-08-18T21:49:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e4546eecb7d7c08151c6e38c28cc055462e4ac63","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/pulls/489/commits","review_comments_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/pulls/489/comments","review_comment_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/489/comments","statuses_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/statuses/5b6a85a5b52c7e7277852316fc29ad2e08496c2f","head":{"label":"YuanhuiChen:video_uploader_chunks","ref":"video_uploader_chunks","sha":"5b6a85a5b52c7e7277852316fc29ad2e08496c2f","user":{"login":"YuanhuiChen","id":1373578,"avatar_url":"https://avatars.githubusercontent.com/u/1373578?v=3","gravatar_id":"","url":"https://api.github.com/users/YuanhuiChen","html_url":"https://github.com/YuanhuiChen","followers_url":"https://api.github.com/users/YuanhuiChen/followers","following_url":"https://api.github.com/users/YuanhuiChen/following{/other_user}","gists_url":"https://api.github.com/users/YuanhuiChen/gists{/gist_id}","starred_url":"https://api.github.com/users/YuanhuiChen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuanhuiChen/subscriptions","organizations_url":"https://api.github.com/users/YuanhuiChen/orgs","repos_url":"https://api.github.com/users/YuanhuiChen/repos","events_url":"https://api.github.com/users/YuanhuiChen/events{/privacy}","received_events_url":"https://api.github.com/users/YuanhuiChen/received_events","type":"User","site_admin":false},"repo":{"id":37106751,"name":"facebook-php-sdk-v4","full_name":"YuanhuiChen/facebook-php-sdk-v4","owner":{"login":"YuanhuiChen","id":1373578,"avatar_url":"https://avatars.githubusercontent.com/u/1373578?v=3","gravatar_id":"","url":"https://api.github.com/users/YuanhuiChen","html_url":"https://github.com/YuanhuiChen","followers_url":"https://api.github.com/users/YuanhuiChen/followers","following_url":"https://api.github.com/users/YuanhuiChen/following{/other_user}","gists_url":"https://api.github.com/users/YuanhuiChen/gists{/gist_id}","starred_url":"https://api.github.com/users/YuanhuiChen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuanhuiChen/subscriptions","organizations_url":"https://api.github.com/users/YuanhuiChen/orgs","repos_url":"https://api.github.com/users/YuanhuiChen/repos","events_url":"https://api.github.com/users/YuanhuiChen/events{/privacy}","received_events_url":"https://api.github.com/users/YuanhuiChen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YuanhuiChen/facebook-php-sdk-v4","description":"The Facebook SDK for PHP provides a native interface to the Graph API and Facebook Login.  https://developers.facebook.com/docs/php","fork":true,"url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4","forks_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/forks","keys_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/teams","hooks_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/hooks","issue_events_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/issues/events{/number}","events_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/events","assignees_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/assignees{/user}","branches_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/branches{/branch}","tags_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/tags","blobs_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/git/refs{/sha}","trees_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/statuses/{sha}","languages_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/languages","stargazers_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/stargazers","contributors_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/contributors","subscribers_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/subscribers","subscription_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/subscription","commits_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/commits{/sha}","git_commits_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/git/commits{/sha}","comments_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/comments{/number}","issue_comment_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/issues/comments{/number}","contents_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/contents/{+path}","compare_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/merges","archive_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/downloads","issues_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/issues{/number}","pulls_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/pulls{/number}","milestones_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/milestones{/number}","notifications_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/labels{/name}","releases_url":"https://api.github.com/repos/YuanhuiChen/facebook-php-sdk-v4/releases{/id}","created_at":"2015-06-09T03:02:01Z","updated_at":"2015-06-09T03:02:01Z","pushed_at":"2015-08-17T19:19:22Z","git_url":"git://github.com/YuanhuiChen/facebook-php-sdk-v4.git","ssh_url":"git@github.com:YuanhuiChen/facebook-php-sdk-v4.git","clone_url":"https://github.com/YuanhuiChen/facebook-php-sdk-v4.git","svn_url":"https://github.com/YuanhuiChen/facebook-php-sdk-v4","homepage":null,"size":1205,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"4.0-dev"}},"base":{"label":"facebook:master","ref":"master","sha":"56dfa7727f06a6dfe5f315d4eb5b1d3db3251e93","user":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"repo":{"id":18842338,"name":"facebook-php-sdk-v4","full_name":"facebook/facebook-php-sdk-v4","owner":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebook/facebook-php-sdk-v4","description":"The Facebook SDK for PHP provides a native interface to the Graph API and Facebook Login.  https://developers.facebook.com/docs/php","fork":false,"url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4","forks_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/forks","keys_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/teams","hooks_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/hooks","issue_events_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/events","assignees_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/tags","blobs_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/languages","stargazers_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/stargazers","contributors_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/contributors","subscribers_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/subscribers","subscription_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/subscription","commits_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/merges","archive_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/downloads","issues_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/labels{/name}","releases_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/releases{/id}","created_at":"2014-04-16T14:20:43Z","updated_at":"2015-08-18T21:17:58Z","pushed_at":"2015-08-18T18:05:21Z","git_url":"git://github.com/facebook/facebook-php-sdk-v4.git","ssh_url":"git@github.com:facebook/facebook-php-sdk-v4.git","clone_url":"https://github.com/facebook/facebook-php-sdk-v4.git","svn_url":"https://github.com/facebook/facebook-php-sdk-v4","homepage":null,"size":2963,"stargazers_count":825,"watchers_count":825,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":459,"mirror_url":null,"open_issues_count":10,"forks":459,"open_issues":10,"watchers":825,"default_branch":"5.0-dev"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/pulls/489"},"html":{"href":"https://github.com/facebook/facebook-php-sdk-v4/pull/489"},"issue":{"href":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/489"},"comments":{"href":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/489/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/pulls/489/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/pulls/489/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/statuses/5b6a85a5b52c7e7277852316fc29ad2e08496c2f"}}}}