Sha256: 6ce80c70c208ffa706bb9cfb63ad24923ef82ed4949bee911d8fec0c39ce425d
Contents?: true
Size: 747 Bytes
Versions: 85
Compression:
Stored size: 747 Bytes
Contents
# frozen_string_literal: true require "resend/request" require "resend/errors" module Resend # api keys api wrapper module ApiKeys class << self # https://resend.com/docs/api-reference/api-keys/create-api-key def create(params) path = "api-keys" Resend::Request.new(path, params, "post").perform end # https://resend.com/docs/api-reference/api-keys/list-api-keys def list path = "api-keys" Resend::Request.new(path, {}, "get").perform end # https://resend.com/docs/api-reference/api-keys/delete-api-key def remove(api_key_id = "") path = "api-keys/#{api_key_id}" Resend::Request.new(path, {}, "delete").perform end end end end
Version data entries
85 entries across 85 versions & 2 rubygems