VapiAI / client-sdk-ios

This package lets you start Vapi calls directly in your iOS app.
MIT License
17 stars 9 forks source link

Return the call in the response for the start function #2

Closed Nikhil-Kulkarni closed 11 months ago

Nikhil-Kulkarni commented 11 months ago

Background We are unable to associate a call with a userId with the iOS SDK because vapi.start does not return the id of the call. It is currently a void function. The typescript SDK returns a Promise<Call>. I'm updating the iOS SDK to return the WebCallResponse and adding the id returned by /call/web to the WebCallResponse. This currently does not have parity with the typescript SDK (which returns the entire Call) but I'll leave that to you guys

Changes