lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb in twilio-ruby-7.1.1 vs lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb in twilio-ruby-7.2.0

- old
+ new

@@ -36,12 +36,13 @@ ## # Create the EvaluationInstance # @return [EvaluationInstance] Created EvaluationInstance def create + headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) - payload = @version.create('POST', @uri) + payload = @version.create('POST', @uri, headers: headers) EvaluationInstance.new( @version, payload, bundle_sid: @solution[:bundle_sid], ) @@ -160,11 +161,12 @@ ## # Fetch the EvaluationInstance # @return [EvaluationInstance] Fetched EvaluationInstance def fetch + headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) - payload = @version.fetch('GET', @uri) + payload = @version.fetch('GET', @uri, headers: headers) EvaluationInstance.new( @version, payload, bundle_sid: @solution[:bundle_sid], sid: @solution[:sid],