lib/nylas/resources/drafts.rb in nylas-6.0.0 vs lib/nylas/resources/drafts.rb in nylas-6.0.1
- old
+ new
@@ -14,12 +14,12 @@
# Return all drafts.
#
# @param identifier [String] Grant ID or email account to query.
# @param query_params [Hash, nil] Query params to pass to the request.
- # @return [Array(Array(Hash), String)] The list of drafts and API Request ID.
+ # @return [Array(Array(Hash), String, String)] The list of drafts, API Request ID, and next cursor.
def list(identifier:, query_params: nil)
- get(
+ get_list(
path: "#{api_uri}/v3/grants/#{identifier}/drafts",
query_params: query_params
)
end