lib/nylas/resources/events.rb in nylas-6.0.0.beta.2 vs lib/nylas/resources/events.rb in nylas-6.0.0.beta.3
- old
+ new
@@ -77,7 +77,22 @@
query_params: query_params
)
[true, request_id]
end
+
+ # Send RSVP. Allows users to respond to events they have been added to as an attendee.
+ #
+ # @param identifier [String] Grant ID or email account from which to send RSVP with.
+ # @param event_id [String] The id of the event to respond to.
+ # @param request_body [Hash] The status values to send the RSVP with.
+ # @param query_params [Hash] The query parameters to include in the request
+ # @return [Hash] Response object with the API Request ID.
+ def send_rsvp(identifier:, event_id:, request_body:, query_params:)
+ post(
+ path: "#{api_uri}/v3/grants/#{identifier}/events/#{event_id}/send-rsvp",
+ query_params: query_params,
+ request_body: request_body
+ )
+ end
end
end