{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/product-mdm/pulls/comments/26915198","id":26915198,"diff_hunk":"@@ -0,0 +1,327 @@\n+/*\n+ * Copyright (c) 2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n+ * \n+ * WSO2 Inc. licenses this file to you under the Apache License,\n+ * Version 2.0 (the \"License\"); you may not use this file except\n+ * in compliance with the License.\n+ * You may obtain a copy of the License at\n+ * \n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ * \n+ * Unless required by applicable law or agreed to in writing,\n+ * software distributed under the License is distributed on an\n+ * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+ * KIND, either express or implied. See the License for the\n+ * specific language governing permissions and limitations\n+ * under the License.\n+ */\n+package org.wso2.mdm.agent.proxy;\n+\n+import android.util.Log;\n+\n+import org.apache.http.*;\n+import org.apache.http.client.ClientProtocolException;\n+import org.apache.http.client.HttpClient;\n+import org.apache.http.client.methods.HttpGet;\n+import org.apache.http.client.methods.HttpPost;\n+import org.apache.http.client.methods.HttpRequestBase;\n+import org.apache.http.conn.ClientConnectionManager;\n+import org.apache.http.conn.scheme.PlainSocketFactory;\n+import org.apache.http.conn.scheme.Scheme;\n+import org.apache.http.conn.scheme.SchemeRegistry;\n+import org.apache.http.conn.ssl.SSLSocketFactory;\n+import org.apache.http.entity.ByteArrayEntity;\n+import org.apache.http.entity.StringEntity;\n+import org.apache.http.impl.client.DefaultHttpClient;\n+import org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager;\n+import org.apache.http.params.BasicHttpParams;\n+import org.apache.http.params.HttpParams;\n+import org.apache.http.protocol.HTTP;\n+import org.json.JSONObject;\n+\n+import java.io.IOException;\n+import java.io.InputStream;\n+import java.io.InputStreamReader;\n+import java.io.Reader;\n+import java.io.UnsupportedEncodingException;\n+import java.security.KeyStore;\n+import java.util.HashMap;\n+import java.util.Iterator;\n+import java.util.Map;\n+import java.util.Map.Entry;\n+\n+/**\n+ * Handle network communication between SDK and authorization server\n+ */\n+public class ServerApiAccess {\n+\tprivate final static String TAG = \"ServerUtilities\";\n+\n+\t/**\n+\t * Enable SSL communication between client application and authorization\n+\t * server (if you have selfish sign certificate)\n+\t * @param in\n+\t * @param myTrustStorePassword\n+\t */\n+\n+\tpublic static String buildPayload(Map<String, String> params) {\n+\t\tif (params == null) {\n+\t\t\treturn null;\n+\t\t}\n+\t\tStringBuilder bodyBuilder = new StringBuilder();\n+\t\tIterator<Entry<String, String>> iterator = params.entrySet().iterator();\n+\t\twhile (iterator.hasNext()) {\n+\t\t\tEntry<String, String> param = iterator.next();\n+\t\t\tbodyBuilder.append(param.getKey()).append('=').append(param.getValue());\n+\t\t\tif (iterator.hasNext()) {\n+\t\t\t\tbodyBuilder.append('&');\n+\t\t\t}\n+\t\t}\n+\t\treturn bodyBuilder.toString();\n+\t}\n+\n+\tpublic static HttpRequestBase buildHeaders(HttpRequestBase httpRequestBase,\n+\t                                           Map<String, String> headers, String httpMethod) {\n+\t\tIterator<Entry<String, String>> iterator = headers.entrySet().iterator();\n+\t\twhile (iterator.hasNext()) {\n+\t\t\tEntry<String, String> header = iterator.next();\n+\t\t\thttpRequestBase.setHeader(header.getKey(), header.getValue());\n+\t\t}\n+\t\treturn httpRequestBase;\n+\t}\n+\n+\tpublic static Map<String, String> postData(APIUtilities apiUtilities,\n+\t                                           Map<String, String> headers) {\n+\t\tString httpMethod = apiUtilities.getHttpMethod();\n+\t\tString url = apiUtilities.getEndPoint();\n+\t\tJSONObject params = apiUtilities.getRequestParams();\n+\t\tMap<String, String> responseParams = new HashMap<String, String>();\n+\t\tHttpClient httpclient = getCertifiedHttpClient();\n+\n+\t\tif (httpMethod.equals(\"POST\")) {\n+\t\t\tHttpPost httpPost = new HttpPost(url);\n+\t\t\tif (params != null) {\n+\t\t\t\ttry {\n+\t\t\t\t\thttpPost.setEntity(new StringEntity(params.toString()));\n+\t\t\t\t} catch (UnsupportedEncodingException e) {\n+\t\t\t\t\te.printStackTrace();\n+\t\t\t\t}\n+\t\t\t} else {\n+\t\t\t\thttpPost.setEntity(null);\n+\t\t\t}\n+\t\t\tLog.e(\"url\", \"\" + url);\n+\t\t\tHttpPost httpPostWithHeaders = (HttpPost) buildHeaders(httpPost, headers, httpMethod);\n+\t\t\ttry {\n+\t\t\t\tHttpResponse response = httpclient.execute(httpPostWithHeaders);\n+\t\t\t\tString status = String.valueOf(response.getStatusLine().getStatusCode());\n+\t\t\t\tLog.d(TAG, status);\n+\t\t\t\tresponseParams.put(\"response\", getResponseBody(response));\n+\t\t\t\tresponseParams.put(\"status\", status);\n+\t\t\t\treturn responseParams;\n+\t\t\t} catch (ClientProtocolException e) {\n+\t\t\t\tLog.d(TAG, \"ClientProtocolException :\" + e.toString());\n+\t\t\t\treturn null;\n+\t\t\t} catch (IOException e) {\n+\t\t\t\tLog.d(TAG, e.toString());\n+\t\t\t\tresponseParams.put(\"response\", \"Internal Server Error\");\n+\t\t\t\tresponseParams.put(\"status\", \"500\");\n+\t\t\t\treturn responseParams;\n+\t\t\t}\n+\t\t} else if (httpMethod.equals(\"GET\")) {\n+\t\t\t// if(payload!=null){\n+\t\t\t// url = url+\"?\"+payload;\n+\t\t\t// }\n+\t\t\tHttpGet httpGet = new HttpGet(url);\n+\t\t\tHttpGet httpGetWithHeaders = (HttpGet) buildHeaders(httpGet, headers, httpMethod);\n+\t\t\tLog.d(TAG, httpGetWithHeaders.toString() + \" GET\");\n+\t\t\ttry {\n+\t\t\t\tHttpResponse response = httpclient.execute(httpGetWithHeaders);\n+\t\t\t\tresponseParams.put(\"response\", getResponseBody(response));\n+\t\t\t\tresponseParams.put(\"status\",\n+\t\t\t\t                   String.valueOf(response.getStatusLine().getStatusCode()));\n+\t\t\t\treturn responseParams;\n+\t\t\t} catch (ClientProtocolException e) {\n+\t\t\t\tLog.d(TAG, \"ClientProtocolException :\" + e.toString());\n+\t\t\t\treturn null;\n+\t\t\t} catch (IOException e) {\n+\t\t\t\tLog.d(TAG, e.toString());\n+\t\t\t\tresponseParams.put(\"response\", \"Internal Server Error\");\n+\t\t\t\tresponseParams.put(\"status\", \"500\");\n+\t\t\t\treturn responseParams;\n+\t\t\t}\n+\t\t}\n+\t\treturn null;\n+\t}\n+\n+\tpublic static Map<String, String> postDataAPI(APIUtilities apiUtilities,\n+\t                                              Map<String, String> headers) {\n+\t\tString httpMethod = apiUtilities.getHttpMethod();\n+\t\tString url = apiUtilities.getEndPoint();\n+\t\tMap<String, String> params = apiUtilities.getRequestParamsMap();\n+\n+\t\tMap<String, String> response_params = new HashMap<String, String>();\n+\t\tHttpClient httpclient = getCertifiedHttpClient();\n+\t\tString payload = buildPayload(params);\n+\n+\t\tif (httpMethod.equals(\"POST\")) {\n+\t\t\tHttpPost httpPost = new HttpPost(url);\n+\t\t\tLog.e(\"url\", \"\" + url);\n+\t\t\tHttpPost httpPostWithHeaders = (HttpPost) buildHeaders(httpPost, headers, httpMethod);\n+\t\t\tbyte[] postData = payload.getBytes();\n+\t\t\ttry {\n+\t\t\t\thttpPostWithHeaders.setEntity(new ByteArrayEntity(postData));\n+\t\t\t\tHttpResponse response = httpclient.execute(httpPostWithHeaders);\n+\t\t\t\tString status = String.valueOf(response.getStatusLine().getStatusCode());\n+\t\t\t\tLog.d(TAG, status);\n+\t\t\t\tresponse_params.put(\"response\", getResponseBody(response));\n+\t\t\t\tresponse_params.put(\"status\", status);\n+\t\t\t\treturn response_params;\n+\t\t\t} catch (ClientProtocolException e) {\n+\t\t\t\tLog.d(TAG, \"ClientProtocolException :\" + e.toString());\n+\t\t\t\treturn null;\n+\t\t\t} catch (IOException e) {\n+\t\t\t\tLog.d(TAG, e.toString());\n+\t\t\t\tresponse_params.put(\"response\", \"Internal Server Error\");\n+\t\t\t\tresponse_params.put(\"status\", \"500\");\n+\t\t\t\treturn response_params;\n+\t\t\t}\n+\t\t}\n+\t\treturn null;\n+\t}\n+\n+\tpublic static HttpClient getCertifiedHttpClient() {\n+\t\ttry {\n+\t\t\tHttpClient client = null;\n+\t\t\tif (Constants.SERVER_PROTOCOL.equalsIgnoreCase(\"https://\")) {\n+\t\t\t\tKeyStore localTrustStore = KeyStore.getInstance(\"BKS\");\n+\t\t\t\tInputStream in =\n+\t\t\t\t\t\tIdentityProxy.getInstance().getContext().getResources()\n+\t\t\t\t\t\t             .openRawResource(R.raw.emm_truststore);\n+\t\t\t\tlocalTrustStore.load(in, Constants.TRUSTSTORE_PASSWORD.toCharArray());\n+\n+\t\t\t\tSchemeRegistry schemeRegistry = new SchemeRegistry();\n+\t\t\t\tschemeRegistry.register(new Scheme(\"http\", PlainSocketFactory.getSocketFactory(),\n+\t\t\t\t                                   80));\n+\t\t\t\tSSLSocketFactory sslSocketFactory = new SSLSocketFactory(localTrustStore);\n+\t\t\t\tsslSocketFactory.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);\n+\t\t\t\tschemeRegistry.register(new Scheme(\"https\", sslSocketFactory, 443));\n+\t\t\t\tHttpParams params = new BasicHttpParams();\n+\t\t\t\tClientConnectionManager cm =\n+\t\t\t\t\t\tnew ThreadSafeClientConnManager(params, schemeRegistry);\n+\n+\t\t\t\tclient = new DefaultHttpClient(cm, params);\n+\n+\t\t\t} else {\n+\t\t\t\tclient = new DefaultHttpClient();\n+\t\t\t}\n+\t\t\treturn client;\n+\t\t} catch (Exception e) {\n+\t\t\tLog.d(TAG, e.toString());\n+\t\t\treturn null;\n+\t\t}\n+\t}\n+\n+\tpublic static String getResponseBody(HttpResponse response) {\n+\n+\t\tString response_text = null;\n+\t\tHttpEntity entity = null;\n+\t\ttry {\n+\t\t\tentity = response.getEntity();\n+\t\t\tresponse_text = getResponseBodyContent(entity);\n+\t\t} catch (ParseException e) {\n+\t\t\tLog.d(TAG, e.toString());\n+\t\t} catch (IOException e) {\n+\t\t\tif (entity != null) {\n+\t\t\t\ttry {\n+\t\t\t\t\tentity.consumeContent();\n+\t\t\t\t} catch (IOException e1) {\n+\t\t\t\t\tLog.d(TAG, e1.toString());\n+\t\t\t\t}\n+\t\t\t}\n+\t\t}\n+\t\treturn response_text;\n+\t}\n+\n+\tpublic static String getResponseBodyContent(final HttpEntity entity) throws IOException,\n+\t                                                                            ParseException {\n+\n+\t\tif (entity == null) {\n+\t\t\tthrow new IllegalArgumentException(\"HTTP entity may not be null\");\n+\t\t}\n+\n+\t\tInputStream instream = entity.getContent();\n+\n+\t\tif (instream == null) {\n+\t\t\treturn \"\";\n+\t\t}\n+\n+\t\tif (entity.getContentLength() > Integer.MAX_VALUE) {\n+\t\t\tthrow new IllegalArgumentException(\n+\n+\t\t\t\t\t\"HTTP entity too large to be buffered in memory\");","path":"modules/mobile-agents/android/client/plugins/IDPProxy/src/org/wso2/mdm/agent/proxy/ServerApiAccess.java","position":260,"original_position":260,"commit_id":"04f275d5e5d63a8144a7b33ab594147a2fb8fec8","original_commit_id":"04f275d5e5d63a8144a7b33ab594147a2fb8fec8","user":{"login":"prabathabey","id":6664125,"avatar_url":"https://avatars.githubusercontent.com/u/6664125?v=3","gravatar_id":"","url":"https://api.github.com/users/prabathabey","html_url":"https://github.com/prabathabey","followers_url":"https://api.github.com/users/prabathabey/followers","following_url":"https://api.github.com/users/prabathabey/following{/other_user}","gists_url":"https://api.github.com/users/prabathabey/gists{/gist_id}","starred_url":"https://api.github.com/users/prabathabey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prabathabey/subscriptions","organizations_url":"https://api.github.com/users/prabathabey/orgs","repos_url":"https://api.github.com/users/prabathabey/repos","events_url":"https://api.github.com/users/prabathabey/events{/privacy}","received_events_url":"https://api.github.com/users/prabathabey/received_events","type":"User","site_admin":false},"body":"Formatting issues.","created_at":"2015-03-23T05:46:08Z","updated_at":"2015-03-23T05:46:08Z","html_url":"https://github.com/wso2/product-mdm/pull/25#discussion_r26915198","pull_request_url":"https://api.github.com/repos/wso2/product-mdm/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/wso2/product-mdm/pulls/comments/26915198"},"html":{"href":"https://github.com/wso2/product-mdm/pull/25#discussion_r26915198"},"pull_request":{"href":"https://api.github.com/repos/wso2/product-mdm/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/product-mdm/pulls/25","id":30491953,"html_url":"https://github.com/wso2/product-mdm/pull/25","diff_url":"https://github.com/wso2/product-mdm/pull/25.diff","patch_url":"https://github.com/wso2/product-mdm/pull/25.patch","issue_url":"https://api.github.com/repos/wso2/product-mdm/issues/25","number":25,"state":"open","locked":false,"title":"CDM Android Agent code cleanup","user":{"login":"kasundananjaya","id":4506898,"avatar_url":"https://avatars.githubusercontent.com/u/4506898?v=3","gravatar_id":"","url":"https://api.github.com/users/kasundananjaya","html_url":"https://github.com/kasundananjaya","followers_url":"https://api.github.com/users/kasundananjaya/followers","following_url":"https://api.github.com/users/kasundananjaya/following{/other_user}","gists_url":"https://api.github.com/users/kasundananjaya/gists{/gist_id}","starred_url":"https://api.github.com/users/kasundananjaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasundananjaya/subscriptions","organizations_url":"https://api.github.com/users/kasundananjaya/orgs","repos_url":"https://api.github.com/users/kasundananjaya/repos","events_url":"https://api.github.com/users/kasundananjaya/events{/privacy}","received_events_url":"https://api.github.com/users/kasundananjaya/received_events","type":"User","site_admin":false},"body":"Cleaning up and formatting the CDM Android Agent code.","created_at":"2015-03-04T18:41:02Z","updated_at":"2015-03-23T05:46:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e98e51a4bdd0b642fa563f6252543b13b3dc3441","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wso2/product-mdm/pulls/25/commits","review_comments_url":"https://api.github.com/repos/wso2/product-mdm/pulls/25/comments","review_comment_url":"https://api.github.com/repos/wso2/product-mdm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/product-mdm/issues/25/comments","statuses_url":"https://api.github.com/repos/wso2/product-mdm/statuses/04f275d5e5d63a8144a7b33ab594147a2fb8fec8","head":{"label":"kasundananjaya:master","ref":"master","sha":"04f275d5e5d63a8144a7b33ab594147a2fb8fec8","user":{"login":"kasundananjaya","id":4506898,"avatar_url":"https://avatars.githubusercontent.com/u/4506898?v=3","gravatar_id":"","url":"https://api.github.com/users/kasundananjaya","html_url":"https://github.com/kasundananjaya","followers_url":"https://api.github.com/users/kasundananjaya/followers","following_url":"https://api.github.com/users/kasundananjaya/following{/other_user}","gists_url":"https://api.github.com/users/kasundananjaya/gists{/gist_id}","starred_url":"https://api.github.com/users/kasundananjaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasundananjaya/subscriptions","organizations_url":"https://api.github.com/users/kasundananjaya/orgs","repos_url":"https://api.github.com/users/kasundananjaya/repos","events_url":"https://api.github.com/users/kasundananjaya/events{/privacy}","received_events_url":"https://api.github.com/users/kasundananjaya/received_events","type":"User","site_admin":false},"repo":{"id":31051082,"name":"product-mdm","full_name":"kasundananjaya/product-mdm","owner":{"login":"kasundananjaya","id":4506898,"avatar_url":"https://avatars.githubusercontent.com/u/4506898?v=3","gravatar_id":"","url":"https://api.github.com/users/kasundananjaya","html_url":"https://github.com/kasundananjaya","followers_url":"https://api.github.com/users/kasundananjaya/followers","following_url":"https://api.github.com/users/kasundananjaya/following{/other_user}","gists_url":"https://api.github.com/users/kasundananjaya/gists{/gist_id}","starred_url":"https://api.github.com/users/kasundananjaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasundananjaya/subscriptions","organizations_url":"https://api.github.com/users/kasundananjaya/orgs","repos_url":"https://api.github.com/users/kasundananjaya/repos","events_url":"https://api.github.com/users/kasundananjaya/events{/privacy}","received_events_url":"https://api.github.com/users/kasundananjaya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kasundananjaya/product-mdm","description":"","fork":true,"url":"https://api.github.com/repos/kasundananjaya/product-mdm","forks_url":"https://api.github.com/repos/kasundananjaya/product-mdm/forks","keys_url":"https://api.github.com/repos/kasundananjaya/product-mdm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kasundananjaya/product-mdm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kasundananjaya/product-mdm/teams","hooks_url":"https://api.github.com/repos/kasundananjaya/product-mdm/hooks","issue_events_url":"https://api.github.com/repos/kasundananjaya/product-mdm/issues/events{/number}","events_url":"https://api.github.com/repos/kasundananjaya/product-mdm/events","assignees_url":"https://api.github.com/repos/kasundananjaya/product-mdm/assignees{/user}","branches_url":"https://api.github.com/repos/kasundananjaya/product-mdm/branches{/branch}","tags_url":"https://api.github.com/repos/kasundananjaya/product-mdm/tags","blobs_url":"https://api.github.com/repos/kasundananjaya/product-mdm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kasundananjaya/product-mdm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kasundananjaya/product-mdm/git/refs{/sha}","trees_url":"https://api.github.com/repos/kasundananjaya/product-mdm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kasundananjaya/product-mdm/statuses/{sha}","languages_url":"https://api.github.com/repos/kasundananjaya/product-mdm/languages","stargazers_url":"https://api.github.com/repos/kasundananjaya/product-mdm/stargazers","contributors_url":"https://api.github.com/repos/kasundananjaya/product-mdm/contributors","subscribers_url":"https://api.github.com/repos/kasundananjaya/product-mdm/subscribers","subscription_url":"https://api.github.com/repos/kasundananjaya/product-mdm/subscription","commits_url":"https://api.github.com/repos/kasundananjaya/product-mdm/commits{/sha}","git_commits_url":"https://api.github.com/repos/kasundananjaya/product-mdm/git/commits{/sha}","comments_url":"https://api.github.com/repos/kasundananjaya/product-mdm/comments{/number}","issue_comment_url":"https://api.github.com/repos/kasundananjaya/product-mdm/issues/comments{/number}","contents_url":"https://api.github.com/repos/kasundananjaya/product-mdm/contents/{+path}","compare_url":"https://api.github.com/repos/kasundananjaya/product-mdm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kasundananjaya/product-mdm/merges","archive_url":"https://api.github.com/repos/kasundananjaya/product-mdm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kasundananjaya/product-mdm/downloads","issues_url":"https://api.github.com/repos/kasundananjaya/product-mdm/issues{/number}","pulls_url":"https://api.github.com/repos/kasundananjaya/product-mdm/pulls{/number}","milestones_url":"https://api.github.com/repos/kasundananjaya/product-mdm/milestones{/number}","notifications_url":"https://api.github.com/repos/kasundananjaya/product-mdm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kasundananjaya/product-mdm/labels{/name}","releases_url":"https://api.github.com/repos/kasundananjaya/product-mdm/releases{/id}","created_at":"2015-02-20T04:34:13Z","updated_at":"2015-03-04T18:43:32Z","pushed_at":"2015-03-04T18:43:32Z","git_url":"git://github.com/kasundananjaya/product-mdm.git","ssh_url":"git@github.com:kasundananjaya/product-mdm.git","clone_url":"https://github.com/kasundananjaya/product-mdm.git","svn_url":"https://github.com/kasundananjaya/product-mdm","homepage":null,"size":9927,"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":"wso2:master","ref":"master","sha":"d40ab7361bd415cb533ed7b4dce92a55db28cbe4","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":29459213,"name":"product-mdm","full_name":"wso2/product-mdm","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/product-mdm","description":"","fork":false,"url":"https://api.github.com/repos/wso2/product-mdm","forks_url":"https://api.github.com/repos/wso2/product-mdm/forks","keys_url":"https://api.github.com/repos/wso2/product-mdm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/product-mdm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/product-mdm/teams","hooks_url":"https://api.github.com/repos/wso2/product-mdm/hooks","issue_events_url":"https://api.github.com/repos/wso2/product-mdm/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/product-mdm/events","assignees_url":"https://api.github.com/repos/wso2/product-mdm/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/product-mdm/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/product-mdm/tags","blobs_url":"https://api.github.com/repos/wso2/product-mdm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/product-mdm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/product-mdm/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/product-mdm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/product-mdm/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/product-mdm/languages","stargazers_url":"https://api.github.com/repos/wso2/product-mdm/stargazers","contributors_url":"https://api.github.com/repos/wso2/product-mdm/contributors","subscribers_url":"https://api.github.com/repos/wso2/product-mdm/subscribers","subscription_url":"https://api.github.com/repos/wso2/product-mdm/subscription","commits_url":"https://api.github.com/repos/wso2/product-mdm/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/product-mdm/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/product-mdm/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/product-mdm/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/product-mdm/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/product-mdm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/product-mdm/merges","archive_url":"https://api.github.com/repos/wso2/product-mdm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/product-mdm/downloads","issues_url":"https://api.github.com/repos/wso2/product-mdm/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/product-mdm/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/product-mdm/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/product-mdm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/product-mdm/labels{/name}","releases_url":"https://api.github.com/repos/wso2/product-mdm/releases{/id}","created_at":"2015-01-19T07:36:01Z","updated_at":"2015-03-23T05:13:59Z","pushed_at":"2015-03-23T05:13:59Z","git_url":"git://github.com/wso2/product-mdm.git","ssh_url":"git@github.com:wso2/product-mdm.git","clone_url":"https://github.com/wso2/product-mdm.git","svn_url":"https://github.com/wso2/product-mdm","homepage":null,"size":11063,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":1,"forks":8,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/product-mdm/pulls/25"},"html":{"href":"https://github.com/wso2/product-mdm/pull/25"},"issue":{"href":"https://api.github.com/repos/wso2/product-mdm/issues/25"},"comments":{"href":"https://api.github.com/repos/wso2/product-mdm/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/product-mdm/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/product-mdm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/product-mdm/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/product-mdm/statuses/04f275d5e5d63a8144a7b33ab594147a2fb8fec8"}}}}