{"action":"created","comment":{"url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/pulls/comments/47140435","id":47140435,"diff_hunk":"@@ -0,0 +1,46 @@\n+import com.dato.deploy.PredictiveServiceClient;\n+import org.json.simple.JSONObject;\n+import com.dato.deploy.PredictiveServiceClientResponse;\n+import com.dato.deploy.PredictiveServiceClientException;\n+/* \n+ * A sample Java main application that connects to a running \n+ * GLC predictive services. This example assume an \"add\" function ","path":"src/main/java/com/dato/deploy/SampleCode.java","position":7,"original_position":7,"commit_id":"99dafc0b08e669d7e33d05324b57231034f331d0","original_commit_id":"99dafc0b08e669d7e33d05324b57231034f331d0","user":{"login":"wangping25","id":1105244,"avatar_url":"https://avatars.githubusercontent.com/u/1105244?v=3","gravatar_id":"","url":"https://api.github.com/users/wangping25","html_url":"https://github.com/wangping25","followers_url":"https://api.github.com/users/wangping25/followers","following_url":"https://api.github.com/users/wangping25/following{/other_user}","gists_url":"https://api.github.com/users/wangping25/gists{/gist_id}","starred_url":"https://api.github.com/users/wangping25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangping25/subscriptions","organizations_url":"https://api.github.com/users/wangping25/orgs","repos_url":"https://api.github.com/users/wangping25/repos","events_url":"https://api.github.com/users/wangping25/events{/privacy}","received_events_url":"https://api.github.com/users/wangping25/received_events","type":"User","site_admin":false},"body":"Let's call it Dato Predictive Services","created_at":"2015-12-09T19:37:40Z","updated_at":"2015-12-09T19:37:40Z","html_url":"https://github.com/dato-code/Dato-Predictive-Service-Client-Java/pull/3#discussion_r47140435","pull_request_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/pulls/comments/47140435"},"html":{"href":"https://github.com/dato-code/Dato-Predictive-Service-Client-Java/pull/3#discussion_r47140435"},"pull_request":{"href":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/pulls/3","id":53066489,"html_url":"https://github.com/dato-code/Dato-Predictive-Service-Client-Java/pull/3","diff_url":"https://github.com/dato-code/Dato-Predictive-Service-Client-Java/pull/3.diff","patch_url":"https://github.com/dato-code/Dato-Predictive-Service-Client-Java/pull/3.patch","issue_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/issues/3","number":3,"state":"open","locked":false,"title":"sending api_key through http header with basic authentication ","user":{"login":"esoroush","id":2282390,"avatar_url":"https://avatars.githubusercontent.com/u/2282390?v=3","gravatar_id":"","url":"https://api.github.com/users/esoroush","html_url":"https://github.com/esoroush","followers_url":"https://api.github.com/users/esoroush/followers","following_url":"https://api.github.com/users/esoroush/following{/other_user}","gists_url":"https://api.github.com/users/esoroush/gists{/gist_id}","starred_url":"https://api.github.com/users/esoroush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esoroush/subscriptions","organizations_url":"https://api.github.com/users/esoroush/orgs","repos_url":"https://api.github.com/users/esoroush/repos","events_url":"https://api.github.com/users/esoroush/events{/privacy}","received_events_url":"https://api.github.com/users/esoroush/received_events","type":"User","site_admin":false},"body":"Adding SampleCode.java: A very basic java application that connects to a running web service and computes a simple addition. I added to make testing java client easier. \r\n","created_at":"2015-12-09T01:49:21Z","updated_at":"2015-12-09T19:37:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"15a99961ad84afb1724e82384c8ea780ae720982","assignee":{"login":"wangping25","id":1105244,"avatar_url":"https://avatars.githubusercontent.com/u/1105244?v=3","gravatar_id":"","url":"https://api.github.com/users/wangping25","html_url":"https://github.com/wangping25","followers_url":"https://api.github.com/users/wangping25/followers","following_url":"https://api.github.com/users/wangping25/following{/other_user}","gists_url":"https://api.github.com/users/wangping25/gists{/gist_id}","starred_url":"https://api.github.com/users/wangping25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangping25/subscriptions","organizations_url":"https://api.github.com/users/wangping25/orgs","repos_url":"https://api.github.com/users/wangping25/repos","events_url":"https://api.github.com/users/wangping25/events{/privacy}","received_events_url":"https://api.github.com/users/wangping25/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/pulls/3/commits","review_comments_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/pulls/3/comments","review_comment_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/issues/3/comments","statuses_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/statuses/99dafc0b08e669d7e33d05324b57231034f331d0","head":{"label":"esoroush:master","ref":"master","sha":"99dafc0b08e669d7e33d05324b57231034f331d0","user":{"login":"esoroush","id":2282390,"avatar_url":"https://avatars.githubusercontent.com/u/2282390?v=3","gravatar_id":"","url":"https://api.github.com/users/esoroush","html_url":"https://github.com/esoroush","followers_url":"https://api.github.com/users/esoroush/followers","following_url":"https://api.github.com/users/esoroush/following{/other_user}","gists_url":"https://api.github.com/users/esoroush/gists{/gist_id}","starred_url":"https://api.github.com/users/esoroush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esoroush/subscriptions","organizations_url":"https://api.github.com/users/esoroush/orgs","repos_url":"https://api.github.com/users/esoroush/repos","events_url":"https://api.github.com/users/esoroush/events{/privacy}","received_events_url":"https://api.github.com/users/esoroush/received_events","type":"User","site_admin":false},"repo":{"id":47640894,"name":"Dato-Predictive-Service-Client-Java","full_name":"esoroush/Dato-Predictive-Service-Client-Java","owner":{"login":"esoroush","id":2282390,"avatar_url":"https://avatars.githubusercontent.com/u/2282390?v=3","gravatar_id":"","url":"https://api.github.com/users/esoroush","html_url":"https://github.com/esoroush","followers_url":"https://api.github.com/users/esoroush/followers","following_url":"https://api.github.com/users/esoroush/following{/other_user}","gists_url":"https://api.github.com/users/esoroush/gists{/gist_id}","starred_url":"https://api.github.com/users/esoroush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esoroush/subscriptions","organizations_url":"https://api.github.com/users/esoroush/orgs","repos_url":"https://api.github.com/users/esoroush/repos","events_url":"https://api.github.com/users/esoroush/events{/privacy}","received_events_url":"https://api.github.com/users/esoroush/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/esoroush/Dato-Predictive-Service-Client-Java","description":"Dato Predictive Service Java Client","fork":true,"url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java","forks_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/forks","keys_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/teams","hooks_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/hooks","issue_events_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/issues/events{/number}","events_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/events","assignees_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/assignees{/user}","branches_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/branches{/branch}","tags_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/tags","blobs_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/git/refs{/sha}","trees_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/statuses/{sha}","languages_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/languages","stargazers_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/stargazers","contributors_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/contributors","subscribers_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/subscribers","subscription_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/subscription","commits_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/commits{/sha}","git_commits_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/git/commits{/sha}","comments_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/comments{/number}","issue_comment_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/issues/comments{/number}","contents_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/contents/{+path}","compare_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/merges","archive_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/downloads","issues_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/issues{/number}","pulls_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/pulls{/number}","milestones_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/milestones{/number}","notifications_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/labels{/name}","releases_url":"https://api.github.com/repos/esoroush/Dato-Predictive-Service-Client-Java/releases{/id}","created_at":"2015-12-08T18:23:52Z","updated_at":"2015-12-08T18:23:52Z","pushed_at":"2015-12-09T01:45:50Z","git_url":"git://github.com/esoroush/Dato-Predictive-Service-Client-Java.git","ssh_url":"git@github.com:esoroush/Dato-Predictive-Service-Client-Java.git","clone_url":"https://github.com/esoroush/Dato-Predictive-Service-Client-Java.git","svn_url":"https://github.com/esoroush/Dato-Predictive-Service-Client-Java","homepage":null,"size":14,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"dato-code:master","ref":"master","sha":"d250b64fc6132caf5232e2625c00f3c9b6765128","user":{"login":"dato-code","id":10378005,"avatar_url":"https://avatars.githubusercontent.com/u/10378005?v=3","gravatar_id":"","url":"https://api.github.com/users/dato-code","html_url":"https://github.com/dato-code","followers_url":"https://api.github.com/users/dato-code/followers","following_url":"https://api.github.com/users/dato-code/following{/other_user}","gists_url":"https://api.github.com/users/dato-code/gists{/gist_id}","starred_url":"https://api.github.com/users/dato-code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dato-code/subscriptions","organizations_url":"https://api.github.com/users/dato-code/orgs","repos_url":"https://api.github.com/users/dato-code/repos","events_url":"https://api.github.com/users/dato-code/events{/privacy}","received_events_url":"https://api.github.com/users/dato-code/received_events","type":"Organization","site_admin":false},"repo":{"id":35519663,"name":"Dato-Predictive-Service-Client-Java","full_name":"dato-code/Dato-Predictive-Service-Client-Java","owner":{"login":"dato-code","id":10378005,"avatar_url":"https://avatars.githubusercontent.com/u/10378005?v=3","gravatar_id":"","url":"https://api.github.com/users/dato-code","html_url":"https://github.com/dato-code","followers_url":"https://api.github.com/users/dato-code/followers","following_url":"https://api.github.com/users/dato-code/following{/other_user}","gists_url":"https://api.github.com/users/dato-code/gists{/gist_id}","starred_url":"https://api.github.com/users/dato-code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dato-code/subscriptions","organizations_url":"https://api.github.com/users/dato-code/orgs","repos_url":"https://api.github.com/users/dato-code/repos","events_url":"https://api.github.com/users/dato-code/events{/privacy}","received_events_url":"https://api.github.com/users/dato-code/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dato-code/Dato-Predictive-Service-Client-Java","description":"Dato Predictive Service Java Client","fork":false,"url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java","forks_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/forks","keys_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/teams","hooks_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/hooks","issue_events_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/issues/events{/number}","events_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/events","assignees_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/assignees{/user}","branches_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/branches{/branch}","tags_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/tags","blobs_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/git/refs{/sha}","trees_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/statuses/{sha}","languages_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/languages","stargazers_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/stargazers","contributors_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/contributors","subscribers_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/subscribers","subscription_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/subscription","commits_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/commits{/sha}","git_commits_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/git/commits{/sha}","comments_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/comments{/number}","issue_comment_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/issues/comments{/number}","contents_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/contents/{+path}","compare_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/merges","archive_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/downloads","issues_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/issues{/number}","pulls_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/pulls{/number}","milestones_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/milestones{/number}","notifications_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/labels{/name}","releases_url":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/releases{/id}","created_at":"2015-05-13T00:32:58Z","updated_at":"2015-05-19T20:43:08Z","pushed_at":"2015-12-09T01:49:21Z","git_url":"git://github.com/dato-code/Dato-Predictive-Service-Client-Java.git","ssh_url":"git@github.com:dato-code/Dato-Predictive-Service-Client-Java.git","clone_url":"https://github.com/dato-code/Dato-Predictive-Service-Client-Java.git","svn_url":"https://github.com/dato-code/Dato-Predictive-Service-Client-Java","homepage":null,"size":157,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/pulls/3"},"html":{"href":"https://github.com/dato-code/Dato-Predictive-Service-Client-Java/pull/3"},"issue":{"href":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/issues/3"},"comments":{"href":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/dato-code/Dato-Predictive-Service-Client-Java/statuses/99dafc0b08e669d7e33d05324b57231034f331d0"}}}}