lib/nylas/resources/grants.rb in nylas-6.0.0.beta.3 vs lib/nylas/resources/grants.rb in nylas-6.0.0.beta.4

- old
+ new

@@ -14,43 +14,43 @@ # # @param query_params [Hash, nil] Query params to pass to the request. # @return [Array(Array(Hash), String)] The list of grants and API Request ID. def list(query_params: nil) get( - path: "#{api_uri}/v3/grant", + path: "#{api_uri}/v3/grants", query_params: query_params ) end # Return a grant. # # @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}" + path: "#{api_uri}/v3/grants/#{grant_id}" ) end # Update a grant. # # @param grant_id [String] The id of the grant to update. # @param request_body [Hash] The values to update the grant with # @return [Array(Hash, String)] The updated grant and API Request ID. def update(grant_id:, request_body:) put( - path: "#{api_uri}/v3/grant/#{grant_id}", + path: "#{api_uri}/v3/grants/#{grant_id}", request_body: request_body ) end # Delete a grant. # # @param grant_id [String] The id of the grant to delete. # @return [Array(TrueClass, String)] True and the API Request ID for the delete operation. def destroy(grant_id:) _, request_id = delete( - path: "#{api_uri}/v3/grant/#{grant_id}" + path: "#{api_uri}/v3/grants/#{grant_id}" ) [true, request_id] end end