PicturePath

Download here

0.5.0

What

A ruby wrapper around the PicturePath AUI API. PicturePath provides an API to post virtual tours to Realtor.com and other real estate websites.

Installing

sudo gem install picturepath

The basics

  # 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.

Support

If you have any questions or comments email code@esomnie.com

How to submit patches

To submit patches email code@esomnie.com

The trunk repository is svn://rubyforge.org/var/svn/picturepath/trunk for anonymous access.

License

This code is free to use under the terms of the MIT license.

Contact

Comments are welcome. Send an email to code@esomnie.com.