{"action":"opened","number":173,"pull_request":{"url":"https://api.github.com/repos/estately/rets/pulls/173","id":59281467,"html_url":"https://github.com/estately/rets/pull/173","diff_url":"https://github.com/estately/rets/pull/173.diff","patch_url":"https://github.com/estately/rets/pull/173.patch","issue_url":"https://api.github.com/repos/estately/rets/issues/173","number":173,"state":"open","locked":false,"title":"Rets::PropertyClient for retrieving rets properties and associated re…","user":{"login":"summera","id":2474416,"avatar_url":"https://avatars.githubusercontent.com/u/2474416?v=3","gravatar_id":"","url":"https://api.github.com/users/summera","html_url":"https://github.com/summera","followers_url":"https://api.github.com/users/summera/followers","following_url":"https://api.github.com/users/summera/following{/other_user}","gists_url":"https://api.github.com/users/summera/gists{/gist_id}","starred_url":"https://api.github.com/users/summera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/summera/subscriptions","organizations_url":"https://api.github.com/users/summera/orgs","repos_url":"https://api.github.com/users/summera/repos","events_url":"https://api.github.com/users/summera/events{/privacy}","received_events_url":"https://api.github.com/users/summera/received_events","type":"User","site_admin":false},"body":"More work to do on this guy, but I wanted to get your thoughts before moving on. I have created something similar to this in my application and it has been really helpful to me, so hopefully it will be helpful to others! :smile: \r\n\r\nThe learning curve for querying RETS servers can be a little steep, and writing the code to retrieve resources can be a little cumbersome. The idea here is to make things a little easier. The basic idea is the following:\r\n\r\n```ruby\r\n# holds some some simple configuration info based on some rets metadata\r\nmls_config = SomeMlsConfiguration.new\r\n\r\nproperty_client = Rets::PropertyClient.new(mls_config)\r\n\r\n# retrieve properties modified within the last 24 hours\r\nstart_at = Time.now - (3600 * 24)\r\nend_at = Time.now\r\nproperties = property_client.properties(start_at: start_at, end_at: end_at)\r\n\r\nproperties.each do |prop|\r\n  # retrieve images for this property\r\n  images = prop.images\r\n  \r\n  # retrieve open houses for this property\r\n  open_houses = prop.open_houses\r\nend\r\n```\r\n\r\nLet me know your thoughts!","created_at":"2016-02-13T23:32:51Z","updated_at":"2016-02-13T23:32:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/estately/rets/pulls/173/commits","review_comments_url":"https://api.github.com/repos/estately/rets/pulls/173/comments","review_comment_url":"https://api.github.com/repos/estately/rets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/estately/rets/issues/173/comments","statuses_url":"https://api.github.com/repos/estately/rets/statuses/5ef8eb2bf408469d9910bbfce01551bb3d8de961","head":{"label":"summera:property-client","ref":"property-client","sha":"5ef8eb2bf408469d9910bbfce01551bb3d8de961","user":{"login":"summera","id":2474416,"avatar_url":"https://avatars.githubusercontent.com/u/2474416?v=3","gravatar_id":"","url":"https://api.github.com/users/summera","html_url":"https://github.com/summera","followers_url":"https://api.github.com/users/summera/followers","following_url":"https://api.github.com/users/summera/following{/other_user}","gists_url":"https://api.github.com/users/summera/gists{/gist_id}","starred_url":"https://api.github.com/users/summera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/summera/subscriptions","organizations_url":"https://api.github.com/users/summera/orgs","repos_url":"https://api.github.com/users/summera/repos","events_url":"https://api.github.com/users/summera/events{/privacy}","received_events_url":"https://api.github.com/users/summera/received_events","type":"User","site_admin":false},"repo":{"id":35979471,"name":"rets","full_name":"summera/rets","owner":{"login":"summera","id":2474416,"avatar_url":"https://avatars.githubusercontent.com/u/2474416?v=3","gravatar_id":"","url":"https://api.github.com/users/summera","html_url":"https://github.com/summera","followers_url":"https://api.github.com/users/summera/followers","following_url":"https://api.github.com/users/summera/following{/other_user}","gists_url":"https://api.github.com/users/summera/gists{/gist_id}","starred_url":"https://api.github.com/users/summera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/summera/subscriptions","organizations_url":"https://api.github.com/users/summera/orgs","repos_url":"https://api.github.com/users/summera/repos","events_url":"https://api.github.com/users/summera/events{/privacy}","received_events_url":"https://api.github.com/users/summera/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/summera/rets","description":"A pure-ruby library for fetching data from RETS servers","fork":true,"url":"https://api.github.com/repos/summera/rets","forks_url":"https://api.github.com/repos/summera/rets/forks","keys_url":"https://api.github.com/repos/summera/rets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/summera/rets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/summera/rets/teams","hooks_url":"https://api.github.com/repos/summera/rets/hooks","issue_events_url":"https://api.github.com/repos/summera/rets/issues/events{/number}","events_url":"https://api.github.com/repos/summera/rets/events","assignees_url":"https://api.github.com/repos/summera/rets/assignees{/user}","branches_url":"https://api.github.com/repos/summera/rets/branches{/branch}","tags_url":"https://api.github.com/repos/summera/rets/tags","blobs_url":"https://api.github.com/repos/summera/rets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/summera/rets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/summera/rets/git/refs{/sha}","trees_url":"https://api.github.com/repos/summera/rets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/summera/rets/statuses/{sha}","languages_url":"https://api.github.com/repos/summera/rets/languages","stargazers_url":"https://api.github.com/repos/summera/rets/stargazers","contributors_url":"https://api.github.com/repos/summera/rets/contributors","subscribers_url":"https://api.github.com/repos/summera/rets/subscribers","subscription_url":"https://api.github.com/repos/summera/rets/subscription","commits_url":"https://api.github.com/repos/summera/rets/commits{/sha}","git_commits_url":"https://api.github.com/repos/summera/rets/git/commits{/sha}","comments_url":"https://api.github.com/repos/summera/rets/comments{/number}","issue_comment_url":"https://api.github.com/repos/summera/rets/issues/comments{/number}","contents_url":"https://api.github.com/repos/summera/rets/contents/{+path}","compare_url":"https://api.github.com/repos/summera/rets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/summera/rets/merges","archive_url":"https://api.github.com/repos/summera/rets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/summera/rets/downloads","issues_url":"https://api.github.com/repos/summera/rets/issues{/number}","pulls_url":"https://api.github.com/repos/summera/rets/pulls{/number}","milestones_url":"https://api.github.com/repos/summera/rets/milestones{/number}","notifications_url":"https://api.github.com/repos/summera/rets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/summera/rets/labels{/name}","releases_url":"https://api.github.com/repos/summera/rets/releases{/id}","deployments_url":"https://api.github.com/repos/summera/rets/deployments","created_at":"2015-05-20T23:23:22Z","updated_at":"2015-05-20T23:23:23Z","pushed_at":"2016-02-13T23:10:34Z","git_url":"git://github.com/summera/rets.git","ssh_url":"git@github.com:summera/rets.git","clone_url":"https://github.com/summera/rets.git","svn_url":"https://github.com/summera/rets","homepage":"https://github.com/estately/rets","size":512,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"estately:master","ref":"master","sha":"c6af577afe9cb158d9c393eab67b41190072ee77","user":{"login":"estately","id":368721,"avatar_url":"https://avatars.githubusercontent.com/u/368721?v=3","gravatar_id":"","url":"https://api.github.com/users/estately","html_url":"https://github.com/estately","followers_url":"https://api.github.com/users/estately/followers","following_url":"https://api.github.com/users/estately/following{/other_user}","gists_url":"https://api.github.com/users/estately/gists{/gist_id}","starred_url":"https://api.github.com/users/estately/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estately/subscriptions","organizations_url":"https://api.github.com/users/estately/orgs","repos_url":"https://api.github.com/users/estately/repos","events_url":"https://api.github.com/users/estately/events{/privacy}","received_events_url":"https://api.github.com/users/estately/received_events","type":"Organization","site_admin":false},"repo":{"id":1522301,"name":"rets","full_name":"estately/rets","owner":{"login":"estately","id":368721,"avatar_url":"https://avatars.githubusercontent.com/u/368721?v=3","gravatar_id":"","url":"https://api.github.com/users/estately","html_url":"https://github.com/estately","followers_url":"https://api.github.com/users/estately/followers","following_url":"https://api.github.com/users/estately/following{/other_user}","gists_url":"https://api.github.com/users/estately/gists{/gist_id}","starred_url":"https://api.github.com/users/estately/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estately/subscriptions","organizations_url":"https://api.github.com/users/estately/orgs","repos_url":"https://api.github.com/users/estately/repos","events_url":"https://api.github.com/users/estately/events{/privacy}","received_events_url":"https://api.github.com/users/estately/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/estately/rets","description":"A pure-ruby library for fetching data from RETS servers","fork":false,"url":"https://api.github.com/repos/estately/rets","forks_url":"https://api.github.com/repos/estately/rets/forks","keys_url":"https://api.github.com/repos/estately/rets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/estately/rets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/estately/rets/teams","hooks_url":"https://api.github.com/repos/estately/rets/hooks","issue_events_url":"https://api.github.com/repos/estately/rets/issues/events{/number}","events_url":"https://api.github.com/repos/estately/rets/events","assignees_url":"https://api.github.com/repos/estately/rets/assignees{/user}","branches_url":"https://api.github.com/repos/estately/rets/branches{/branch}","tags_url":"https://api.github.com/repos/estately/rets/tags","blobs_url":"https://api.github.com/repos/estately/rets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/estately/rets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/estately/rets/git/refs{/sha}","trees_url":"https://api.github.com/repos/estately/rets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/estately/rets/statuses/{sha}","languages_url":"https://api.github.com/repos/estately/rets/languages","stargazers_url":"https://api.github.com/repos/estately/rets/stargazers","contributors_url":"https://api.github.com/repos/estately/rets/contributors","subscribers_url":"https://api.github.com/repos/estately/rets/subscribers","subscription_url":"https://api.github.com/repos/estately/rets/subscription","commits_url":"https://api.github.com/repos/estately/rets/commits{/sha}","git_commits_url":"https://api.github.com/repos/estately/rets/git/commits{/sha}","comments_url":"https://api.github.com/repos/estately/rets/comments{/number}","issue_comment_url":"https://api.github.com/repos/estately/rets/issues/comments{/number}","contents_url":"https://api.github.com/repos/estately/rets/contents/{+path}","compare_url":"https://api.github.com/repos/estately/rets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/estately/rets/merges","archive_url":"https://api.github.com/repos/estately/rets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/estately/rets/downloads","issues_url":"https://api.github.com/repos/estately/rets/issues{/number}","pulls_url":"https://api.github.com/repos/estately/rets/pulls{/number}","milestones_url":"https://api.github.com/repos/estately/rets/milestones{/number}","notifications_url":"https://api.github.com/repos/estately/rets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/estately/rets/labels{/name}","releases_url":"https://api.github.com/repos/estately/rets/releases{/id}","deployments_url":"https://api.github.com/repos/estately/rets/deployments","created_at":"2011-03-24T19:04:06Z","updated_at":"2016-01-23T15:42:39Z","pushed_at":"2016-01-27T23:54:10Z","git_url":"git://github.com/estately/rets.git","ssh_url":"git@github.com:estately/rets.git","clone_url":"https://github.com/estately/rets.git","svn_url":"https://github.com/estately/rets","homepage":"https://github.com/estately/rets","size":572,"stargazers_count":65,"watchers_count":65,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":51,"mirror_url":null,"open_issues_count":7,"forks":51,"open_issues":7,"watchers":65,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/estately/rets/pulls/173"},"html":{"href":"https://github.com/estately/rets/pull/173"},"issue":{"href":"https://api.github.com/repos/estately/rets/issues/173"},"comments":{"href":"https://api.github.com/repos/estately/rets/issues/173/comments"},"review_comments":{"href":"https://api.github.com/repos/estately/rets/pulls/173/comments"},"review_comment":{"href":"https://api.github.com/repos/estately/rets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/estately/rets/pulls/173/commits"},"statuses":{"href":"https://api.github.com/repos/estately/rets/statuses/5ef8eb2bf408469d9910bbfce01551bb3d8de961"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":177,"deletions":0,"changed_files":4}}