Sha256: 393c3220bae1912b0ddcda72fb71afe2b0d2debb991909ac2373d72c096f6e80

Contents?: true

Size: 591 Bytes

Versions: 5

Compression:

Stored size: 591 Bytes

Contents

require 'bundler/setup'
require 'sinatra'
require 'telphin_api'

class OmniTelphinDemo < Sinatra::Base
  use Rack::Session::Cookie

  TelphinApi.configure do |config|
    # Authorization parameters (not needed when using an external authorization):
    config.app_key      = 'F~PUJXc8X5_2vUy7W5B~IBjXm6Hv~dRT'
    config.app_secret   = 'x~X1r206MB~ckpYhb6c.W4ch4OLx_9If'
  end

  get '/' do
    @tph = TelphinApi.authorize
    ar = @tph.extensions.phone_call_events(:user_id => '@me', :extension_number => '17608s*101', :method => :get)

    abort ar.inspect
  end

end

OmniTelphinDemo.run!

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
telphin_api-1.0.4 example/app.rb
telphin_api-1.0.3 example/app.rb
telphin_api-1.0.2 example/app.rb
telphin_api-1.0.1 example/app.rb
telphin_api-1.0.0 example/app.rb