Class: Vapi::AsyncClient
- Inherits:
-
Object
- Object
- Vapi::AsyncClient
- Defined in:
- lib/vapi_server_sdk.rb
Instance Attribute Summary collapse
- #analytics ⇒ Vapi::AsyncAnalyticsClient readonly
- #assistants ⇒ Vapi::AsyncAssistantsClient readonly
- #blocks ⇒ Vapi::AsyncBlocksClient readonly
- #calls ⇒ Vapi::AsyncCallsClient readonly
- #files ⇒ Vapi::AsyncFilesClient readonly
- #knowledge_bases ⇒ Vapi::AsyncKnowledgeBasesClient readonly
- #logs ⇒ Vapi::AsyncLogsClient readonly
- #phone_numbers ⇒ Vapi::AsyncPhoneNumbersClient readonly
- #squads ⇒ Vapi::AsyncSquadsClient readonly
- #tools ⇒ Vapi::AsyncToolsClient readonly
Instance Method Summary collapse
Constructor Details
#initialize(token:, base_url: nil, environment: Vapi::Environment::DEFAULT, max_retries: nil, timeout_in_seconds: nil) ⇒ Vapi::AsyncClient
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/vapi_server_sdk.rb', line 96 def initialize(token:, base_url: nil, environment: Vapi::Environment::DEFAULT, max_retries: nil, timeout_in_seconds: nil) @async_request_client = Vapi::AsyncRequestClient.new( base_url: base_url, environment: environment, max_retries: max_retries, timeout_in_seconds: timeout_in_seconds, token: token ) @calls = Vapi::AsyncCallsClient.new(request_client: @async_request_client) @assistants = Vapi::AsyncAssistantsClient.new(request_client: @async_request_client) @phone_numbers = Vapi::AsyncPhoneNumbersClient.new(request_client: @async_request_client) @squads = Vapi::AsyncSquadsClient.new(request_client: @async_request_client) @knowledge_bases = Vapi::AsyncKnowledgeBasesClient.new(request_client: @async_request_client) @blocks = Vapi::AsyncBlocksClient.new(request_client: @async_request_client) @tools = Vapi::AsyncToolsClient.new(request_client: @async_request_client) @files = Vapi::AsyncFilesClient.new(request_client: @async_request_client) @analytics = Vapi::AsyncAnalyticsClient.new(request_client: @async_request_client) @logs = Vapi::AsyncLogsClient.new(request_client: @async_request_client) end |
Instance Attribute Details
#analytics ⇒ Vapi::AsyncAnalyticsClient (readonly)
86 87 88 |
# File 'lib/vapi_server_sdk.rb', line 86 def analytics @analytics end |
#assistants ⇒ Vapi::AsyncAssistantsClient (readonly)
72 73 74 |
# File 'lib/vapi_server_sdk.rb', line 72 def assistants @assistants end |
#blocks ⇒ Vapi::AsyncBlocksClient (readonly)
80 81 82 |
# File 'lib/vapi_server_sdk.rb', line 80 def blocks @blocks end |
#calls ⇒ Vapi::AsyncCallsClient (readonly)
70 71 72 |
# File 'lib/vapi_server_sdk.rb', line 70 def calls @calls end |
#files ⇒ Vapi::AsyncFilesClient (readonly)
84 85 86 |
# File 'lib/vapi_server_sdk.rb', line 84 def files @files end |
#knowledge_bases ⇒ Vapi::AsyncKnowledgeBasesClient (readonly)
78 79 80 |
# File 'lib/vapi_server_sdk.rb', line 78 def knowledge_bases @knowledge_bases end |
#logs ⇒ Vapi::AsyncLogsClient (readonly)
88 89 90 |
# File 'lib/vapi_server_sdk.rb', line 88 def logs @logs end |
#phone_numbers ⇒ Vapi::AsyncPhoneNumbersClient (readonly)
74 75 76 |
# File 'lib/vapi_server_sdk.rb', line 74 def phone_numbers @phone_numbers end |
#squads ⇒ Vapi::AsyncSquadsClient (readonly)
76 77 78 |
# File 'lib/vapi_server_sdk.rb', line 76 def squads @squads end |
#tools ⇒ Vapi::AsyncToolsClient (readonly)
82 83 84 |
# File 'lib/vapi_server_sdk.rb', line 82 def tools @tools end |