Method: Twilio::REST::Chat::V2::ServiceContext#fetch
- Defined in:
- lib/twilio-ruby/rest/chat/v2/service.rb
#fetch ⇒ ServiceInstance
Fetch the ServiceInstance
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 |
# File 'lib/twilio-ruby/rest/chat/v2/service.rb', line 264 def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) payload = @version.fetch('GET', @uri, headers: headers) ServiceInstance.new( @version, payload, sid: @solution[:sid], ) end |