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



11
12
13
14
# File 'lib/resend/api_keys.rb', line 11

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

.listObject



17
18
19
20
# File 'lib/resend/api_keys.rb', line 17

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

.remove(api_key_id = "") ⇒ Object



23
24
25
26
# File 'lib/resend/api_keys.rb', line 23

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