{"action":"created","issue":{"url":"https://api.github.com/repos/intercom/intercom-ruby/issues/243","repository_url":"https://api.github.com/repos/intercom/intercom-ruby","labels_url":"https://api.github.com/repos/intercom/intercom-ruby/issues/243/labels{/name}","comments_url":"https://api.github.com/repos/intercom/intercom-ruby/issues/243/comments","events_url":"https://api.github.com/repos/intercom/intercom-ruby/issues/243/events","html_url":"https://github.com/intercom/intercom-ruby/issues/243","id":151509068,"number":243,"title":"Supporting created_since","user":{"login":"lcpriest","id":735593,"avatar_url":"https://avatars.githubusercontent.com/u/735593?v=3","gravatar_id":"","url":"https://api.github.com/users/lcpriest","html_url":"https://github.com/lcpriest","followers_url":"https://api.github.com/users/lcpriest/followers","following_url":"https://api.github.com/users/lcpriest/following{/other_user}","gists_url":"https://api.github.com/users/lcpriest/gists{/gist_id}","starred_url":"https://api.github.com/users/lcpriest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcpriest/subscriptions","organizations_url":"https://api.github.com/users/lcpriest/orgs","repos_url":"https://api.github.com/users/lcpriest/repos","events_url":"https://api.github.com/users/lcpriest/events{/privacy}","received_events_url":"https://api.github.com/users/lcpriest/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-27T22:44:41Z","updated_at":"2016-06-21T16:32:05Z","closed_at":null,"body":"## Version info\r\n  - intercom-ruby version: 3.4.0\r\n  - Ruby version: 2.2.4\r\n\r\n## Expected behavior\r\nclient.users.find_all({created_since: 60.seconds.ago.utc.to_i}).first(5)\r\n=> []\r\n\r\n## Actual behavior\r\nclient.users.find_all({created_since: 60.seconds.ago.utc.to_i}).first(5)\r\n=> Array of users created more than 60 seconds ago\r\n\r\nDo you know how to filter by created_since? Is it in the gem?\r\nRe: https://developers.intercom.io/reference#list-users"},"comment":{"url":"https://api.github.com/repos/intercom/intercom-ruby/issues/comments/227496186","html_url":"https://github.com/intercom/intercom-ruby/issues/243#issuecomment-227496186","issue_url":"https://api.github.com/repos/intercom/intercom-ruby/issues/243","id":227496186,"user":{"login":"olliebennett","id":1068525,"avatar_url":"https://avatars.githubusercontent.com/u/1068525?v=3","gravatar_id":"","url":"https://api.github.com/users/olliebennett","html_url":"https://github.com/olliebennett","followers_url":"https://api.github.com/users/olliebennett/followers","following_url":"https://api.github.com/users/olliebennett/following{/other_user}","gists_url":"https://api.github.com/users/olliebennett/gists{/gist_id}","starred_url":"https://api.github.com/users/olliebennett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olliebennett/subscriptions","organizations_url":"https://api.github.com/users/olliebennett/orgs","repos_url":"https://api.github.com/users/olliebennett/repos","events_url":"https://api.github.com/users/olliebennett/events{/privacy}","received_events_url":"https://api.github.com/users/olliebennett/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T16:32:05Z","updated_at":"2016-06-21T16:32:05Z","body":"Appreciate this is a bit clunky as a workaround, but you can set up any filters you may need as a segment (via the Intercom dashboard) and then retrieve only the users from that segment:\r\n\r\n```ruby\r\nintercom_client.users.find_all(segment: 'my-segment-id').each do |intercom_user|\r\n    puts %Q(#{intercom_user.user_id}, #{intercom_user.email})\r\nend\r\n```\r\n\r\nThe segment ID is taken from the URL while viewing the segment on the dashboard."}}
{"actor":{"display_login":"olliebennett"}}