A ruby wrapper around the PicturePath AUI API. PicturePath provides an API to post virtual tours to Realtor.com and other real estate websites.
sudo gem install picturepath
# Create your account info account = Account.new account.username = "username" account.password = "password" account.action_url = "http://picturepath.homestore.com/picturepath/cgi-bin/receiver.pl" # Create the request request = Request.new request.site_realtor = [2845, 2845] request.customer_number = "123" request.product_line = "LINK" request.street1 = "555 Address Ln" request.city = "Mountain View" request.state = "CA" request.zip_code = "92562" request.mls_id = "a899809" request.tour_url = "http://www.yourwebsite.com/virtual_tour/23" # Send the request response = PicturePath::Client.submit(request, account, :check) # Check the reponse unless response.success? raise "An error occurred" end
Check out the rdocs for the detailed API.
If you have any questions or comments email email@example.com
How to submit patches
To submit patches email firstname.lastname@example.org
The trunk repository is
svn://rubyforge.org/var/svn/picturepath/trunk for anonymous access.
This code is free to use under the terms of the MIT license.
Comments are welcome. Send an email to email@example.com.