Module: Mailblastr::ApiKeys
- Defined in:
- lib/mailblastr/api_keys.rb
Overview
Listing only, by design. Keys are created, re-scoped and revoked in the
MailBlastr dashboard by a signed-in user — POST /api-keys,
PATCH /api-keys/:id and DELETE /api-keys/:id answer 403 dashboard_only
to every API-key caller, whatever its permission. Exposing only list
means a leaked key cannot mint itself a replacement or widen its access.
Class Method Summary collapse
-
.list(params = {}) ⇒ Object
GET /api-keys — with no pagination params every non-revoked key is returned.
Class Method Details
.list(params = {}) ⇒ Object
GET /api-keys — with no pagination params every non-revoked key is
returned. token here is the 8-character display prefix, never the
secret.
14 15 16 |
# File 'lib/mailblastr/api_keys.rb', line 14 def list(params = {}) Client.request(:get, "/api-keys", query: Client.pagination(params)) end |