{"action":"created","comment":{"url":"https://api.github.com/repos/omise/omise-php/pulls/comments/77570925","id":77570925,"diff_hunk":"@@ -7,265 +7,307 @@\n define('OMISE_API_URL', 'https://api.omise.co/');\n define('OMISE_VAULT_URL', 'https://vault.omise.co/');\n \n-class OmiseApiResource extends OmiseObject {\n-  // Request methods\n-  const REQUEST_GET = 'GET';\n-  const REQUEST_POST = 'POST';\n-  const REQUEST_DELETE = 'DELETE';\n-  const REQUEST_PATCH = 'PATCH';\n-\n-  // Timeout settings\n-  private $OMISE_CONNECTTIMEOUT = 30;\n-  private $OMISE_TIMEOUT = 60;\n-\n-  /**\n-   * Returns an instance of the class given in $clazz or raise an error.\n-   * @param string $clazz\n-   * @param string $publickey\n-   * @param string $secretkey\n-   * @throws Exception\n-   * @return OmiseResource\n-   */\n-  protected static function getInstance($clazz, $publickey = null, $secretkey = null) {\n-    if(class_exists($clazz)) {\n-      return new $clazz($publickey, $secretkey);\n-    } else {\n-      throw new Exception('Undefined class.');\n+class OmiseApiResource extends OmiseObject\n+{\n+    // Request methods\n+    const REQUEST_GET = 'GET';\n+    const REQUEST_POST = 'POST';\n+    const REQUEST_DELETE = 'DELETE';\n+    const REQUEST_PATCH = 'PATCH';\n+\n+    // Timeout settings\n+    private $OMISE_CONNECTTIMEOUT = 30;\n+    private $OMISE_TIMEOUT = 60;\n+\n+    /**\n+     * Returns an instance of the class given in $clazz or raise an error.\n+     *\n+     * @param  string $clazz\n+     * @param  string $publickey\n+     * @param  string $secretkey\n+     *\n+     * @throws Exception\n+     *\n+     * @return OmiseResource\n+     */\n+    protected static function getInstance($clazz, $publickey = null, $secretkey = null)\n+    {\n+        if (class_exists($clazz)) {\n+            return new $clazz($publickey, $secretkey);\n+        }\n+\n+        throw new Exception('Undefined class.');\n     }\n-  }\n-\n-  /**\n-   * Retrieves the resource.\n-   * @param string $clazz\n-   * @param string $publickey\n-   * @param string $secretkey\n-   * @return OmiseAccount|OmiseBalance|OmiseCharge|OmiseCustomer|OmiseToken|OmiseTransaction|OmiseTransfer\n-   * @throws Exception|OmiseException\n-   */\n-  protected static function g_retrieve($clazz, $url, $publickey = null, $secretkey = null) {\n-    $resource = call_user_func(array($clazz, 'getInstance'), $clazz, $publickey, $secretkey);\n-    $result = $resource->execute($url, self::REQUEST_GET, $resource->getResourceKey());\n-    $resource->refresh($result);\n-\n-    return $resource;\n-  }\n-\n-  /**\n-   * Creates the resource with given parameters.in an associative array.\n-   * @param string $clazz\n-   * @param string $url\n-   * @param array $params\n-   * @param string $publickey\n-   * @param string $secretkey\n-   * @return OmiseAccount|OmiseBalance|OmiseCharge|OmiseCustomer|OmiseToken|OmiseTransaction|OmiseTransfer\n-   * @throws Exception|OmiseException\n-   */\n-  protected static function g_create($clazz, $url, $params, $publickey = null, $secretkey = null) {\n-    $resource = call_user_func(array($clazz, 'getInstance'), $clazz, $publickey, $secretkey);\n-    $result = $resource->execute($url, self::REQUEST_POST, $resource->getResourceKey(), $params);\n-    $resource->refresh($result);\n-\n-    return $resource;\n-  }\n-\n-  /**\n-   * Updates the resource with the given parameters in an associative array.\n-   * @param string $url\n-   * @param array $params\n-   * @throws Exception|OmiseException\n-   */\n-  protected function g_update($url, $params) {\n-    $result = $this->execute($url, self::REQUEST_PATCH, $this->getResourceKey(), $params);\n-    $this->refresh($result);\n-  }\n-\n-  /**\n-   * Destroys the resource.\n-   * @param string $url\n-   * @return OmiseApiResource\n-   * @throws Exception|OmiseException\n-   */\n-  protected function g_destroy($url) {\n-    $result = $this->execute($url, self::REQUEST_DELETE, $this->getResourceKey());\n-    $this->refresh($result, true);\n-  }\n-\n-  /**\n-   * Reloads the resource with latest data.\n-   * @param string $url\n-   * @throws Exception|OmiseException\n-   */\n-  protected function g_reload($url) {\n-    $result = $this->execute($url, self::REQUEST_GET, $this->getResourceKey());\n-    $this->refresh($result);\n-  }\n-\n-  /**\n-   * Makes a request and returns a decoded JSON data as an associative array.\n-   * @param string $url\n-   * @param string $requestMethod\n-   * @param array $params\n-   * @throws OmiseException\n-   * @return array\n-   */\n-  protected function execute($url, $requestMethod, $key, $params = null) {\n-\n-    // If this class is execute by phpunit > get test mode.\n-    if (preg_match('/phpunit/', $_SERVER['SCRIPT_NAME'])) {\n-      $result = $this->_executeTest($url, $requestMethod, $key, $params);\n-    } else {\n-      $result = $this->_executeCurl($url, $requestMethod, $key, $params);\n-    }\n-\n-    // Decode the JSON response as an associative array.\n-    $array = json_decode($result, true);\n-\n-    // If response is invalid or not a JSON.\n-    if(count($array) === 0 || !isset($array['object'])) throw new Exception('Unknown error. (Bad Response)');\n-\n-    // If response is an error object.\n-    if($array['object'] === 'error') throw OmiseException::getInstance($array);\n-\n-    return $array;\n-  }\n \n-  /**\n-   * @param string $url\n-   * @param string $requestMethod\n-   * @param array $params\n-   * @throws OmiseException\n-   * @return string\n-   */\n-  private function _executeCurl($url, $requestMethod, $key, $params = null) {\n-    $ch = curl_init($url);\n-\n-    curl_setopt_array($ch, $this->genOptions($requestMethod, $key.':', $params));\n-\n-    // Make a request or thrown an exception.\n-    if(($result = curl_exec($ch)) === false) {\n-      $error = curl_error($ch);\n-      curl_close($ch);\n-\n-      throw new Exception($error);\n+    /**\n+     * Retrieves the resource.\n+     *\n+     * @param  string $clazz\n+     * @param  string $publickey\n+     * @param  string $secretkey\n+     *\n+     * @throws Exception|OmiseException\n+     *\n+     * @return OmiseAccount|OmiseBalance|OmiseCharge|OmiseCustomer|OmiseToken|OmiseTransaction|OmiseTransfer\n+     */\n+    protected static function g_retrieve($clazz, $url, $publickey = null, $secretkey = null)\n+    {\n+        $resource = call_user_func(array($clazz, 'getInstance'), $clazz, $publickey, $secretkey);\n+        $result   = $resource->execute($url, self::REQUEST_GET, $resource->getResourceKey());\n+        $resource->refresh($result);\n+\n+        return $resource;\n     }\n \n-    // Close.\n-    curl_close($ch);\n-\n-    return $result;\n-  }\n-\n-  /**\n-   * @param string $url\n-   * @param string $requestMethod\n-   * @param array $params\n-   * @throws OmiseException\n-   * @return string\n-   */\n-  private function _executeTest($url, $requestMethod, $key, $params = null) {\n-    // Remove Http, Https protocal from $url (string).\n-    $request_url = preg_replace('#^(http|https)://#', '', $url);\n-\n-    // Remove slash if it had in last letter.\n-    $request_url = rtrim($request_url, '/');\n+    /**\n+     * Creates the resource with given parameters.in an associative array.\n+     *\n+     * @param  string $clazz\n+     * @param  string $url\n+     * @param  array  $params\n+     * @param  string $publickey\n+     * @param  string $secretkey\n+     *\n+     * @throws Exception|OmiseException\n+     *\n+     * @return OmiseAccount|OmiseBalance|OmiseCharge|OmiseCustomer|OmiseToken|OmiseTransaction|OmiseTransfer\n+     */\n+    protected static function g_create($clazz, $url, $params, $publickey = null, $secretkey = null)\n+    {\n+        $resource = call_user_func(array($clazz, 'getInstance'), $clazz, $publickey, $secretkey);\n+        $result   = $resource->execute($url, self::REQUEST_POST, $resource->getResourceKey(), $params);\n+        $resource->refresh($result);\n+\n+        return $resource;\n+    }\n \n-    // Finally.\n-    $request_url = dirname(__FILE__).'/../../../tests/fixtures/'.$request_url.'-'.strtolower($requestMethod).'.json';\n+    /**\n+     * Updates the resource with the given parameters in an associative array.\n+     *\n+     * @param  string $url\n+     * @param  array  $params\n+     *\n+     * @throws Exception|OmiseException\n+     */\n+    protected function g_update($url, $params)\n+    {\n+        $result = $this->execute($url, self::REQUEST_PATCH, $this->getResourceKey(), $params);\n+        $this->refresh($result);\n+    }\n \n-    // Make a request from Curl if json file was not exists.\n-    if (!file_exists($request_url)) {\n+    /**\n+     * Destroys the resource.\n+     *\n+     * @param  string $url\n+     *\n+     * @throws Exception|OmiseException\n+     *\n+     * @return OmiseApiResource\n+     */\n+    protected function g_destroy($url)\n+    {\n+        $result = $this->execute($url, self::REQUEST_DELETE, $this->getResourceKey());\n+        $this->refresh($result, true);\n+    }\n \n-      // Get a directory that's file should contain.\n-      $request_dir = explode('/', $request_url);\n-      unset($request_dir[count($request_dir) - 1]);\n-      $request_dir = implode('/', $request_dir);\n+    /**\n+     * Reloads the resource with latest data.\n+     *\n+     * @param  string $url\n+     *\n+     * @throws Exception|OmiseException\n+     */\n+    protected function g_reload($url)\n+    {\n+        $result = $this->execute($url, self::REQUEST_GET, $this->getResourceKey());\n+        $this->refresh($result);\n+    }\n \n-      // Create directory if it not exists.\n-      if (!file_exists($request_dir)) {\n-        mkdir($request_dir, 0777, true);\n-      }\n+    /**\n+     * Makes a request and returns a decoded JSON data as an associative array.\n+     *\n+     * @param  string $url\n+     * @param  string $requestMethod\n+     * @param  array  $params\n+     *\n+     * @throws OmiseException\n+     *\n+     * @return array\n+     */\n+    protected function execute($url, $requestMethod, $key, $params = null)\n+    {\n+        // If this class is execute by phpunit > get test mode.\n+        if (preg_match('/phpunit/', $_SERVER['SCRIPT_NAME'])) {\n+            $result = $this->_executeTest($url, $requestMethod, $key, $params);\n+        } else {\n+            $result = $this->_executeCurl($url, $requestMethod, $key, $params);\n+        }\n+\n+        // Decode the JSON response as an associative array.\n+        $array = json_decode($result, true);\n+\n+        // If response is invalid or not a JSON.\n+        if (count($array) === 0 || ! isset($array['object']))","path":"lib/omise/res/OmiseApiResource.php","position":313,"original_position":313,"commit_id":"d2cda74ebb5192241e094e9e6bca3d32e7ca1f31","original_commit_id":"d2cda74ebb5192241e094e9e6bca3d32e7ca1f31","user":{"login":"guzzilar","id":2154669,"avatar_url":"https://avatars.githubusercontent.com/u/2154669?v=3","gravatar_id":"","url":"https://api.github.com/users/guzzilar","html_url":"https://github.com/guzzilar","followers_url":"https://api.github.com/users/guzzilar/followers","following_url":"https://api.github.com/users/guzzilar/following{/other_user}","gists_url":"https://api.github.com/users/guzzilar/gists{/gist_id}","starred_url":"https://api.github.com/users/guzzilar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guzzilar/subscriptions","organizations_url":"https://api.github.com/users/guzzilar/orgs","repos_url":"https://api.github.com/users/guzzilar/repos","events_url":"https://api.github.com/users/guzzilar/events{/privacy}","received_events_url":"https://api.github.com/users/guzzilar/received_events","type":"User","site_admin":false},"body":"@nimid you meant, change\r\n```php\r\nif (count($array) === 0 || ! isset($array['object']))\r\n    throw new Exception('Unknown error. (Bad Response)');\r\n```\r\nto\r\n```php\r\nif (count($array) === 0 || ! isset($array['object'])) {\r\n    throw new Exception('Unknown error. (Bad Response)');\r\n}\r\n```\r\n?","created_at":"2016-09-06T04:02:59Z","updated_at":"2016-09-06T04:02:59Z","html_url":"https://github.com/omise/omise-php/pull/37#discussion_r77570925","pull_request_url":"https://api.github.com/repos/omise/omise-php/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/omise/omise-php/pulls/comments/77570925"},"html":{"href":"https://github.com/omise/omise-php/pull/37#discussion_r77570925"},"pull_request":{"href":"https://api.github.com/repos/omise/omise-php/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/omise/omise-php/pulls/37","id":83978239,"html_url":"https://github.com/omise/omise-php/pull/37","diff_url":"https://github.com/omise/omise-php/pull/37.diff","patch_url":"https://github.com/omise/omise-php/pull/37.patch","issue_url":"https://api.github.com/repos/omise/omise-php/issues/37","number":37,"state":"open","locked":false,"title":"Revise PHP code style following by PSR-2 CSG rules.","user":{"login":"guzzilar","id":2154669,"avatar_url":"https://avatars.githubusercontent.com/u/2154669?v=3","gravatar_id":"","url":"https://api.github.com/users/guzzilar","html_url":"https://github.com/guzzilar","followers_url":"https://api.github.com/users/guzzilar/followers","following_url":"https://api.github.com/users/guzzilar/following{/other_user}","gists_url":"https://api.github.com/users/guzzilar/gists{/gist_id}","starred_url":"https://api.github.com/users/guzzilar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guzzilar/subscriptions","organizations_url":"https://api.github.com/users/guzzilar/orgs","repos_url":"https://api.github.com/users/guzzilar/repos","events_url":"https://api.github.com/users/guzzilar/events{/privacy}","received_events_url":"https://api.github.com/users/guzzilar/received_events","type":"User","site_admin":false},"body":"**1. Objective reason**\r\n\r\nThis PR's focusing on revise PHP code style by following the PSR-2 Coding Style Guide's rules only.\r\nref: http://www.php-fig.org/psr/psr-2\r\n\r\n**2. Description of change**\r\n\r\nBecause this PR is only about update code style and LOC & Code Diff would totally hard to follow/review.\r\nSo, I decided to separate 1 commit per 1 file to make it (a bit) easy to follow the lines & review.\r\n\r\n> note: Total file changed: 18 files\r\n\r\n- 💄 code styling, lib/omise/OmiseAccount          3566971\r\n- 💄 code styling, lib/omise/OmiseBalance          2644834\r\n- 💄 code styling, lib/omise/OmiseCard         8858cb5\r\n- 💄 code styling, lib/omise/OmiseCardList         b6d822f\r\n- 💄 code styling, lib/omise/OmiseCharge           ac21fa9\r\n- 💄 code styling, lib/omise/OmiseCustomer         21e2256\r\n- 💄 code styling, lib/omise/OmiseDispute          b778c30\r\n- 💄 code styling, lib/omise/OmiseRecipient            9123b15\r\n- 💄 code styling, lib/omise/OmiseRefund           67b0b4c\r\n- 💄 code styling, lib/omise/OmiseRefundList           3a792d5\r\n- 💄 code styling, lib/omise/OmiseTest         8850e28\r\n- 💄 code styling, lib/omise/OmiseToken            54c33de\r\n- 💄 code styling, lib/omise/OmiseTransaction          3ec668d\r\n- 💄 code styling, lib/omise/OmiseTransfer         b469f68\r\n- 💄 code styling, lib/omise/res/OmiseVaultResource            8036d58\r\n- 💄 code styling, lib/omise/res/OmiseApiResource          6fbf802\r\n- 💄 code styling, lib/omise/res/obj/OmiseObject           3747249\r\n- 💄 code styling, lib/omise/exception/OmiseExceptions         d63d8d4\r\n\r\nEdit 1, add more commit\r\n- 💄 code styling, update code comment block  d2cda74\r\n\r\n\r\n**3. Users affected by the change**\r\n\r\nNone\r\n\r\n**4. Impact of the change**\r\n\r\nNone\r\n\r\n**5. Priority of change**\r\n\r\nNormal\r\n\r\n**6. Alternate solution**\r\n\r\nNone","created_at":"2016-09-05T10:02:21Z","updated_at":"2016-09-06T04:02:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"39e0bf809c49bc4a9c25810de4b4c97b19fefd40","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/omise/omise-php/pulls/37/commits","review_comments_url":"https://api.github.com/repos/omise/omise-php/pulls/37/comments","review_comment_url":"https://api.github.com/repos/omise/omise-php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/omise/omise-php/issues/37/comments","statuses_url":"https://api.github.com/repos/omise/omise-php/statuses/d2cda74ebb5192241e094e9e6bca3d32e7ca1f31","head":{"label":"omise:code-revise","ref":"code-revise","sha":"d2cda74ebb5192241e094e9e6bca3d32e7ca1f31","user":{"login":"omise","id":4662729,"avatar_url":"https://avatars.githubusercontent.com/u/4662729?v=3","gravatar_id":"","url":"https://api.github.com/users/omise","html_url":"https://github.com/omise","followers_url":"https://api.github.com/users/omise/followers","following_url":"https://api.github.com/users/omise/following{/other_user}","gists_url":"https://api.github.com/users/omise/gists{/gist_id}","starred_url":"https://api.github.com/users/omise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omise/subscriptions","organizations_url":"https://api.github.com/users/omise/orgs","repos_url":"https://api.github.com/users/omise/repos","events_url":"https://api.github.com/users/omise/events{/privacy}","received_events_url":"https://api.github.com/users/omise/received_events","type":"Organization","site_admin":false},"repo":{"id":27426164,"name":"omise-php","full_name":"omise/omise-php","owner":{"login":"omise","id":4662729,"avatar_url":"https://avatars.githubusercontent.com/u/4662729?v=3","gravatar_id":"","url":"https://api.github.com/users/omise","html_url":"https://github.com/omise","followers_url":"https://api.github.com/users/omise/followers","following_url":"https://api.github.com/users/omise/following{/other_user}","gists_url":"https://api.github.com/users/omise/gists{/gist_id}","starred_url":"https://api.github.com/users/omise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omise/subscriptions","organizations_url":"https://api.github.com/users/omise/orgs","repos_url":"https://api.github.com/users/omise/repos","events_url":"https://api.github.com/users/omise/events{/privacy}","received_events_url":"https://api.github.com/users/omise/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/omise/omise-php","description":"Omise PHP library","fork":false,"url":"https://api.github.com/repos/omise/omise-php","forks_url":"https://api.github.com/repos/omise/omise-php/forks","keys_url":"https://api.github.com/repos/omise/omise-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omise/omise-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omise/omise-php/teams","hooks_url":"https://api.github.com/repos/omise/omise-php/hooks","issue_events_url":"https://api.github.com/repos/omise/omise-php/issues/events{/number}","events_url":"https://api.github.com/repos/omise/omise-php/events","assignees_url":"https://api.github.com/repos/omise/omise-php/assignees{/user}","branches_url":"https://api.github.com/repos/omise/omise-php/branches{/branch}","tags_url":"https://api.github.com/repos/omise/omise-php/tags","blobs_url":"https://api.github.com/repos/omise/omise-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omise/omise-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omise/omise-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/omise/omise-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omise/omise-php/statuses/{sha}","languages_url":"https://api.github.com/repos/omise/omise-php/languages","stargazers_url":"https://api.github.com/repos/omise/omise-php/stargazers","contributors_url":"https://api.github.com/repos/omise/omise-php/contributors","subscribers_url":"https://api.github.com/repos/omise/omise-php/subscribers","subscription_url":"https://api.github.com/repos/omise/omise-php/subscription","commits_url":"https://api.github.com/repos/omise/omise-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/omise/omise-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/omise/omise-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/omise/omise-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/omise/omise-php/contents/{+path}","compare_url":"https://api.github.com/repos/omise/omise-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omise/omise-php/merges","archive_url":"https://api.github.com/repos/omise/omise-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omise/omise-php/downloads","issues_url":"https://api.github.com/repos/omise/omise-php/issues{/number}","pulls_url":"https://api.github.com/repos/omise/omise-php/pulls{/number}","milestones_url":"https://api.github.com/repos/omise/omise-php/milestones{/number}","notifications_url":"https://api.github.com/repos/omise/omise-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omise/omise-php/labels{/name}","releases_url":"https://api.github.com/repos/omise/omise-php/releases{/id}","deployments_url":"https://api.github.com/repos/omise/omise-php/deployments","created_at":"2014-12-02T09:58:14Z","updated_at":"2016-08-31T14:12:16Z","pushed_at":"2016-09-05T10:17:23Z","git_url":"git://github.com/omise/omise-php.git","ssh_url":"git@github.com:omise/omise-php.git","clone_url":"https://github.com/omise/omise-php.git","svn_url":"https://github.com/omise/omise-php","homepage":"https://www.omise.co","size":344,"stargazers_count":18,"watchers_count":18,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":3,"forks":6,"open_issues":3,"watchers":18,"default_branch":"master"}},"base":{"label":"omise:master","ref":"master","sha":"5758cde74a6ecad91e11f4af68b5c17d48513f27","user":{"login":"omise","id":4662729,"avatar_url":"https://avatars.githubusercontent.com/u/4662729?v=3","gravatar_id":"","url":"https://api.github.com/users/omise","html_url":"https://github.com/omise","followers_url":"https://api.github.com/users/omise/followers","following_url":"https://api.github.com/users/omise/following{/other_user}","gists_url":"https://api.github.com/users/omise/gists{/gist_id}","starred_url":"https://api.github.com/users/omise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omise/subscriptions","organizations_url":"https://api.github.com/users/omise/orgs","repos_url":"https://api.github.com/users/omise/repos","events_url":"https://api.github.com/users/omise/events{/privacy}","received_events_url":"https://api.github.com/users/omise/received_events","type":"Organization","site_admin":false},"repo":{"id":27426164,"name":"omise-php","full_name":"omise/omise-php","owner":{"login":"omise","id":4662729,"avatar_url":"https://avatars.githubusercontent.com/u/4662729?v=3","gravatar_id":"","url":"https://api.github.com/users/omise","html_url":"https://github.com/omise","followers_url":"https://api.github.com/users/omise/followers","following_url":"https://api.github.com/users/omise/following{/other_user}","gists_url":"https://api.github.com/users/omise/gists{/gist_id}","starred_url":"https://api.github.com/users/omise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omise/subscriptions","organizations_url":"https://api.github.com/users/omise/orgs","repos_url":"https://api.github.com/users/omise/repos","events_url":"https://api.github.com/users/omise/events{/privacy}","received_events_url":"https://api.github.com/users/omise/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/omise/omise-php","description":"Omise PHP library","fork":false,"url":"https://api.github.com/repos/omise/omise-php","forks_url":"https://api.github.com/repos/omise/omise-php/forks","keys_url":"https://api.github.com/repos/omise/omise-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omise/omise-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omise/omise-php/teams","hooks_url":"https://api.github.com/repos/omise/omise-php/hooks","issue_events_url":"https://api.github.com/repos/omise/omise-php/issues/events{/number}","events_url":"https://api.github.com/repos/omise/omise-php/events","assignees_url":"https://api.github.com/repos/omise/omise-php/assignees{/user}","branches_url":"https://api.github.com/repos/omise/omise-php/branches{/branch}","tags_url":"https://api.github.com/repos/omise/omise-php/tags","blobs_url":"https://api.github.com/repos/omise/omise-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omise/omise-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omise/omise-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/omise/omise-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omise/omise-php/statuses/{sha}","languages_url":"https://api.github.com/repos/omise/omise-php/languages","stargazers_url":"https://api.github.com/repos/omise/omise-php/stargazers","contributors_url":"https://api.github.com/repos/omise/omise-php/contributors","subscribers_url":"https://api.github.com/repos/omise/omise-php/subscribers","subscription_url":"https://api.github.com/repos/omise/omise-php/subscription","commits_url":"https://api.github.com/repos/omise/omise-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/omise/omise-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/omise/omise-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/omise/omise-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/omise/omise-php/contents/{+path}","compare_url":"https://api.github.com/repos/omise/omise-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omise/omise-php/merges","archive_url":"https://api.github.com/repos/omise/omise-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omise/omise-php/downloads","issues_url":"https://api.github.com/repos/omise/omise-php/issues{/number}","pulls_url":"https://api.github.com/repos/omise/omise-php/pulls{/number}","milestones_url":"https://api.github.com/repos/omise/omise-php/milestones{/number}","notifications_url":"https://api.github.com/repos/omise/omise-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omise/omise-php/labels{/name}","releases_url":"https://api.github.com/repos/omise/omise-php/releases{/id}","deployments_url":"https://api.github.com/repos/omise/omise-php/deployments","created_at":"2014-12-02T09:58:14Z","updated_at":"2016-08-31T14:12:16Z","pushed_at":"2016-09-05T10:17:23Z","git_url":"git://github.com/omise/omise-php.git","ssh_url":"git@github.com:omise/omise-php.git","clone_url":"https://github.com/omise/omise-php.git","svn_url":"https://github.com/omise/omise-php","homepage":"https://www.omise.co","size":344,"stargazers_count":18,"watchers_count":18,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":3,"forks":6,"open_issues":3,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/omise/omise-php/pulls/37"},"html":{"href":"https://github.com/omise/omise-php/pull/37"},"issue":{"href":"https://api.github.com/repos/omise/omise-php/issues/37"},"comments":{"href":"https://api.github.com/repos/omise/omise-php/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/omise/omise-php/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/omise/omise-php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/omise/omise-php/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/omise/omise-php/statuses/d2cda74ebb5192241e094e9e6bca3d32e7ca1f31"}}}}
{"actor":{"display_login":"guzzilar"}}