The Vapi Ruby library provides access to the Vapi API from Ruby.
API reference documentation is available here.
Install the gem and add to the application's Gemfile by executing:
bundle add vapi_server_sdk
If bundler is not being used to manage dependencies, install the gem by executing:
gem install vapi_server_sdk
require "vapi_server_sdk"
client = Vapi::Client.new(
token: 'YOUR_TOKEN'
)
result = client.calls.create()
The SDK exposes an async client that you can use to make non-blocking requests.
require "vapi_server_sdk"
client = Vapi::AsyncClient.new(
token: 'YOUR_TOKEN'
)
result = client.calls.create()
While we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us!
On the other hand, contributions to the README are always very welcome!