mailersend-ruby 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.env.example +1 -1
- data/README.md +34 -34
- data/lib/mailersend/client.rb +1 -1
- data/lib/mailersend/version.rb +1 -1
- data/mailersend-ruby.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 848c4aff4249f3e9fc136356caada6ca5d7d835295f91e8748cd9e5547e99f8c
|
4
|
+
data.tar.gz: 9da0e94f013ab2dfe9f73287d87cdb6502f83e100e098ca674885d3a3597e267
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 122103ff03dc1f7f75871ed596f7efacf93db7d3b2d64fffc1954c1055c904c9f536172f94a8dbc02607ff91fcc05cdc3d26f653aeaddc007a1e417d14cc95f6
|
7
|
+
data.tar.gz: 53cf1fe16f19dc2a9553dee7e7be45dadeaf30a80356b113737d1959aa829afc719336b1d4b67842223e2cec09ebab5ce1f469bed8f8438c7e7e5a6d1adb5f13
|
data/.env.example
CHANGED
@@ -1 +1 @@
|
|
1
|
-
API_TOKEN="
|
1
|
+
API_TOKEN="superlongkey"
|
data/README.md
CHANGED
@@ -9,8 +9,12 @@ MailerSend Ruby SDK
|
|
9
9
|
- [Usage](#usage)
|
10
10
|
- [Email](#email)
|
11
11
|
- [Send an email](#send-an-email)
|
12
|
-
- [
|
13
|
-
- [Send a
|
12
|
+
- [Add CC, BCC recipients](#add-cc-bcc-recipients)
|
13
|
+
- [Send a template-based email](#send-a-template-based-email)
|
14
|
+
- [Tokens](#tokens)
|
15
|
+
- [Create a token](#create-a-token)
|
16
|
+
- [Update a token](#update-a-token)
|
17
|
+
- [Delete a token](#delete-a-token)
|
14
18
|
- [Advanced personalization](#advanced-personalization)
|
15
19
|
- [Simple personalization](#simple-personalization)
|
16
20
|
- [Send email with attachment](#send-email-with-attachment)
|
@@ -33,10 +37,6 @@ MailerSend Ruby SDK
|
|
33
37
|
- [Get recipients](#get-recipients)
|
34
38
|
- [Get a single recipient](#get-a-single-recipient)
|
35
39
|
- [Delete a recipient](#delete-a-recipient)
|
36
|
-
- [Tokens](#tokens)
|
37
|
-
- [Create a token](#create-a-token)
|
38
|
-
- [Update a token](#update-a-token)
|
39
|
-
- [Delete a token](#delete-a-token)
|
40
40
|
- [Webhooks](#webhooks)
|
41
41
|
- [List webhooks](#list-webhooks)
|
42
42
|
- [Get a webhook](#get-a-webhook)
|
@@ -81,7 +81,7 @@ ms_email.add_html("<b>Time is money, money is power, power is pizza, and pizza i
|
|
81
81
|
ms_email.send
|
82
82
|
```
|
83
83
|
|
84
|
-
###
|
84
|
+
### Add CC, BCC recipients
|
85
85
|
|
86
86
|
```ruby
|
87
87
|
require "mailersend-ruby"
|
@@ -103,7 +103,7 @@ ms_email.add_html("<b>Time is money, money is power, power is pizza, and pizza i
|
|
103
103
|
ms_email.send
|
104
104
|
```
|
105
105
|
|
106
|
-
### Send a
|
106
|
+
### Send a template-based email
|
107
107
|
|
108
108
|
```ruby
|
109
109
|
require "mailersend-ruby"
|
@@ -122,6 +122,32 @@ ms_email.add_template_id(12415125)
|
|
122
122
|
ms_email.send
|
123
123
|
```
|
124
124
|
|
125
|
+
## Tokens
|
126
|
+
|
127
|
+
### Create a token
|
128
|
+
```ruby
|
129
|
+
require "mailersend-ruby"
|
130
|
+
|
131
|
+
ms_tokens = Mailersend::Tokens.new
|
132
|
+
ms_tokens.create(name: "Very nice token", scopes: %w[ email_full domains_read ])
|
133
|
+
```
|
134
|
+
|
135
|
+
### Update a token
|
136
|
+
```ruby
|
137
|
+
require "mailersend-ruby"
|
138
|
+
|
139
|
+
ms_tokens = Mailersend::Tokens.new
|
140
|
+
ms_tokens.update(token_id: "d2220fx04", name: "Very nice token", scopes: %w[ email_full domains_read activity_read ])
|
141
|
+
```
|
142
|
+
|
143
|
+
### Delete a token
|
144
|
+
```ruby
|
145
|
+
require "mailersend-ruby"
|
146
|
+
|
147
|
+
ms_tokens = Mailersend::Tokens.new
|
148
|
+
ms_tokens.delete(token_id: "d2220fx04")
|
149
|
+
```
|
150
|
+
|
125
151
|
### Advanced personalization
|
126
152
|
|
127
153
|
```ruby
|
@@ -352,32 +378,6 @@ ms_recipients = Mailersend::Recipients.new
|
|
352
378
|
ms_recipients.delete(recipient_id: "id124")
|
353
379
|
```
|
354
380
|
|
355
|
-
## Tokens
|
356
|
-
|
357
|
-
### Create a token
|
358
|
-
```ruby
|
359
|
-
require "mailersend-ruby"
|
360
|
-
|
361
|
-
ms_tokens = Mailersend::Tokens.new
|
362
|
-
ms_tokens.create(name: "Very nice token", scopes: %w[ email_full domains_read ])
|
363
|
-
```
|
364
|
-
|
365
|
-
### Update a token
|
366
|
-
```ruby
|
367
|
-
require "mailersend-ruby"
|
368
|
-
|
369
|
-
ms_tokens = Mailersend::Tokens.new
|
370
|
-
ms_tokens.update(token_id: "d2220fx04", name: "Very nice token", scopes: %w[ email_full domains_read activity_read ])
|
371
|
-
```
|
372
|
-
|
373
|
-
### Delete a token
|
374
|
-
```ruby
|
375
|
-
require "mailersend-ruby"
|
376
|
-
|
377
|
-
ms_tokens = Mailersend::Tokens.new
|
378
|
-
ms_tokens.delete(token_id: "d2220fx04")
|
379
|
-
```
|
380
|
-
|
381
381
|
## Webhooks
|
382
382
|
|
383
383
|
### List webhooks
|
data/lib/mailersend/client.rb
CHANGED
data/lib/mailersend/version.rb
CHANGED
data/mailersend-ruby.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.metadata["homepage_uri"] = spec.homepage
|
22
22
|
spec.metadata["source_code_uri"] = "https://github.com/mailersend/mailersend-ruby"
|
23
|
-
spec.metadata["changelog_uri"] = "https://github.com/mailersend/mailersend-ruby/CHANGELOG.md"
|
23
|
+
spec.metadata["changelog_uri"] = "https://github.com/mailersend/mailersend-ruby/blob/main/CHANGELOG.md"
|
24
24
|
|
25
25
|
spec.files = `git ls-files -z`.split("\x0")
|
26
26
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailersend-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikola Milojević
|
@@ -149,7 +149,7 @@ metadata:
|
|
149
149
|
allowed_push_host: https://rubygems.org
|
150
150
|
homepage_uri: https://www.mailersend.com
|
151
151
|
source_code_uri: https://github.com/mailersend/mailersend-ruby
|
152
|
-
changelog_uri: https://github.com/mailersend/mailersend-ruby/CHANGELOG.md
|
152
|
+
changelog_uri: https://github.com/mailersend/mailersend-ruby/blob/main/CHANGELOG.md
|
153
153
|
post_install_message:
|
154
154
|
rdoc_options: []
|
155
155
|
require_paths:
|