Class: Nylas::SmartCompose
- Includes:
- ApiOperations::Post
- Defined in:
- lib/nylas/resources/smart_compose.rb
Overview
Nylas Smart Compose API
Instance Method Summary collapse
-
#compose_message(identifier:, request_body:) ⇒ Array(Hash, String)
Compose a message.
-
#compose_message_reply(identifier:, message_id:, request_body:) ⇒ Array(Hash, String)
Compose a message reply.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Nylas::Resource
Instance Method Details
#compose_message(identifier:, request_body:) ⇒ Array(Hash, String)
Compose a message.
16 17 18 19 20 21 |
# File 'lib/nylas/resources/smart_compose.rb', line 16 def (identifier:, request_body:) post( path: "#{api_uri}/v3/grants/#{identifier}/messages/smart-compose", request_body: request_body ) end |
#compose_message_reply(identifier:, message_id:, request_body:) ⇒ Array(Hash, String)
Compose a message reply.
29 30 31 32 33 34 |
# File 'lib/nylas/resources/smart_compose.rb', line 29 def (identifier:, message_id:, request_body:) post( path: "#{api_uri}/v3/grants/#{identifier}/messages/#{}/smart-compose", request_body: request_body ) end |