{"action":"created","issue":{"url":"https://api.github.com/repos/tpitale/legato/issues/91","labels_url":"https://api.github.com/repos/tpitale/legato/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/tpitale/legato/issues/91/comments","events_url":"https://api.github.com/repos/tpitale/legato/issues/91/events","html_url":"https://github.com/tpitale/legato/issues/91","id":85138727,"number":91,"title":"Having trouble with realtime","user":{"login":"Thermatix","id":5038613,"avatar_url":"https://avatars.githubusercontent.com/u/5038613?v=3","gravatar_id":"","url":"https://api.github.com/users/Thermatix","html_url":"https://github.com/Thermatix","followers_url":"https://api.github.com/users/Thermatix/followers","following_url":"https://api.github.com/users/Thermatix/following{/other_user}","gists_url":"https://api.github.com/users/Thermatix/gists{/gist_id}","starred_url":"https://api.github.com/users/Thermatix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thermatix/subscriptions","organizations_url":"https://api.github.com/users/Thermatix/orgs","repos_url":"https://api.github.com/users/Thermatix/repos","events_url":"https://api.github.com/users/Thermatix/events{/privacy}","received_events_url":"https://api.github.com/users/Thermatix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-06-04T15:07:34Z","updated_at":"2015-06-04T16:42:23Z","closed_at":null,"body":"\r\nI have access to the realtime API (already requested it). \r\n\r\nWhen I try to access it however, legato just errors.\r\n\r\nIf I try this:\r\n```ruby\r\nrt_query = Data.realtime\r\ndata = rt_query.map {|item| item}\r\n```\r\n\r\nI get an error about user being nil, to fix that I had to do this:\r\n```ruby\r\nrt_query.profile = profile\r\n```\r\n\r\nIf I try any of the following:\r\n```ruby\r\nrt_query = Data.realtime\r\nrt_query.profile = profile\r\ndata = rt_query.map {|item| item}\r\n```\r\n\r\n```ruby\r\ndata= Data.results(profile).realtime.map {|item| item}\r\n```\r\n\r\n```ruby\r\ndata = Data.page_title($config['model']['title_filter'],profile).realtime.map {|item| item }\r\n```\r\n\r\nI get an error about ` \"message\"=>\"Required parameter: metrics\"`\r\n\r\nwhich makes no sense becuase accourding to [this][1], google analytics realtime has no metrics, still I try supplying them (in the model of course)and I get errors that the metrics don't exists (no suprise) and all the metrics in the message are pre-fixed with `ga:`.\r\n\r\n\r\nI've followed the help doc, what am I doing wrong?\r\n\r\n\r\n\r\n\r\n[1]: https://developers.google.com/analytics/devguides/reporting/realtime/dimsmets/\r\n"},"comment":{"url":"https://api.github.com/repos/tpitale/legato/issues/comments/108963553","html_url":"https://github.com/tpitale/legato/issues/91#issuecomment-108963553","issue_url":"https://api.github.com/repos/tpitale/legato/issues/91","id":108963553,"user":{"login":"tpitale","id":163,"avatar_url":"https://avatars.githubusercontent.com/u/163?v=3","gravatar_id":"","url":"https://api.github.com/users/tpitale","html_url":"https://github.com/tpitale","followers_url":"https://api.github.com/users/tpitale/followers","following_url":"https://api.github.com/users/tpitale/following{/other_user}","gists_url":"https://api.github.com/users/tpitale/gists{/gist_id}","starred_url":"https://api.github.com/users/tpitale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpitale/subscriptions","organizations_url":"https://api.github.com/users/tpitale/orgs","repos_url":"https://api.github.com/users/tpitale/repos","events_url":"https://api.github.com/users/tpitale/events{/privacy}","received_events_url":"https://api.github.com/users/tpitale/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T16:42:23Z","updated_at":"2015-06-04T16:42:23Z","body":"I'm just making it work :-)"}}