lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb in twilio-ruby-6.9.1 vs lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb in twilio-ruby-6.11.0

- old
+ new

@@ -19,10 +19,11 @@ class V1 < Version class ServiceContext < InstanceContext class ConfigurationContext < InstanceContext class WebhookList < ListResource + ## # Initialize the WebhookList # @param [Version] version Version that contains the resource # @return [WebhookList] WebhookList def initialize(version, chat_service_sid: nil) @@ -60,10 +61,11 @@ ## # Fetch the WebhookInstance # @return [WebhookInstance] Fetched WebhookInstance def fetch + payload = @version.fetch('GET', @uri) WebhookInstance.new( @version, payload, chat_service_sid: @solution[:chat_service_sid], @@ -89,9 +91,10 @@ 'PostWebhookUrl' => post_webhook_url, 'Filters' => Twilio.serialize_list(filters) { |e| e }, 'Method' => method, }) + payload = @version.update('POST', @uri, data: data) WebhookInstance.new( @version, payload, chat_service_sid: @solution[:chat_service_sid],