{"action":"created","comment":{"url":"https://api.github.com/repos/coolsms/java-sdk/pulls/comments/57405684","id":57405684,"diff_hunk":"@@ -0,0 +1,150 @@\n+package net.nurigo.java_sdk.api;\n+\n+import java.util.HashMap;\n+\n+import net.nurigo.java_sdk.Coolsms;\n+import net.nurigo.java_sdk.exceptions.CoolsmsException;\n+import net.nurigo.java_sdk.exceptions.CoolsmsSDKException;\n+\n+import org.json.simple.JSONObject;\n+\n+public class Image extends Coolsms {\t\n+\t/**\n+\t * @brief constructor\n+\t */\t\n+\tpublic Image(String api_key, String api_secret) {\n+\t\tsuper(api_key, api_secret);\t\t\n+\t}\n+\n+\t/**\n+\t * @brief get image list( HTTP Method GET )\n+\t * @param hashmap<string, string> params {\n+     *   @param integer offset [optional]\n+     *   @param integer limit [optional] }\n+\t * @return JSONObject\n+\t * @throws CoolsmsException\n+\t */\n+\tpublic JSONObject getImageList(HashMap<String, String> params)  throws CoolsmsException {\t\t\n+\t\treturn request(\"image_list\", params);\n+\t}\n+\t\n+\t/**\n+\t * @brief get image info ( HTTP Method GET )\n+     * @param string image_id [required]\n+\t * @return JSONObject\n+\t * @throws CoolsmsException\n+\t */\n+\tpublic JSONObject getImageInfo(String image_id) throws CoolsmsException {\t\t\n+\t\tHashMap<String, String> params = new HashMap<String, String>();\n+\t\tString resource = \"image/\" + image_id;\n+        return request(resource, params);\n+\t}\n+\n+\t/**\n+\t * @brief upload image ( HTTP Method POST )\n+\t * @param hashmap<string, string> params {\n+     *   @param string image [required]\n+     *   @param string encoding [optional] }\n+\t * @return JSONobject\n+\t * @throws CoolsmsException\n+\t */\n+\tpublic JSONObject uploadImage(HashMap<String, String> params) throws CoolsmsException {\n+\t\tif (!checkString(params.get(\"image\"))) throw new CoolsmsSDKException(\"image is required\", 202);\t\t\n+\t\treturn postRequest(\"upload_image\", params);\t\t\n+\t}\n+\n+\t/**\n+\t * @brief delete images ( HTTP Method POST )\n+     * @param string $image_ids [required]\n+\t * @return JSONObject\n+\t * @throws CoolsmsException \n+\t */\n+\tpublic JSONObject getGroupInfo(String image_ids) throws CoolsmsException {\t\t","path":"api/Image.java","position":null,"original_position":62,"commit_id":"935624290091a323afff16b3a5ca5fa424a23a93","original_commit_id":"b91aa1c475a8c9b107b4f87a97a0b37aabe8ac72","user":{"login":"wileyday","id":11208480,"avatar_url":"https://avatars.githubusercontent.com/u/11208480?v=3","gravatar_id":"","url":"https://api.github.com/users/wileyday","html_url":"https://github.com/wileyday","followers_url":"https://api.github.com/users/wileyday/followers","following_url":"https://api.github.com/users/wileyday/following{/other_user}","gists_url":"https://api.github.com/users/wileyday/gists{/gist_id}","starred_url":"https://api.github.com/users/wileyday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wileyday/subscriptions","organizations_url":"https://api.github.com/users/wileyday/orgs","repos_url":"https://api.github.com/users/wileyday/repos","events_url":"https://api.github.com/users/wileyday/events{/privacy}","received_events_url":"https://api.github.com/users/wileyday/received_events","type":"User","site_admin":false},"body":"이것은 그룹메시지의 것이네요.","created_at":"2016-03-24T23:57:25Z","updated_at":"2016-03-24T23:57:25Z","html_url":"https://github.com/coolsms/java-sdk/pull/4#discussion_r57405684","pull_request_url":"https://api.github.com/repos/coolsms/java-sdk/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/coolsms/java-sdk/pulls/comments/57405684"},"html":{"href":"https://github.com/coolsms/java-sdk/pull/4#discussion_r57405684"},"pull_request":{"href":"https://api.github.com/repos/coolsms/java-sdk/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/coolsms/java-sdk/pulls/4","id":63999970,"html_url":"https://github.com/coolsms/java-sdk/pull/4","diff_url":"https://github.com/coolsms/java-sdk/pull/4.diff","patch_url":"https://github.com/coolsms/java-sdk/pull/4.patch","issue_url":"https://api.github.com/repos/coolsms/java-sdk/issues/4","number":4,"state":"open","locked":false,"title":"Feature initialize","user":{"login":"hosysy","id":4575603,"avatar_url":"https://avatars.githubusercontent.com/u/4575603?v=3","gravatar_id":"","url":"https://api.github.com/users/hosysy","html_url":"https://github.com/hosysy","followers_url":"https://api.github.com/users/hosysy/followers","following_url":"https://api.github.com/users/hosysy/following{/other_user}","gists_url":"https://api.github.com/users/hosysy/gists{/gist_id}","starred_url":"https://api.github.com/users/hosysy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hosysy/subscriptions","organizations_url":"https://api.github.com/users/hosysy/orgs","repos_url":"https://api.github.com/users/hosysy/repos","events_url":"https://api.github.com/users/hosysy/events{/privacy}","received_events_url":"https://api.github.com/users/hosysy/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-24T07:51:04Z","updated_at":"2016-03-24T23:57:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a28d01dffac0fe4eaa61e9ad3884d2380f17eac","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/coolsms/java-sdk/pulls/4/commits","review_comments_url":"https://api.github.com/repos/coolsms/java-sdk/pulls/4/comments","review_comment_url":"https://api.github.com/repos/coolsms/java-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coolsms/java-sdk/issues/4/comments","statuses_url":"https://api.github.com/repos/coolsms/java-sdk/statuses/935624290091a323afff16b3a5ca5fa424a23a93","head":{"label":"coolsms:feature-initialize","ref":"feature-initialize","sha":"935624290091a323afff16b3a5ca5fa424a23a93","user":{"login":"coolsms","id":6140493,"avatar_url":"https://avatars.githubusercontent.com/u/6140493?v=3","gravatar_id":"","url":"https://api.github.com/users/coolsms","html_url":"https://github.com/coolsms","followers_url":"https://api.github.com/users/coolsms/followers","following_url":"https://api.github.com/users/coolsms/following{/other_user}","gists_url":"https://api.github.com/users/coolsms/gists{/gist_id}","starred_url":"https://api.github.com/users/coolsms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolsms/subscriptions","organizations_url":"https://api.github.com/users/coolsms/orgs","repos_url":"https://api.github.com/users/coolsms/repos","events_url":"https://api.github.com/users/coolsms/events{/privacy}","received_events_url":"https://api.github.com/users/coolsms/received_events","type":"User","site_admin":false},"repo":{"id":41084052,"name":"java-sdk","full_name":"coolsms/java-sdk","owner":{"login":"coolsms","id":6140493,"avatar_url":"https://avatars.githubusercontent.com/u/6140493?v=3","gravatar_id":"","url":"https://api.github.com/users/coolsms","html_url":"https://github.com/coolsms","followers_url":"https://api.github.com/users/coolsms/followers","following_url":"https://api.github.com/users/coolsms/following{/other_user}","gists_url":"https://api.github.com/users/coolsms/gists{/gist_id}","starred_url":"https://api.github.com/users/coolsms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolsms/subscriptions","organizations_url":"https://api.github.com/users/coolsms/orgs","repos_url":"https://api.github.com/users/coolsms/repos","events_url":"https://api.github.com/users/coolsms/events{/privacy}","received_events_url":"https://api.github.com/users/coolsms/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/coolsms/java-sdk","description":"","fork":false,"url":"https://api.github.com/repos/coolsms/java-sdk","forks_url":"https://api.github.com/repos/coolsms/java-sdk/forks","keys_url":"https://api.github.com/repos/coolsms/java-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coolsms/java-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coolsms/java-sdk/teams","hooks_url":"https://api.github.com/repos/coolsms/java-sdk/hooks","issue_events_url":"https://api.github.com/repos/coolsms/java-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/coolsms/java-sdk/events","assignees_url":"https://api.github.com/repos/coolsms/java-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/coolsms/java-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/coolsms/java-sdk/tags","blobs_url":"https://api.github.com/repos/coolsms/java-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coolsms/java-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coolsms/java-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/coolsms/java-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coolsms/java-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/coolsms/java-sdk/languages","stargazers_url":"https://api.github.com/repos/coolsms/java-sdk/stargazers","contributors_url":"https://api.github.com/repos/coolsms/java-sdk/contributors","subscribers_url":"https://api.github.com/repos/coolsms/java-sdk/subscribers","subscription_url":"https://api.github.com/repos/coolsms/java-sdk/subscription","commits_url":"https://api.github.com/repos/coolsms/java-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/coolsms/java-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/coolsms/java-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/coolsms/java-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/coolsms/java-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/coolsms/java-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coolsms/java-sdk/merges","archive_url":"https://api.github.com/repos/coolsms/java-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coolsms/java-sdk/downloads","issues_url":"https://api.github.com/repos/coolsms/java-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/coolsms/java-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/coolsms/java-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/coolsms/java-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coolsms/java-sdk/labels{/name}","releases_url":"https://api.github.com/repos/coolsms/java-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/coolsms/java-sdk/deployments","created_at":"2015-08-20T08:20:12Z","updated_at":"2015-08-20T08:22:19Z","pushed_at":"2016-03-24T07:51:05Z","git_url":"git://github.com/coolsms/java-sdk.git","ssh_url":"git@github.com:coolsms/java-sdk.git","clone_url":"https://github.com/coolsms/java-sdk.git","svn_url":"https://github.com/coolsms/java-sdk","homepage":null,"size":57,"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"}},"base":{"label":"coolsms:develop","ref":"develop","sha":"2e574e5f692c565d6eb84a60b3c60cd6524afed0","user":{"login":"coolsms","id":6140493,"avatar_url":"https://avatars.githubusercontent.com/u/6140493?v=3","gravatar_id":"","url":"https://api.github.com/users/coolsms","html_url":"https://github.com/coolsms","followers_url":"https://api.github.com/users/coolsms/followers","following_url":"https://api.github.com/users/coolsms/following{/other_user}","gists_url":"https://api.github.com/users/coolsms/gists{/gist_id}","starred_url":"https://api.github.com/users/coolsms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolsms/subscriptions","organizations_url":"https://api.github.com/users/coolsms/orgs","repos_url":"https://api.github.com/users/coolsms/repos","events_url":"https://api.github.com/users/coolsms/events{/privacy}","received_events_url":"https://api.github.com/users/coolsms/received_events","type":"User","site_admin":false},"repo":{"id":41084052,"name":"java-sdk","full_name":"coolsms/java-sdk","owner":{"login":"coolsms","id":6140493,"avatar_url":"https://avatars.githubusercontent.com/u/6140493?v=3","gravatar_id":"","url":"https://api.github.com/users/coolsms","html_url":"https://github.com/coolsms","followers_url":"https://api.github.com/users/coolsms/followers","following_url":"https://api.github.com/users/coolsms/following{/other_user}","gists_url":"https://api.github.com/users/coolsms/gists{/gist_id}","starred_url":"https://api.github.com/users/coolsms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolsms/subscriptions","organizations_url":"https://api.github.com/users/coolsms/orgs","repos_url":"https://api.github.com/users/coolsms/repos","events_url":"https://api.github.com/users/coolsms/events{/privacy}","received_events_url":"https://api.github.com/users/coolsms/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/coolsms/java-sdk","description":"","fork":false,"url":"https://api.github.com/repos/coolsms/java-sdk","forks_url":"https://api.github.com/repos/coolsms/java-sdk/forks","keys_url":"https://api.github.com/repos/coolsms/java-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coolsms/java-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coolsms/java-sdk/teams","hooks_url":"https://api.github.com/repos/coolsms/java-sdk/hooks","issue_events_url":"https://api.github.com/repos/coolsms/java-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/coolsms/java-sdk/events","assignees_url":"https://api.github.com/repos/coolsms/java-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/coolsms/java-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/coolsms/java-sdk/tags","blobs_url":"https://api.github.com/repos/coolsms/java-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coolsms/java-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coolsms/java-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/coolsms/java-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coolsms/java-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/coolsms/java-sdk/languages","stargazers_url":"https://api.github.com/repos/coolsms/java-sdk/stargazers","contributors_url":"https://api.github.com/repos/coolsms/java-sdk/contributors","subscribers_url":"https://api.github.com/repos/coolsms/java-sdk/subscribers","subscription_url":"https://api.github.com/repos/coolsms/java-sdk/subscription","commits_url":"https://api.github.com/repos/coolsms/java-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/coolsms/java-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/coolsms/java-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/coolsms/java-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/coolsms/java-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/coolsms/java-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coolsms/java-sdk/merges","archive_url":"https://api.github.com/repos/coolsms/java-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coolsms/java-sdk/downloads","issues_url":"https://api.github.com/repos/coolsms/java-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/coolsms/java-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/coolsms/java-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/coolsms/java-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coolsms/java-sdk/labels{/name}","releases_url":"https://api.github.com/repos/coolsms/java-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/coolsms/java-sdk/deployments","created_at":"2015-08-20T08:20:12Z","updated_at":"2015-08-20T08:22:19Z","pushed_at":"2016-03-24T07:51:05Z","git_url":"git://github.com/coolsms/java-sdk.git","ssh_url":"git@github.com:coolsms/java-sdk.git","clone_url":"https://github.com/coolsms/java-sdk.git","svn_url":"https://github.com/coolsms/java-sdk","homepage":null,"size":57,"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/coolsms/java-sdk/pulls/4"},"html":{"href":"https://github.com/coolsms/java-sdk/pull/4"},"issue":{"href":"https://api.github.com/repos/coolsms/java-sdk/issues/4"},"comments":{"href":"https://api.github.com/repos/coolsms/java-sdk/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/coolsms/java-sdk/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/coolsms/java-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coolsms/java-sdk/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/coolsms/java-sdk/statuses/935624290091a323afff16b3a5ca5fa424a23a93"}}}}