rubyruby-on-rails-3ruby-on-rails-4sabresabredav

Sabre Dev Studio API call by ruby


I'm trying to take hotels details from sabre dev studio in my app and I'm using gem 'sabre_dev_studio' but I can't understand how and which url I have to hit (APIs) for the hotel details. I'm using like this :

SabreDevStudio.configure do |c|
    c.client_id     = 'V1:kiifsurie29jj:KITPUI:DFR'
    c.client_secret = 'wiurRTs'
    c.uri           = 'https://api.test.sabre.com'
  end
  token = SabreDevStudio::Base.get_access_token
  themes = SabreDevStudio::Base.get('/v1/shop/themes')

this is working and give me proper response but for hotels I'm not getting which url are for apies.


Solution

  • https://developer.sabre.com/docs/read/rest_basics/endpoints_and_uris

    This is the list of the urls you'll want