lib/nylas/resources/grants.rb in nylas-6.0.0.beta.2 vs lib/nylas/resources/grants.rb in nylas-6.0.0.beta.3
- old
+ new
@@ -5,11 +5,10 @@
module Nylas
# Grants
class Grants < Resource
include ApiOperations::Get
- include ApiOperations::Post
include ApiOperations::Put
include ApiOperations::Delete
# Return all grants.
#
@@ -27,20 +26,9 @@
# @param grant_id [String] The id of the grant to return.
# @return [Array(Hash, String)] The grant and API request ID.
def find(grant_id:)
get(
path: "#{api_uri}/v3/grant/#{grant_id}"
- )
- end
-
- # Create a Grant via Custom Authentication.
- #
- # @param request_body [Hash] The values to create the Grant with.
- # @return [Array(Hash, String)] Created grant and API Request ID.
- def create(request_body)
- post(
- path: "#{api_uri}/v3/#{resource_name}/custom",
- request_body: request_body
)
end
# Update a grant.
#