Class: Wavix::Client
- Inherits:
-
Object
- Object
- Wavix::Client
- Defined in:
- lib/wavix/client.rb
Instance Method Summary collapse
- #api_keys ⇒ Wavix::APIKeys::Client
- #billing ⇒ Wavix::Billing::Client
- #buy ⇒ Wavix::Buy::Client
- #call_control ⇒ Wavix::CallControl::Client
- #call_recording ⇒ Wavix::CallRecording::Client
- #call_webhooks ⇒ Wavix::CallWebhooks::Client
- #cart ⇒ Wavix::Cart::Client
- #cdrs ⇒ Wavix::Cdrs::Client
- #initialize(token:, base_url: nil, max_retries: 2) ⇒ void constructor
- #link_shortener ⇒ Wavix::LinkShortener::Client
- #number_validator ⇒ Wavix::NumberValidator::Client
- #numbers ⇒ Wavix::Numbers::Client
- #profile ⇒ Wavix::Profile::Client
- #sip_trunks ⇒ Wavix::SipTrunks::Client
- #sms_and_mms ⇒ Wavix::SmsAndMms::Client
- #speech_analytics ⇒ Wavix::SpeechAnalytics::Client
- #sub_accounts ⇒ Wavix::SubAccounts::Client
- #ten_dlc ⇒ Wavix::TenDlc::Client
- #two_fa ⇒ Wavix::TwoFa::Client
- #voice_campaigns ⇒ Wavix::VoiceCampaigns::Client
- #webrtc ⇒ Wavix::Webrtc::Client
Constructor Details
#initialize(token:, base_url: nil, max_retries: 2) ⇒ void
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/wavix/client.rb', line 10 def initialize(token:, base_url: nil, max_retries: 2) @raw_client = Wavix::Internal::Http::RawClient.new( base_url: base_url || Wavix::Environment::DEFAULT, headers: { "User-Agent" => "wavix-ruby-sdk/1.0.0", "X-Fern-Language" => "Ruby", Authorization: "Bearer #{token}" }, max_retries: max_retries ) end |
Instance Method Details
#api_keys ⇒ Wavix::APIKeys::Client
23 24 25 |
# File 'lib/wavix/client.rb', line 23 def api_keys @api_keys ||= Wavix::APIKeys::Client.new(client: @raw_client) end |
#billing ⇒ Wavix::Billing::Client
98 99 100 |
# File 'lib/wavix/client.rb', line 98 def billing @billing ||= Wavix::Billing::Client.new(client: @raw_client) end |
#buy ⇒ Wavix::Buy::Client
103 104 105 |
# File 'lib/wavix/client.rb', line 103 def buy @buy ||= Wavix::Buy::Client.new(client: @raw_client) end |
#call_control ⇒ Wavix::CallControl::Client
63 64 65 |
# File 'lib/wavix/client.rb', line 63 def call_control @call_control ||= Wavix::CallControl::Client.new(client: @raw_client) end |
#call_recording ⇒ Wavix::CallRecording::Client
48 49 50 |
# File 'lib/wavix/client.rb', line 48 def call_recording @call_recording ||= Wavix::CallRecording::Client.new(client: @raw_client) end |
#call_webhooks ⇒ Wavix::CallWebhooks::Client
58 59 60 |
# File 'lib/wavix/client.rb', line 58 def call_webhooks @call_webhooks ||= Wavix::CallWebhooks::Client.new(client: @raw_client) end |
#cart ⇒ Wavix::Cart::Client
33 34 35 |
# File 'lib/wavix/client.rb', line 33 def cart @cart ||= Wavix::Cart::Client.new(client: @raw_client) end |
#cdrs ⇒ Wavix::Cdrs::Client
43 44 45 |
# File 'lib/wavix/client.rb', line 43 def cdrs @cdrs ||= Wavix::Cdrs::Client.new(client: @raw_client) end |
#link_shortener ⇒ Wavix::LinkShortener::Client
78 79 80 |
# File 'lib/wavix/client.rb', line 78 def link_shortener @link_shortener ||= Wavix::LinkShortener::Client.new(client: @raw_client) end |
#number_validator ⇒ Wavix::NumberValidator::Client
68 69 70 |
# File 'lib/wavix/client.rb', line 68 def number_validator @number_validator ||= Wavix::NumberValidator::Client.new(client: @raw_client) end |
#numbers ⇒ Wavix::Numbers::Client
38 39 40 |
# File 'lib/wavix/client.rb', line 38 def numbers @numbers ||= Wavix::Numbers::Client.new(client: @raw_client) end |
#profile ⇒ Wavix::Profile::Client
83 84 85 |
# File 'lib/wavix/client.rb', line 83 def profile @profile ||= Wavix::Profile::Client.new(client: @raw_client) end |
#sip_trunks ⇒ Wavix::SipTrunks::Client
28 29 30 |
# File 'lib/wavix/client.rb', line 28 def sip_trunks @sip_trunks ||= Wavix::SipTrunks::Client.new(client: @raw_client) end |
#sms_and_mms ⇒ Wavix::SmsAndMms::Client
93 94 95 |
# File 'lib/wavix/client.rb', line 93 def sms_and_mms @sms_and_mms ||= Wavix::SmsAndMms::Client.new(client: @raw_client) end |
#speech_analytics ⇒ Wavix::SpeechAnalytics::Client
53 54 55 |
# File 'lib/wavix/client.rb', line 53 def speech_analytics @speech_analytics ||= Wavix::SpeechAnalytics::Client.new(client: @raw_client) end |
#sub_accounts ⇒ Wavix::SubAccounts::Client
88 89 90 |
# File 'lib/wavix/client.rb', line 88 def sub_accounts @sub_accounts ||= Wavix::SubAccounts::Client.new(client: @raw_client) end |
#ten_dlc ⇒ Wavix::TenDlc::Client
108 109 110 |
# File 'lib/wavix/client.rb', line 108 def ten_dlc @ten_dlc ||= Wavix::TenDlc::Client.new(client: @raw_client) end |
#two_fa ⇒ Wavix::TwoFa::Client
113 114 115 |
# File 'lib/wavix/client.rb', line 113 def two_fa @two_fa ||= Wavix::TwoFa::Client.new(client: @raw_client) end |
#voice_campaigns ⇒ Wavix::VoiceCampaigns::Client
73 74 75 |
# File 'lib/wavix/client.rb', line 73 def voice_campaigns @voice_campaigns ||= Wavix::VoiceCampaigns::Client.new(client: @raw_client) end |
#webrtc ⇒ Wavix::Webrtc::Client
118 119 120 |
# File 'lib/wavix/client.rb', line 118 def webrtc @webrtc ||= Wavix::Webrtc::Client.new(client: @raw_client) end |