mailersend-ruby 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 848c4aff4249f3e9fc136356caada6ca5d7d835295f91e8748cd9e5547e99f8c
4
- data.tar.gz: 9da0e94f013ab2dfe9f73287d87cdb6502f83e100e098ca674885d3a3597e267
3
+ metadata.gz: 4d505ebb32c33458ffd673e60c82620b4938241f6759f45b12fefec0b3058ab5
4
+ data.tar.gz: ac9b5c974cd4478afb658378770609f1936fda55a8441ee466f56cc337b8b58c
5
5
  SHA512:
6
- metadata.gz: 122103ff03dc1f7f75871ed596f7efacf93db7d3b2d64fffc1954c1055c904c9f536172f94a8dbc02607ff91fcc05cdc3d26f653aeaddc007a1e417d14cc95f6
7
- data.tar.gz: 53cf1fe16f19dc2a9553dee7e7be45dadeaf30a80356b113737d1959aa829afc719336b1d4b67842223e2cec09ebab5ce1f469bed8f8438c7e7e5a6d1adb5f13
6
+ metadata.gz: 108c5201b2ebdb2f038903c9c2497c729edb3287ab099cca976d7269777f689c0d28bd512445dc8066a21a5215649e8df5cb9f3672e52f80bad6c72f250eea78
7
+ data.tar.gz: c7df5c911d37ba748f64e1d71bfcec8e53432e9f9f5087aacc38731b540626f64d97b61da657b1aaf2e2b6f4fe7a44a7e12d4d7eba0c7f56c3a9ad0dab1bb8ed
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Released]
2
2
 
3
+ ## [0.1.2] - 2021-06-14
4
+
5
+ - Fixed activity and tokens endpoints.
6
+
7
+ ## [0.1.1] - 2021-06-14
8
+
9
+ - Updated token format so you don't have to include `Bearer` in env variable.
10
+
3
11
  ## [0.1.0] - 2021-06-14
4
12
 
5
13
  - Initial release
data/README.md CHANGED
@@ -137,7 +137,7 @@ ms_tokens.create(name: "Very nice token", scopes: %w[ email_full domains_read ])
137
137
  require "mailersend-ruby"
138
138
 
139
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 ])
140
+ ms_tokens.update(token_id: "d2220fx04", status: "paused")
141
141
  ```
142
142
 
143
143
  ### Delete a token
@@ -27,7 +27,7 @@ module Mailersend
27
27
  date_to: date_to
28
28
  }
29
29
 
30
- response = client.http.get(URI::HTTPS.build(host: API_BASE_HOST, path: "/v1/analytics/#{domain_id}",
30
+ response = client.http.get(URI::HTTPS.build(host: API_BASE_HOST, path: "/v1/activity/#{domain_id}",
31
31
  query: URI.encode_www_form(hash.compact)))
32
32
  puts response
33
33
  end
@@ -34,8 +34,8 @@ module Mailersend
34
34
  puts response
35
35
  end
36
36
 
37
- def delete(name:)
38
- response = client.http.delete("#{API_URL}/token/#{name}")
37
+ def delete(token_id:)
38
+ response = client.http.delete("#{API_URL}/token/#{token_id}")
39
39
  puts response
40
40
  end
41
41
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mailersend
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikola Milojević