{"action":"created","issue":{"url":"https://api.github.com/repos/guardian/membership-frontend/issues/1015","repository_url":"https://api.github.com/repos/guardian/membership-frontend","labels_url":"https://api.github.com/repos/guardian/membership-frontend/issues/1015/labels{/name}","comments_url":"https://api.github.com/repos/guardian/membership-frontend/issues/1015/comments","events_url":"https://api.github.com/repos/guardian/membership-frontend/issues/1015/events","html_url":"https://github.com/guardian/membership-frontend/pull/1015","id":137586954,"number":1015,"title":"Basic read-only API endpoint to read event image data","user":{"login":"rtyley","id":52038,"avatar_url":"https://avatars.githubusercontent.com/u/52038?v=3","gravatar_id":"","url":"https://api.github.com/users/rtyley","html_url":"https://github.com/rtyley","followers_url":"https://api.github.com/users/rtyley/followers","following_url":"https://api.github.com/users/rtyley/following{/other_user}","gists_url":"https://api.github.com/users/rtyley/gists{/gist_id}","starred_url":"https://api.github.com/users/rtyley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtyley/subscriptions","organizations_url":"https://api.github.com/users/rtyley/orgs","repos_url":"https://api.github.com/users/rtyley/repos","events_url":"https://api.github.com/users/rtyley/events{/privacy}","received_events_url":"https://api.github.com/users/rtyley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-01T14:26:16Z","updated_at":"2016-03-01T14:31:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/guardian/membership-frontend/pulls/1015","html_url":"https://github.com/guardian/membership-frontend/pull/1015","diff_url":"https://github.com/guardian/membership-frontend/pull/1015.diff","patch_url":"https://github.com/guardian/membership-frontend/pull/1015.patch"},"body":"This is to assist a proposed commercial component for dotcom that will show Guardian Live events - thus encouraging them to join Membership!\r\n\r\nOnly returns Guardian Live Events, because for the moment that is all @regiskuckaertz needs - other event types may be added in the future.\r\n\r\nThe endpoint is **https://membership.theguardian.com/events.json** - once this PR is merged, you'll get a response like:\r\n\r\n```\r\n{\r\n\"events\": [\r\n{\r\n  \"id\": \"20940795483\",\r\n  \"url\": \"https://membership.theguardian.com/event/guardian-live-a-nations-theatre-conversation-farnham-i-liked-it-but-i-couldnt-book-it-20940795483\",\r\n  \"mainImage\": {\r\n    \"id\": \"ecf6ea115a9c1286865fc792208f514b05e4026b\",\r\n    \"crop\": \"0_0_3500_2101\"\r\n  }\r\n},\r\n...\r\n```\r\n\r\nTo get the Grid ImageIdWithCrop into the API, I had to refactor GridService a bit. The value of `grid.images.media.url` was in the private config file, but it's a value that's publicly exposed in lots of other places, so we might as well just have it as a constant - the address of the grid admin tool is not a secret: \"https://media.gutools.co.uk/images/\"\r\n\r\ncc @tomverran "},"comment":{"url":"https://api.github.com/repos/guardian/membership-frontend/issues/comments/190742663","html_url":"https://github.com/guardian/membership-frontend/pull/1015#issuecomment-190742663","issue_url":"https://api.github.com/repos/guardian/membership-frontend/issues/1015","id":190742663,"user":{"login":"tomverran","id":1388226,"avatar_url":"https://avatars.githubusercontent.com/u/1388226?v=3","gravatar_id":"","url":"https://api.github.com/users/tomverran","html_url":"https://github.com/tomverran","followers_url":"https://api.github.com/users/tomverran/followers","following_url":"https://api.github.com/users/tomverran/following{/other_user}","gists_url":"https://api.github.com/users/tomverran/gists{/gist_id}","starred_url":"https://api.github.com/users/tomverran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomverran/subscriptions","organizations_url":"https://api.github.com/users/tomverran/orgs","repos_url":"https://api.github.com/users/tomverran/repos","events_url":"https://api.github.com/users/tomverran/events{/privacy}","received_events_url":"https://api.github.com/users/tomverran/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T14:31:21Z","updated_at":"2016-03-01T14:31:21Z","body":"Looks like some tests need updating!\r\n"}}