Module: Resend::ApiKeys

Defined in:
lib/resend/api_keys.rb

Overview

api keys api wrapper

Class Method Summary collapse

Class Method Details

.create(params) ⇒ Object



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

def create(params)
  path = "api-keys"
  Resend::Request.new(path, params, "post").perform
end

.listObject



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

def list
  path = "api-keys"
  Resend::Request.new(path, {}, "get").perform
end

.remove(api_key_id = "") ⇒ Object



20
21
22
23
# File 'lib/resend/api_keys.rb', line 20

def remove(api_key_id = "")
  path = "api-keys/#{api_key_id}"
  Resend::Request.new(path, {}, "delete").perform
end