Skip to content

Commit

Permalink
Added send-rsvp support for events api (#444)
Browse files Browse the repository at this point in the history
Added send-rsvp support for events api
  • Loading branch information
yifanplanet authored Dec 21, 2023
1 parent 1c76ced commit a484805
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/nylas/resources/events.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,20 @@ def destroy(identifier:, event_id:, 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

0 comments on commit a484805

Please sign in to comment.