{"action":"created","issue":{"url":"https://api.github.com/repos/coop/run_keeper/issues/4","labels_url":"https://api.github.com/repos/coop/run_keeper/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/coop/run_keeper/issues/4/comments","events_url":"https://api.github.com/repos/coop/run_keeper/issues/4/events","html_url":"https://github.com/coop/run_keeper/pull/4","id":60950972,"number":4,"title":"Fixed NoMethodError map for NilClass error on `runkeeper.fitness_activities options`","user":{"login":"paresharma","id":1743203,"avatar_url":"https://avatars.githubusercontent.com/u/1743203?v=3","gravatar_id":"","url":"https://api.github.com/users/paresharma","html_url":"https://github.com/paresharma","followers_url":"https://api.github.com/users/paresharma/followers","following_url":"https://api.github.com/users/paresharma/following{/other_user}","gists_url":"https://api.github.com/users/paresharma/gists{/gist_id}","starred_url":"https://api.github.com/users/paresharma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paresharma/subscriptions","organizations_url":"https://api.github.com/users/paresharma/orgs","repos_url":"https://api.github.com/users/paresharma/repos","events_url":"https://api.github.com/users/paresharma/events{/privacy}","received_events_url":"https://api.github.com/users/paresharma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-13T01:04:02Z","updated_at":"2015-09-02T13:54:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/coop/run_keeper/pulls/4","html_url":"https://github.com/coop/run_keeper/pull/4","diff_url":"https://github.com/coop/run_keeper/pull/4.diff","patch_url":"https://github.com/coop/run_keeper/pull/4.patch"},"body":"@coop : First, thanks for the awesome work :+1: \r\n\r\nRecently, I ran into this issue when I do something like the following steps:\r\n```ruby\r\nrunkeeper = RunkeeperProfile.get_runkeeper_client '<some token>'\r\nfinish=Time.now\r\nstart=2.days.ago\r\noptions = {start: start, finish: finish}\r\nrunkeeper.fitness_activities options\r\n```\r\n\r\nI get the following error:\r\n```ruby\r\nirb(main):007:0* options = {start: start, finish: finish}\r\n=> {:start=>Wed, 11 Mar 2015 01:43:20 CET +01:00, :finish=>2015-03-13 01:43:20 +0100}\r\nirb(main):008:0>\r\nirb(main):009:0* runkeeper.fitness_activities options\r\nNoMethodError: undefined method `map' for nil:NilClass\r\n\tfrom /Users/pareshsharma/Workspace/CRunkeeper/vendor/bundle/gems/run_keeper-0.0.5/lib/run_keeper/activity_request.rb:18:in `request'\r\n\tfrom /Users/pareshsharma/Workspace/CRunkeeper/vendor/bundle/gems/run_keeper-0.0.5/lib/run_keeper/activity_request.rb:34:in `request'\r\n\tfrom /Users/pareshsharma/Workspace/CRunkeeper/vendor/bundle/gems/run_keeper-0.0.5/lib/run_keeper/activity_request.rb:8:in `get_activities'\r\n\tfrom /Users/pareshsharma/Workspace/CRunkeeper/vendor/bundle/gems/run_keeper-0.0.5/lib/run_keeper/request.rb:18:in `fitness_activities'\r\n```\r\n\r\nP.S.\r\nAlso, I am working on using [Time Scope](http://developer.runkeeper.com/healthgraph/example-api-calls#example-get-retrieving-user-info) while fetching activities from RunKeeper, hopefully I'll create a pull request sometime soon."},"comment":{"url":"https://api.github.com/repos/coop/run_keeper/issues/comments/137089547","html_url":"https://github.com/coop/run_keeper/pull/4#issuecomment-137089547","issue_url":"https://api.github.com/repos/coop/run_keeper/issues/4","id":137089547,"user":{"login":"donv","id":57275,"avatar_url":"https://avatars.githubusercontent.com/u/57275?v=3","gravatar_id":"","url":"https://api.github.com/users/donv","html_url":"https://github.com/donv","followers_url":"https://api.github.com/users/donv/followers","following_url":"https://api.github.com/users/donv/following{/other_user}","gists_url":"https://api.github.com/users/donv/gists{/gist_id}","starred_url":"https://api.github.com/users/donv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donv/subscriptions","organizations_url":"https://api.github.com/users/donv/orgs","repos_url":"https://api.github.com/users/donv/repos","events_url":"https://api.github.com/users/donv/events{/privacy}","received_events_url":"https://api.github.com/users/donv/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T13:54:55Z","updated_at":"2015-09-02T13:54:55Z","body":"Hi @coop and @tatey !\r\n\r\nAny chance this can be merged?\r\n"}}