{"action":"created","issue":{"url":"https://api.github.com/repos/ThumbWorks/sf-ios/issues/70","repository_url":"https://api.github.com/repos/ThumbWorks/sf-ios","labels_url":"https://api.github.com/repos/ThumbWorks/sf-ios/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/ThumbWorks/sf-ios/issues/70/comments","events_url":"https://api.github.com/repos/ThumbWorks/sf-ios/issues/70/events","html_url":"https://github.com/ThumbWorks/sf-ios/issues/70","id":437981846,"node_id":"MDU6SXNzdWU0Mzc5ODE4NDY=","number":70,"title":"Switch to GraphQL API","user":{"login":"jamescmartinez","id":1286597,"node_id":"MDQ6VXNlcjEyODY1OTc=","avatar_url":"https://avatars2.githubusercontent.com/u/1286597?v=4","gravatar_id":"","url":"https://api.github.com/users/jamescmartinez","html_url":"https://github.com/jamescmartinez","followers_url":"https://api.github.com/users/jamescmartinez/followers","following_url":"https://api.github.com/users/jamescmartinez/following{/other_user}","gists_url":"https://api.github.com/users/jamescmartinez/gists{/gist_id}","starred_url":"https://api.github.com/users/jamescmartinez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamescmartinez/subscriptions","organizations_url":"https://api.github.com/users/jamescmartinez/orgs","repos_url":"https://api.github.com/users/jamescmartinez/repos","events_url":"https://api.github.com/users/jamescmartinez/events{/privacy}","received_events_url":"https://api.github.com/users/jamescmartinez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-04-27T20:36:07Z","updated_at":"2019-04-28T04:47:31Z","closed_at":null,"author_association":"COLLABORATOR","body":"I'm deprecating the REST API in favor of the GraphQL API.\r\n\r\nhttps://github.com/jamescmartinez/coffee#api\r\n\r\nI'm opening this issue to create a discussion around how to implement this. I'll document more as questions are answered.\r\n\r\nYou can traverse the graph starting with `groups` -- you can get an array of groups, or if you specify an `id` argument you can get a specific group. From that same query, you can get all of the events.\r\n\r\nSample query that you can use on the [Coffee Graph Explorer](https://api.coffeecoffeecoffee.coffee/graphiql) (`id` is optional if you want all groups):\r\n```graphql\r\n{\r\n  groups(id: \"sf-ios-coffee\") {\r\n    id\r\n    name\r\n    events {\r\n      id\r\n      name\r\n      startAt\r\n      endAt\r\n    }\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/ThumbWorks/sf-ios/issues/comments/487343684","html_url":"https://github.com/ThumbWorks/sf-ios/issues/70#issuecomment-487343684","issue_url":"https://api.github.com/repos/ThumbWorks/sf-ios/issues/70","id":487343684,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4NzM0MzY4NA==","user":{"login":"jamescmartinez","id":1286597,"node_id":"MDQ6VXNlcjEyODY1OTc=","avatar_url":"https://avatars2.githubusercontent.com/u/1286597?v=4","gravatar_id":"","url":"https://api.github.com/users/jamescmartinez","html_url":"https://github.com/jamescmartinez","followers_url":"https://api.github.com/users/jamescmartinez/followers","following_url":"https://api.github.com/users/jamescmartinez/following{/other_user}","gists_url":"https://api.github.com/users/jamescmartinez/gists{/gist_id}","starred_url":"https://api.github.com/users/jamescmartinez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamescmartinez/subscriptions","organizations_url":"https://api.github.com/users/jamescmartinez/orgs","repos_url":"https://api.github.com/users/jamescmartinez/repos","events_url":"https://api.github.com/users/jamescmartinez/events{/privacy}","received_events_url":"https://api.github.com/users/jamescmartinez/received_events","type":"User","site_admin":false},"created_at":"2019-04-28T04:47:31Z","updated_at":"2019-04-28T04:47:31Z","author_association":"COLLABORATOR","body":"It's in there now.\r\n\r\n```graphql\r\n{\r\n  groups(id: \"sf-ios-coffee\") {\r\n    imageUrl\r\n    events {\r\n      imageUrl\r\n      venue {\r\n        location {\r\n          latitude\r\n          longitude\r\n        }\r\n      }\r\n    }\r\n  }\r\n}\r\n```"}}
{"actor":{"display_login":"jamescmartinez"}}