{"action":"created","issue":{"url":"https://api.github.com/repos/omise/omise-php/issues/31","repository_url":"https://api.github.com/repos/omise/omise-php","labels_url":"https://api.github.com/repos/omise/omise-php/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/omise/omise-php/issues/31/comments","events_url":"https://api.github.com/repos/omise/omise-php/issues/31/events","html_url":"https://github.com/omise/omise-php/pull/31","id":134379785,"number":31,"title":"Add events API","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},"labels":[{"url":"https://api.github.com/repos/omise/omise-php/labels/Status:%20Review%20Needed","name":"Status: Review Needed","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-02-17T19:40:38Z","updated_at":"2016-09-26T10:02:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/omise/omise-php/pulls/31","html_url":"https://github.com/omise/omise-php/pull/31","diff_url":"https://github.com/omise/omise-php/pull/31.diff","patch_url":"https://github.com/omise/omise-php/pull/31.patch"},"body":"Add a basic events API\r\n\r\nexample\r\n```php\r\n// Retrieve event list object\r\n$events = OmiseEvent::retrieve();\r\n\r\n\r\n// Retrieve event object by provided an event id\r\n$event = OmiseEvent::retrieve('event_id');\r\n```"},"comment":{"url":"https://api.github.com/repos/omise/omise-php/issues/comments/249529468","html_url":"https://github.com/omise/omise-php/pull/31#issuecomment-249529468","issue_url":"https://api.github.com/repos/omise/omise-php/issues/31","id":249529468,"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},"created_at":"2016-09-26T10:02:42Z","updated_at":"2016-09-26T10:02:42Z","body":"about https://github.com/omise/omise-php/pull/31/commits/95099a2087c2d01c25f40e8947ccee15a013142d commit,\r\nbefore fix\r\n```php\r\n/* Retrieve list */\r\n$events = OmiseEvent::retrieve();\r\n$events->reload();\r\n\r\necho $events['object']; // output: \"list\"\r\n\r\n/* Retrieve item */\r\n$events = OmiseEvent::retrieve('event_id');\r\n$events->reload();\r\n\r\necho $events['object']; // output: \"list\"\r\n```\r\n\r\nafter fixed\r\n```php\r\n/* Retrieve list */\r\n$events = OmiseEvent::retrieve();\r\n$events->reload();\r\n\r\necho $events['object']; // output: \"list\"\r\n\r\n/* Retrieve item */\r\n$events = OmiseEvent::retrieve('event_id');\r\n$events->reload();\r\n\r\necho $events['object']; // output: \"event\" of \"event_id\"\r\n```"}}
{"actor":{"display_login":"guzzilar"}}