Class: Vapi::Client
- Inherits:
-
Object
- Object
- Vapi::Client
- Defined in:
- lib/vapi_server_sdk.rb
Instance Attribute Summary collapse
- #analytics ⇒ Vapi::AnalyticsClient readonly
- #assistants ⇒ Vapi::AssistantsClient readonly
- #blocks ⇒ Vapi::BlocksClient readonly
- #calls ⇒ Vapi::CallsClient readonly
- #files ⇒ Vapi::FilesClient readonly
- #logs ⇒ Vapi::LogsClient readonly
- #phone_numbers ⇒ Vapi::PhoneNumbersClient readonly
- #squads ⇒ Vapi::SquadsClient readonly
- #tools ⇒ Vapi::ToolsClient readonly
Instance Method Summary collapse
Constructor Details
#initialize(token:, base_url: nil, environment: Vapi::Environment::DEFAULT, max_retries: nil, timeout_in_seconds: nil) ⇒ Vapi::Client
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/vapi_server_sdk.rb', line 43 def initialize(token:, base_url: nil, environment: Vapi::Environment::DEFAULT, max_retries: nil, timeout_in_seconds: nil) @request_client = Vapi::RequestClient.new( base_url: base_url, environment: environment, max_retries: max_retries, timeout_in_seconds: timeout_in_seconds, token: token ) @calls = Vapi::CallsClient.new(request_client: @request_client) @assistants = Vapi::AssistantsClient.new(request_client: @request_client) @phone_numbers = Vapi::PhoneNumbersClient.new(request_client: @request_client) @squads = Vapi::SquadsClient.new(request_client: @request_client) @blocks = Vapi::BlocksClient.new(request_client: @request_client) @tools = Vapi::ToolsClient.new(request_client: @request_client) @files = Vapi::FilesClient.new(request_client: @request_client) @analytics = Vapi::AnalyticsClient.new(request_client: @request_client) @logs = Vapi::LogsClient.new(request_client: @request_client) end |
Instance Attribute Details
#analytics ⇒ Vapi::AnalyticsClient (readonly)
33 34 35 |
# File 'lib/vapi_server_sdk.rb', line 33 def analytics @analytics end |
#assistants ⇒ Vapi::AssistantsClient (readonly)
21 22 23 |
# File 'lib/vapi_server_sdk.rb', line 21 def assistants @assistants end |
#blocks ⇒ Vapi::BlocksClient (readonly)
27 28 29 |
# File 'lib/vapi_server_sdk.rb', line 27 def blocks @blocks end |
#calls ⇒ Vapi::CallsClient (readonly)
19 20 21 |
# File 'lib/vapi_server_sdk.rb', line 19 def calls @calls end |
#files ⇒ Vapi::FilesClient (readonly)
31 32 33 |
# File 'lib/vapi_server_sdk.rb', line 31 def files @files end |
#logs ⇒ Vapi::LogsClient (readonly)
35 36 37 |
# File 'lib/vapi_server_sdk.rb', line 35 def logs @logs end |
#phone_numbers ⇒ Vapi::PhoneNumbersClient (readonly)
23 24 25 |
# File 'lib/vapi_server_sdk.rb', line 23 def phone_numbers @phone_numbers end |
#squads ⇒ Vapi::SquadsClient (readonly)
25 26 27 |
# File 'lib/vapi_server_sdk.rb', line 25 def squads @squads end |
#tools ⇒ Vapi::ToolsClient (readonly)
29 30 31 |
# File 'lib/vapi_server_sdk.rb', line 29 def tools @tools end |