{"action":"created","comment":{"url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/pulls/comments/39468929","id":39468929,"diff_hunk":"@@ -90,7 +90,7 @@ public function delete()\n         }\n \n         $headers = ParseClient::_getRequestHeaders(null, true);\n-        $url = ParseClient::HOST_NAME.'/1/files/'.$this->getName();\n+        $url = ParseClient::getAPIUrl() . '/files/' . $this->getName();","path":"src/Parse/ParseFile.php","position":5,"original_position":5,"commit_id":"92582469bd912aa6f2b9b5903c223794554d44b0","original_commit_id":"92582469bd912aa6f2b9b5903c223794554d44b0","user":{"login":"gfosco","id":406732,"avatar_url":"https://avatars.githubusercontent.com/u/406732?v=3","gravatar_id":"","url":"https://api.github.com/users/gfosco","html_url":"https://github.com/gfosco","followers_url":"https://api.github.com/users/gfosco/followers","following_url":"https://api.github.com/users/gfosco/following{/other_user}","gists_url":"https://api.github.com/users/gfosco/gists{/gist_id}","starred_url":"https://api.github.com/users/gfosco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfosco/subscriptions","organizations_url":"https://api.github.com/users/gfosco/orgs","repos_url":"https://api.github.com/users/gfosco/repos","events_url":"https://api.github.com/users/gfosco/events{/privacy}","received_events_url":"https://api.github.com/users/gfosco/received_events","type":"User","site_admin":false},"body":"getAPIUrl should probably add the trailing slash to be consistent.","created_at":"2015-09-15T02:27:07Z","updated_at":"2015-09-15T02:27:07Z","html_url":"https://github.com/ParsePlatform/parse-php-sdk/pull/149#discussion_r39468929","pull_request_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/pulls/149","_links":{"self":{"href":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/pulls/comments/39468929"},"html":{"href":"https://github.com/ParsePlatform/parse-php-sdk/pull/149#discussion_r39468929"},"pull_request":{"href":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/pulls/149"}}},"pull_request":{"url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/pulls/149","id":44807615,"html_url":"https://github.com/ParsePlatform/parse-php-sdk/pull/149","diff_url":"https://github.com/ParsePlatform/parse-php-sdk/pull/149.diff","patch_url":"https://github.com/ParsePlatform/parse-php-sdk/pull/149.patch","issue_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/issues/149","number":149,"state":"open","locked":false,"title":"API version constant, remove from _request calls","user":{"login":"juliangut","id":1104131,"avatar_url":"https://avatars.githubusercontent.com/u/1104131?v=3","gravatar_id":"","url":"https://api.github.com/users/juliangut","html_url":"https://github.com/juliangut","followers_url":"https://api.github.com/users/juliangut/followers","following_url":"https://api.github.com/users/juliangut/following{/other_user}","gists_url":"https://api.github.com/users/juliangut/gists{/gist_id}","starred_url":"https://api.github.com/users/juliangut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliangut/subscriptions","organizations_url":"https://api.github.com/users/juliangut/orgs","repos_url":"https://api.github.com/users/juliangut/repos","events_url":"https://api.github.com/users/juliangut/events{/privacy}","received_events_url":"https://api.github.com/users/juliangut/received_events","type":"User","site_admin":false},"body":"As commented on ticket #146 API version `/1/` is all around the library.\r\nWith this PR it is defined as a constant on ParseClient and used to compose _request calls to Parse API Service","created_at":"2015-09-11T17:25:40Z","updated_at":"2015-09-15T02:27:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"230011db58073764b2b7153bb1e1b15d026cd326","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/pulls/149/commits","review_comments_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/pulls/149/comments","review_comment_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/issues/149/comments","statuses_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/statuses/92582469bd912aa6f2b9b5903c223794554d44b0","head":{"label":"juliangut:api_version","ref":"api_version","sha":"92582469bd912aa6f2b9b5903c223794554d44b0","user":{"login":"juliangut","id":1104131,"avatar_url":"https://avatars.githubusercontent.com/u/1104131?v=3","gravatar_id":"","url":"https://api.github.com/users/juliangut","html_url":"https://github.com/juliangut","followers_url":"https://api.github.com/users/juliangut/followers","following_url":"https://api.github.com/users/juliangut/following{/other_user}","gists_url":"https://api.github.com/users/juliangut/gists{/gist_id}","starred_url":"https://api.github.com/users/juliangut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliangut/subscriptions","organizations_url":"https://api.github.com/users/juliangut/orgs","repos_url":"https://api.github.com/users/juliangut/repos","events_url":"https://api.github.com/users/juliangut/events{/privacy}","received_events_url":"https://api.github.com/users/juliangut/received_events","type":"User","site_admin":false},"repo":{"id":42244799,"name":"parse-php-sdk","full_name":"juliangut/parse-php-sdk","owner":{"login":"juliangut","id":1104131,"avatar_url":"https://avatars.githubusercontent.com/u/1104131?v=3","gravatar_id":"","url":"https://api.github.com/users/juliangut","html_url":"https://github.com/juliangut","followers_url":"https://api.github.com/users/juliangut/followers","following_url":"https://api.github.com/users/juliangut/following{/other_user}","gists_url":"https://api.github.com/users/juliangut/gists{/gist_id}","starred_url":"https://api.github.com/users/juliangut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliangut/subscriptions","organizations_url":"https://api.github.com/users/juliangut/orgs","repos_url":"https://api.github.com/users/juliangut/repos","events_url":"https://api.github.com/users/juliangut/events{/privacy}","received_events_url":"https://api.github.com/users/juliangut/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/juliangut/parse-php-sdk","description":"The Parse PHP SDK.","fork":true,"url":"https://api.github.com/repos/juliangut/parse-php-sdk","forks_url":"https://api.github.com/repos/juliangut/parse-php-sdk/forks","keys_url":"https://api.github.com/repos/juliangut/parse-php-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/juliangut/parse-php-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/juliangut/parse-php-sdk/teams","hooks_url":"https://api.github.com/repos/juliangut/parse-php-sdk/hooks","issue_events_url":"https://api.github.com/repos/juliangut/parse-php-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/juliangut/parse-php-sdk/events","assignees_url":"https://api.github.com/repos/juliangut/parse-php-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/juliangut/parse-php-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/juliangut/parse-php-sdk/tags","blobs_url":"https://api.github.com/repos/juliangut/parse-php-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/juliangut/parse-php-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/juliangut/parse-php-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/juliangut/parse-php-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/juliangut/parse-php-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/juliangut/parse-php-sdk/languages","stargazers_url":"https://api.github.com/repos/juliangut/parse-php-sdk/stargazers","contributors_url":"https://api.github.com/repos/juliangut/parse-php-sdk/contributors","subscribers_url":"https://api.github.com/repos/juliangut/parse-php-sdk/subscribers","subscription_url":"https://api.github.com/repos/juliangut/parse-php-sdk/subscription","commits_url":"https://api.github.com/repos/juliangut/parse-php-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/juliangut/parse-php-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/juliangut/parse-php-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/juliangut/parse-php-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/juliangut/parse-php-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/juliangut/parse-php-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/juliangut/parse-php-sdk/merges","archive_url":"https://api.github.com/repos/juliangut/parse-php-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/juliangut/parse-php-sdk/downloads","issues_url":"https://api.github.com/repos/juliangut/parse-php-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/juliangut/parse-php-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/juliangut/parse-php-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/juliangut/parse-php-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/juliangut/parse-php-sdk/labels{/name}","releases_url":"https://api.github.com/repos/juliangut/parse-php-sdk/releases{/id}","created_at":"2015-09-10T13:02:42Z","updated_at":"2015-09-10T13:02:42Z","pushed_at":"2015-09-11T17:22:02Z","git_url":"git://github.com/juliangut/parse-php-sdk.git","ssh_url":"git@github.com:juliangut/parse-php-sdk.git","clone_url":"https://github.com/juliangut/parse-php-sdk.git","svn_url":"https://github.com/juliangut/parse-php-sdk","homepage":"https://parse.com/products/php","size":1393,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ParsePlatform:master","ref":"master","sha":"6e20e21bdb1c2ca62102ae40868143d40c22371d","user":{"login":"ParsePlatform","id":1294580,"avatar_url":"https://avatars.githubusercontent.com/u/1294580?v=3","gravatar_id":"","url":"https://api.github.com/users/ParsePlatform","html_url":"https://github.com/ParsePlatform","followers_url":"https://api.github.com/users/ParsePlatform/followers","following_url":"https://api.github.com/users/ParsePlatform/following{/other_user}","gists_url":"https://api.github.com/users/ParsePlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/ParsePlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ParsePlatform/subscriptions","organizations_url":"https://api.github.com/users/ParsePlatform/orgs","repos_url":"https://api.github.com/users/ParsePlatform/repos","events_url":"https://api.github.com/users/ParsePlatform/events{/privacy}","received_events_url":"https://api.github.com/users/ParsePlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":22077884,"name":"parse-php-sdk","full_name":"ParsePlatform/parse-php-sdk","owner":{"login":"ParsePlatform","id":1294580,"avatar_url":"https://avatars.githubusercontent.com/u/1294580?v=3","gravatar_id":"","url":"https://api.github.com/users/ParsePlatform","html_url":"https://github.com/ParsePlatform","followers_url":"https://api.github.com/users/ParsePlatform/followers","following_url":"https://api.github.com/users/ParsePlatform/following{/other_user}","gists_url":"https://api.github.com/users/ParsePlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/ParsePlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ParsePlatform/subscriptions","organizations_url":"https://api.github.com/users/ParsePlatform/orgs","repos_url":"https://api.github.com/users/ParsePlatform/repos","events_url":"https://api.github.com/users/ParsePlatform/events{/privacy}","received_events_url":"https://api.github.com/users/ParsePlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ParsePlatform/parse-php-sdk","description":"The Parse PHP SDK.","fork":false,"url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk","forks_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/forks","keys_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/teams","hooks_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/hooks","issue_events_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/events","assignees_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/tags","blobs_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/languages","stargazers_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/stargazers","contributors_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/contributors","subscribers_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/subscribers","subscription_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/subscription","commits_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/merges","archive_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/downloads","issues_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/labels{/name}","releases_url":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/releases{/id}","created_at":"2014-07-21T19:51:32Z","updated_at":"2015-09-11T08:50:28Z","pushed_at":"2015-09-11T17:25:40Z","git_url":"git://github.com/ParsePlatform/parse-php-sdk.git","ssh_url":"git@github.com:ParsePlatform/parse-php-sdk.git","clone_url":"https://github.com/ParsePlatform/parse-php-sdk.git","svn_url":"https://github.com/ParsePlatform/parse-php-sdk","homepage":"https://parse.com/products/php","size":1997,"stargazers_count":533,"watchers_count":533,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":186,"mirror_url":null,"open_issues_count":7,"forks":186,"open_issues":7,"watchers":533,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/pulls/149"},"html":{"href":"https://github.com/ParsePlatform/parse-php-sdk/pull/149"},"issue":{"href":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/issues/149"},"comments":{"href":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/issues/149/comments"},"review_comments":{"href":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/pulls/149/comments"},"review_comment":{"href":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/pulls/149/commits"},"statuses":{"href":"https://api.github.com/repos/ParsePlatform/parse-php-sdk/statuses/92582469bd912aa6f2b9b5903c223794554d44b0"}}}}