mailkite 0.6.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mailkite.rb +67 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e039cd34138dc83c3668573a9c8d9a5d581cf789788a7a64baa4eb618fa60c65
|
|
4
|
+
data.tar.gz: 3017423e9da42fbb2b0d2d3f628deb3efba54d1500f83f49e9eea9dd010e0989
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 006de2fb6b2e6a2e8899202014bf458f82a158fbf13cc0cd4717953ffbbfcdcf58ed91e3594f45e76f3aa0c66c46ee1baaee45161b3d79ca260b75b1cb5d0161
|
|
7
|
+
data.tar.gz: fc991a529c8875074f90c3cd5983c27a6cf51301f390c47b1bec02586ad5efec56475acd56e0bfc4ecde1a7ca23854f2aa074412fcd3e7241aeb63a07d8d145a
|
data/lib/mailkite.rb
CHANGED
|
@@ -15,7 +15,7 @@ require "base64"
|
|
|
15
15
|
require "cgi"
|
|
16
16
|
|
|
17
17
|
module Mailkite
|
|
18
|
-
VERSION = "0.
|
|
18
|
+
VERSION = "0.9.0"
|
|
19
19
|
DEFAULT_BASE_URL = "https://api.mailkite.dev"
|
|
20
20
|
# Reject webhook events older than this (ms) to block replays. Pass 0 to disable.
|
|
21
21
|
DEFAULT_TOLERANCE_MS = 5 * 60 * 1000
|
|
@@ -147,6 +147,7 @@ module Mailkite
|
|
|
147
147
|
"GET" => Net::HTTP::Get,
|
|
148
148
|
"POST" => Net::HTTP::Post,
|
|
149
149
|
"PUT" => Net::HTTP::Put,
|
|
150
|
+
"PATCH" => Net::HTTP::Patch,
|
|
150
151
|
"DELETE" => Net::HTTP::Delete,
|
|
151
152
|
}.freeze
|
|
152
153
|
|
|
@@ -366,6 +367,71 @@ module Mailkite
|
|
|
366
367
|
request("POST", "/api/deliveries/#{id}/retry")
|
|
367
368
|
end
|
|
368
369
|
|
|
370
|
+
# --- Lists ----------------------------------------------------------
|
|
371
|
+
def listLists
|
|
372
|
+
request("GET", "/api/lists")
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
def createList(body)
|
|
376
|
+
request("POST", "/api/lists", body)
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
def getList(id)
|
|
380
|
+
request("GET", "/api/lists/#{id}")
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
def updateList(id, body)
|
|
384
|
+
request("PATCH", "/api/lists/#{id}", body)
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
def deleteList(id)
|
|
388
|
+
request("DELETE", "/api/lists/#{id}")
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
def listListContacts(id)
|
|
392
|
+
request("GET", "/api/lists/#{id}/contacts")
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
def addListContacts(id, body)
|
|
396
|
+
request("POST", "/api/lists/#{id}/contacts", body)
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
def removeListContact(id, contactId)
|
|
400
|
+
request("DELETE", "/api/lists/#{id}/contacts/#{contactId}")
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
# --- Broadcasts -----------------------------------------------------
|
|
404
|
+
def listBroadcasts
|
|
405
|
+
request("GET", "/api/broadcasts")
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
def createBroadcast(body)
|
|
409
|
+
request("POST", "/api/broadcasts", body)
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
def getBroadcast(id)
|
|
413
|
+
request("GET", "/api/broadcasts/#{id}")
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
def updateBroadcast(id, body)
|
|
417
|
+
request("PATCH", "/api/broadcasts/#{id}", body)
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
def deleteBroadcast(id)
|
|
421
|
+
request("DELETE", "/api/broadcasts/#{id}")
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
def sendBroadcast(id, body)
|
|
425
|
+
request("POST", "/api/broadcasts/#{id}/send", body)
|
|
426
|
+
end
|
|
427
|
+
|
|
428
|
+
# --- Docs -----------------------------------------------------------
|
|
429
|
+
# Semantic search over the MailKite docs. PUBLIC — no auth required.
|
|
430
|
+
# Returns { "query" => ..., "matches" => [...] }.
|
|
431
|
+
def semanticSearch(query)
|
|
432
|
+
request("GET", "/v1/docs/search?query=#{CGI.escape(query)}")
|
|
433
|
+
end
|
|
434
|
+
|
|
369
435
|
# --- Webhooks -------------------------------------------------------
|
|
370
436
|
# Instance wrapper around Mailkite.verify_webhook, so you can verify on an
|
|
371
437
|
# existing client. No network call; no API key required.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mailkite
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- MailKite
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-06-
|
|
11
|
+
date: 2026-06-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Send and manage email over your own authenticated domain with MailKite.
|
|
14
14
|
email:
|
|
@@ -21,7 +21,7 @@ homepage: https://mailkite.dev/docs/libraries
|
|
|
21
21
|
licenses:
|
|
22
22
|
- MIT
|
|
23
23
|
metadata:
|
|
24
|
-
source_code_uri: https://github.com/mailkite/mailkite
|
|
24
|
+
source_code_uri: https://github.com/mailkite/mailkite-ruby
|
|
25
25
|
post_install_message:
|
|
26
26
|
rdoc_options: []
|
|
27
27
|
require_paths:
|