RoomoramaApi is a Ruby gem that wraps the Roomorama API V1.0 documented at https://roomorama.com/api.
For a step by step guide on getting started with Roomorama API, refer to https://roomorama.com/api/step_by_step.
This gem does not handle OAuth authentication or token generation. You may want to use https://github.com/intridea/omniauth and the Roomorama OAuth strategy at https://github.com/roomorama/omniauth-roomorama
Add this line to your application's Gemfile:
gem 'roomorama_api'
And then execute:
$ bundle
Currently this gem does not handle any oauth authentication yet. Host and Guest API calls are not support yet in this version.
client = RoomoramaApi::Client.new
client = RoomoramaApi::Client.new '<OAUTH TOKEN>'
client.destinations_all
client.properties_find destination: 'singapore'
client.properties_find destination: 'singapore', order: 'title_asc'
client.properties_get_data 500, strip_html: 'false'
client.user_me
destinations_all
properties_find
properties_get_data
properties_find_similar
properties_availabilities
properties_price_check
properties_reviews
favorites_list
favorites_create
favorites_delete
perks_list
perks_get_data
users_me
users_update_profile
users_get_data
users_register
users_reviews
host_properties_list
host_properties_show
host_properties_create
host_properties_update
host_availabilities_list
host_availabilities_update
host_inquiries_list
host_inquiries_show
Turn on debug mode with
RoomoramaApi::Client.debug = true
Submit an issue or a pull request.