{"action":"created","issue":{"url":"https://api.github.com/repos/orijtech/500px/issues/19","repository_url":"https://api.github.com/repos/orijtech/500px","labels_url":"https://api.github.com/repos/orijtech/500px/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/orijtech/500px/issues/19/comments","events_url":"https://api.github.com/repos/orijtech/500px/issues/19/events","html_url":"https://github.com/orijtech/500px/pull/19","id":230132514,"number":19,"title":"photos: implemented Delete","user":{"login":"odeke-em","id":4898263,"avatar_url":"https://avatars0.githubusercontent.com/u/4898263?v=3","gravatar_id":"","url":"https://api.github.com/users/odeke-em","html_url":"https://github.com/odeke-em","followers_url":"https://api.github.com/users/odeke-em/followers","following_url":"https://api.github.com/users/odeke-em/following{/other_user}","gists_url":"https://api.github.com/users/odeke-em/gists{/gist_id}","starred_url":"https://api.github.com/users/odeke-em/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odeke-em/subscriptions","organizations_url":"https://api.github.com/users/odeke-em/orgs","repos_url":"https://api.github.com/users/odeke-em/repos","events_url":"https://api.github.com/users/odeke-em/events{/privacy}","received_events_url":"https://api.github.com/users/odeke-em/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-20T05:45:42Z","updated_at":"2017-05-20T05:46:33Z","closed_at":"2017-05-20T05:45:55Z","pull_request":{"url":"https://api.github.com/repos/orijtech/500px/pulls/19","html_url":"https://github.com/orijtech/500px/pull/19","diff_url":"https://github.com/orijtech/500px/pull/19.diff","patch_url":"https://github.com/orijtech/500px/pull/19.patch"},"body":"Fixes #11.\r\n\r\nCan now delete a photo by id\r\n\r\nNote that this method is a privileged one and requires\r\nOAuth authorization for 500px to accept it, so initialize\r\nthe client with the OAuthClient as shown in the example below:\r\n\r\n```go\r\nfunc deletePhoto() {\r\n\tclient, err := px500.NewOAuth1ClientFromEnv()\r\n\tif err != nil {\r\n\t\tlog.Fatal(err)\r\n\t}\r\n\r\n\tif err := client.DeletePhoto(\"212664703\"); err != nil {\r\n\t\tlog.Fatal(err)\r\n\t}\r\n\r\n\tfmt.Printf(\"Successfully deleted the photo!\\n\")\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/orijtech/500px/issues/comments/302852833","html_url":"https://github.com/orijtech/500px/pull/19#issuecomment-302852833","issue_url":"https://api.github.com/repos/orijtech/500px/issues/19","id":302852833,"user":{"login":"odeke-em","id":4898263,"avatar_url":"https://avatars0.githubusercontent.com/u/4898263?v=3","gravatar_id":"","url":"https://api.github.com/users/odeke-em","html_url":"https://github.com/odeke-em","followers_url":"https://api.github.com/users/odeke-em/followers","following_url":"https://api.github.com/users/odeke-em/following{/other_user}","gists_url":"https://api.github.com/users/odeke-em/gists{/gist_id}","starred_url":"https://api.github.com/users/odeke-em/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odeke-em/subscriptions","organizations_url":"https://api.github.com/users/odeke-em/orgs","repos_url":"https://api.github.com/users/odeke-em/repos","events_url":"https://api.github.com/users/odeke-em/events{/privacy}","received_events_url":"https://api.github.com/users/odeke-em/received_events","type":"User","site_admin":false},"created_at":"2017-05-20T05:46:33Z","updated_at":"2017-05-20T05:46:33Z","body":"### Exhibit:\r\nAfter running the code provided above, it gave\r\n<img width=\"834\" alt=\"screen shot 2017-05-19 at 11 42 03 pm\" src=\"https://cloud.githubusercontent.com/assets/4898263/26273424/5be183ae-3ced-11e7-8ea4-ab5f343c5730.png\">\r\n"}}
{"actor":{"display_login":"odeke-em"}}