Sha256: 2bb2efeb6b5c195727ea40fb74f48a1bb01ca4624c30ea7574647772f2b2a5d6
Contents?: true
Size: 459 Bytes
Versions: 3
Compression:
Stored size: 459 Bytes
Contents
module ApiAiWrapper::Components class ExtractorComponent < ApiAiWrapper::Components::Component def raise_if_unauthorized raise ApiAiWrapper::Errors::Engine::MissingToken.new("client token is missing") if self.engine.client_token.blank? end def set_headers self.engine.headers = { "Authorization" => "Bearer #{self.engine.client_token}", "Content-Type" => "application/json; charset=utf-8" } end end end
Version data entries
3 entries across 3 versions & 1 rubygems