Module: Resend::OAuthGrants

Defined in:
lib/resend/oauth_grants.rb

Overview

oauth grants api wrapper

Class Method Summary collapse

Class Method Details

.list(params = {}) ⇒ Object



8
9
10
11
# File 'lib/resend/oauth_grants.rb', line 8

def list(params = {})
  path = Resend::PaginationHelper.build_paginated_path("oauth/grants", params)
  Resend::Request.new(path, {}, "get").perform
end

.revoke(oauth_grant_id = "") ⇒ Object



14
15
16
17
# File 'lib/resend/oauth_grants.rb', line 14

def revoke(oauth_grant_id = "")
  path = "oauth/grants/#{oauth_grant_id}"
  Resend::Request.new(path, {}, "delete").perform
end