{"action":"closed","issue":{"url":"https://api.github.com/repos/oguzcanhuner/eucalyptus/issues/1","labels_url":"https://api.github.com/repos/oguzcanhuner/eucalyptus/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/oguzcanhuner/eucalyptus/issues/1/comments","events_url":"https://api.github.com/repos/oguzcanhuner/eucalyptus/issues/1/events","html_url":"https://github.com/oguzcanhuner/eucalyptus/issues/1","id":88541199,"number":1,"title":"Add a reportstats edge to all resources","user":{"login":"oguzcanhuner","id":1111226,"avatar_url":"https://avatars.githubusercontent.com/u/1111226?v=3","gravatar_id":"","url":"https://api.github.com/users/oguzcanhuner","html_url":"https://github.com/oguzcanhuner","followers_url":"https://api.github.com/users/oguzcanhuner/followers","following_url":"https://api.github.com/users/oguzcanhuner/following{/other_user}","gists_url":"https://api.github.com/users/oguzcanhuner/gists{/gist_id}","starred_url":"https://api.github.com/users/oguzcanhuner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oguzcanhuner/subscriptions","organizations_url":"https://api.github.com/users/oguzcanhuner/orgs","repos_url":"https://api.github.com/users/oguzcanhuner/repos","events_url":"https://api.github.com/users/oguzcanhuner/events{/privacy}","received_events_url":"https://api.github.com/users/oguzcanhuner/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"oguzcanhuner","id":1111226,"avatar_url":"https://avatars.githubusercontent.com/u/1111226?v=3","gravatar_id":"","url":"https://api.github.com/users/oguzcanhuner","html_url":"https://github.com/oguzcanhuner","followers_url":"https://api.github.com/users/oguzcanhuner/followers","following_url":"https://api.github.com/users/oguzcanhuner/following{/other_user}","gists_url":"https://api.github.com/users/oguzcanhuner/gists{/gist_id}","starred_url":"https://api.github.com/users/oguzcanhuner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oguzcanhuner/subscriptions","organizations_url":"https://api.github.com/users/oguzcanhuner/orgs","repos_url":"https://api.github.com/users/oguzcanhuner/repos","events_url":"https://api.github.com/users/oguzcanhuner/events{/privacy}","received_events_url":"https://api.github.com/users/oguzcanhuner/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-06-15T21:05:58Z","updated_at":"2015-06-19T13:32:48Z","closed_at":"2015-06-19T13:32:48Z","body":"The facebook resources within eucalyptus can all respond to the /reportstats endpoint[1]. Create a method to return a stats object.\r\n\r\nExpected usage:\r\n```\r\naccount = Eucalyptus::Acount.all.last\r\nstats = account.stats(date_preset: today)\r\n\r\nstats.cpa\r\n-> 12\r\nstats.actions.website_conversion\r\n-> 2\r\n```\r\n\r\n[1] https://developers.facebook.com/docs/marketing-api/adreportstats/v2.3\r\n\r\n"}}