mailinator_client 1.0.2 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/LICENSE +1 -1
- data/README.md +13 -1
- data/docs/domains.md +26 -0
- data/docs/messages.md +170 -14
- data/lib/mailinator_client/client.rb +12 -2
- data/lib/mailinator_client/domains.rb +60 -1
- data/lib/mailinator_client/error.rb +1 -1
- data/lib/mailinator_client/messages.rb +327 -16
- data/lib/mailinator_client/rules.rb +1 -1
- data/lib/mailinator_client/stats.rb +1 -1
- data/lib/mailinator_client/utils.rb +1 -1
- data/lib/mailinator_client/version.rb +25 -25
- data/lib/mailinator_client.rb +3 -1
- data/mailinator_client.gemspec +25 -25
- data/test/mailinator_client_api_test.rb +125 -25
- metadata +6 -8
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2024 Manybrain, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -71,7 +71,7 @@ module MailinatorClient
|
|
71
71
|
body: body)
|
72
72
|
end
|
73
73
|
|
74
|
-
# Retrieves a specific message by id.
|
74
|
+
# Retrieves a specific message by id for specific inbox.
|
75
75
|
#
|
76
76
|
# Authentication:
|
77
77
|
# The client must be configured with a valid api
|
@@ -83,8 +83,8 @@ module MailinatorClient
|
|
83
83
|
# * {string} messageId - The Message id
|
84
84
|
#
|
85
85
|
# Responses:
|
86
|
-
# * Message (https://manybrain.github.io/m8rdocs/#fetch-message)
|
87
|
-
def
|
86
|
+
# * Message (https://manybrain.github.io/m8rdocs/#fetch-inbox-message)
|
87
|
+
def fetch_inbox_message(params = {})
|
88
88
|
params = Utils.symbolize_hash_keys(params)
|
89
89
|
query_params = { }
|
90
90
|
headers = {}
|
@@ -104,6 +104,37 @@ module MailinatorClient
|
|
104
104
|
body: body)
|
105
105
|
end
|
106
106
|
|
107
|
+
# Retrieves a specific message by id.
|
108
|
+
#
|
109
|
+
# Authentication:
|
110
|
+
# The client must be configured with a valid api
|
111
|
+
# access token to call this action.
|
112
|
+
#
|
113
|
+
# Parameters:
|
114
|
+
# * {string} domainId - The Domain name or the Domain id
|
115
|
+
# * {string} messageId - The Message id
|
116
|
+
#
|
117
|
+
# Responses:
|
118
|
+
# * Message (https://manybrain.github.io/m8rdocs/#fetch-message)
|
119
|
+
def fetch_message(params = {})
|
120
|
+
params = Utils.symbolize_hash_keys(params)
|
121
|
+
query_params = { }
|
122
|
+
headers = {}
|
123
|
+
body = nil
|
124
|
+
|
125
|
+
raise ArgumentError.new("domain is required") unless params.has_key?(:domain)
|
126
|
+
raise ArgumentError.new("message id is required") unless params.has_key?(:messageId)
|
127
|
+
|
128
|
+
path = "/domains/#{params[:domain]}/messages/#{params[:messageId]}"
|
129
|
+
|
130
|
+
@client.request(
|
131
|
+
method: :get,
|
132
|
+
path: path,
|
133
|
+
query: query_params,
|
134
|
+
headers: headers,
|
135
|
+
body: body)
|
136
|
+
end
|
137
|
+
|
107
138
|
# Retrieves a specific SMS message by sms number.
|
108
139
|
#
|
109
140
|
# Authentication:
|
@@ -112,7 +143,6 @@ module MailinatorClient
|
|
112
143
|
#
|
113
144
|
# Parameters:
|
114
145
|
# * {string} domainId - The Domain name or the Domain id
|
115
|
-
# * {string} inbox - The Inbox name
|
116
146
|
# * {string} teamSmsNumber - The Team sms number
|
117
147
|
#
|
118
148
|
# Responses:
|
@@ -124,10 +154,9 @@ module MailinatorClient
|
|
124
154
|
body = nil
|
125
155
|
|
126
156
|
raise ArgumentError.new("domain is required") unless params.has_key?(:domain)
|
127
|
-
raise ArgumentError.new("inbox is required") unless params.has_key?(:inbox)
|
128
157
|
raise ArgumentError.new("team sms number is required") unless params.has_key?(:teamSmsNumber)
|
129
158
|
|
130
|
-
path = "/domains/#{params[:domain]}/inboxes/#{params[:
|
159
|
+
path = "/domains/#{params[:domain]}/inboxes/#{params[:teamSmsNumber]}"
|
131
160
|
|
132
161
|
@client.request(
|
133
162
|
method: :get,
|
@@ -137,7 +166,7 @@ module MailinatorClient
|
|
137
166
|
body: body)
|
138
167
|
end
|
139
168
|
|
140
|
-
# Retrieves a list of attachments for a message. Note attachments are expected to be in Email format.
|
169
|
+
# Retrieves a list of attachments for a message for specific inbox. Note attachments are expected to be in Email format.
|
141
170
|
#
|
142
171
|
# Authentication:
|
143
172
|
# The client must be configured with a valid api
|
@@ -149,8 +178,8 @@ module MailinatorClient
|
|
149
178
|
# * {string} messageId - The Message id
|
150
179
|
#
|
151
180
|
# Responses:
|
152
|
-
# * Collection of attachments (https://manybrain.github.io/m8rdocs/#fetch-list-of-attachments)
|
153
|
-
def
|
181
|
+
# * Collection of attachments (https://manybrain.github.io/m8rdocs/#fetch-inbox-message-list-of-attachments)
|
182
|
+
def fetch_inbox_message_attachments(params = {})
|
154
183
|
params = Utils.symbolize_hash_keys(params)
|
155
184
|
query_params = { }
|
156
185
|
headers = {}
|
@@ -170,8 +199,38 @@ module MailinatorClient
|
|
170
199
|
body: body)
|
171
200
|
end
|
172
201
|
|
202
|
+
# Retrieves a list of attachments for a message. Note attachments are expected to be in Email format.
|
203
|
+
#
|
204
|
+
# Authentication:
|
205
|
+
# The client must be configured with a valid api
|
206
|
+
# access token to call this action.
|
207
|
+
#
|
208
|
+
# Parameters:
|
209
|
+
# * {string} domainId - The Domain name or the Domain id
|
210
|
+
# * {string} messageId - The Message id
|
211
|
+
#
|
212
|
+
# Responses:
|
213
|
+
# * Collection of attachments (https://manybrain.github.io/m8rdocs/#fetch-list-of-attachments)
|
214
|
+
def fetch_message_attachments(params = {})
|
215
|
+
params = Utils.symbolize_hash_keys(params)
|
216
|
+
query_params = { }
|
217
|
+
headers = {}
|
218
|
+
body = nil
|
173
219
|
|
174
|
-
|
220
|
+
raise ArgumentError.new("domain is required") unless params.has_key?(:domain)
|
221
|
+
raise ArgumentError.new("message id is required") unless params.has_key?(:messageId)
|
222
|
+
|
223
|
+
path = "/domains/#{params[:domain]}/messages/#{params[:messageId]}/attachments"
|
224
|
+
|
225
|
+
@client.request(
|
226
|
+
method: :get,
|
227
|
+
path: path,
|
228
|
+
query: query_params,
|
229
|
+
headers: headers,
|
230
|
+
body: body)
|
231
|
+
end
|
232
|
+
|
233
|
+
# Retrieves a specific attachment for specific inbox.
|
175
234
|
#
|
176
235
|
# Authentication:
|
177
236
|
# The client must be configured with a valid api
|
@@ -184,8 +243,8 @@ module MailinatorClient
|
|
184
243
|
# * {string} attachmentId - The Attachment id
|
185
244
|
#
|
186
245
|
# Responses:
|
187
|
-
# * Attachment (https://manybrain.github.io/m8rdocs/#fetch-attachment)
|
188
|
-
def
|
246
|
+
# * Attachment (https://manybrain.github.io/m8rdocs/#fetch-inbox-message-attachment)
|
247
|
+
def fetch_inbox_message_attachment(params = {})
|
189
248
|
params = Utils.symbolize_hash_keys(params)
|
190
249
|
query_params = { }
|
191
250
|
headers = {}
|
@@ -206,6 +265,39 @@ module MailinatorClient
|
|
206
265
|
body: body)
|
207
266
|
end
|
208
267
|
|
268
|
+
# Retrieves a specific attachment.
|
269
|
+
#
|
270
|
+
# Authentication:
|
271
|
+
# The client must be configured with a valid api
|
272
|
+
# access token to call this action.
|
273
|
+
#
|
274
|
+
# Parameters:
|
275
|
+
# * {string} domainId - The Domain name or the Domain id
|
276
|
+
# * {string} messageId - The Message id
|
277
|
+
# * {string} attachmentId - The Attachment id
|
278
|
+
#
|
279
|
+
# Responses:
|
280
|
+
# * Attachment (https://manybrain.github.io/m8rdocs/#fetch-attachment)
|
281
|
+
def fetch_message_attachment(params = {})
|
282
|
+
params = Utils.symbolize_hash_keys(params)
|
283
|
+
query_params = { }
|
284
|
+
headers = {}
|
285
|
+
body = nil
|
286
|
+
|
287
|
+
raise ArgumentError.new("domain is required") unless params.has_key?(:domain)
|
288
|
+
raise ArgumentError.new("message id is required") unless params.has_key?(:messageId)
|
289
|
+
raise ArgumentError.new("attachment id is required") unless params.has_key?(:attachmentId)
|
290
|
+
|
291
|
+
path = "/domains/#{params[:domain]}/messages/#{params[:messageId]}/attachments/#{params[:attachmentId]}"
|
292
|
+
|
293
|
+
@client.request(
|
294
|
+
method: :get,
|
295
|
+
path: path,
|
296
|
+
query: query_params,
|
297
|
+
headers: headers,
|
298
|
+
body: body)
|
299
|
+
end
|
300
|
+
|
209
301
|
# Retrieves all links found within a given email.
|
210
302
|
#
|
211
303
|
# Authentication:
|
@@ -214,7 +306,6 @@ module MailinatorClient
|
|
214
306
|
#
|
215
307
|
# Parameters:
|
216
308
|
# * {string} domainId - The Domain name or the Domain id
|
217
|
-
# * {string} inbox - The Inbox name
|
218
309
|
# * {string} messageId - The Message id
|
219
310
|
#
|
220
311
|
# Responses:
|
@@ -225,6 +316,38 @@ module MailinatorClient
|
|
225
316
|
headers = {}
|
226
317
|
body = nil
|
227
318
|
|
319
|
+
raise ArgumentError.new("domain is required") unless params.has_key?(:domain)
|
320
|
+
raise ArgumentError.new("message id is required") unless params.has_key?(:messageId)
|
321
|
+
|
322
|
+
path = "/domains/#{params[:domain]}/messages/#{params[:messageId]}/links"
|
323
|
+
|
324
|
+
@client.request(
|
325
|
+
method: :get,
|
326
|
+
path: path,
|
327
|
+
query: query_params,
|
328
|
+
headers: headers,
|
329
|
+
body: body)
|
330
|
+
end
|
331
|
+
|
332
|
+
# Retrieves all links found within a given email for specific inbox.
|
333
|
+
#
|
334
|
+
# Authentication:
|
335
|
+
# The client must be configured with a valid api
|
336
|
+
# access token to call this action.
|
337
|
+
#
|
338
|
+
# Parameters:
|
339
|
+
# * {string} domainId - The Domain name or the Domain id
|
340
|
+
# * {string} inbox - The Inbox name
|
341
|
+
# * {string} messageId - The Message id
|
342
|
+
#
|
343
|
+
# Responses:
|
344
|
+
# * Collection of links (https://manybrain.github.io/m8rdocs/#fetch-inbox-message-links)
|
345
|
+
def fetch_inbox_message_links(params = {})
|
346
|
+
params = Utils.symbolize_hash_keys(params)
|
347
|
+
query_params = { }
|
348
|
+
headers = {}
|
349
|
+
body = nil
|
350
|
+
|
228
351
|
raise ArgumentError.new("domain is required") unless params.has_key?(:domain)
|
229
352
|
raise ArgumentError.new("inbox is required") unless params.has_key?(:inbox)
|
230
353
|
raise ArgumentError.new("message id is required") unless params.has_key?(:messageId)
|
@@ -344,8 +467,8 @@ module MailinatorClient
|
|
344
467
|
# * {string} messageToPost - The Message object (https://manybrain.github.io/m8rdocs/#inject-a-message-http-post-messages)
|
345
468
|
#
|
346
469
|
# Responses:
|
347
|
-
# * Status, Id and RulesToFired info (https://manybrain.github.io/m8rdocs/#
|
348
|
-
def
|
470
|
+
# * Status, Id and RulesToFired info (https://manybrain.github.io/m8rdocs/#post-message)
|
471
|
+
def post_message(params = {})
|
349
472
|
params = Utils.symbolize_hash_keys(params)
|
350
473
|
query_params = { }
|
351
474
|
headers = {}
|
@@ -367,5 +490,193 @@ module MailinatorClient
|
|
367
490
|
body: body)
|
368
491
|
end
|
369
492
|
|
493
|
+
# Retrieves all smtp log found within a given email.
|
494
|
+
#
|
495
|
+
# Authentication:
|
496
|
+
# The client must be configured with a valid api
|
497
|
+
# access token to call this action.
|
498
|
+
#
|
499
|
+
# Parameters:
|
500
|
+
# * {string} domainId - The Domain name or the Domain id
|
501
|
+
# * {string} messageId - The Message id
|
502
|
+
#
|
503
|
+
# Responses:
|
504
|
+
# * Collection of smtp logs (https://manybrain.github.io/m8rdocs/#fetch-message-smtp-log)
|
505
|
+
def fetch_message_smtp_log(params = {})
|
506
|
+
params = Utils.symbolize_hash_keys(params)
|
507
|
+
query_params = { }
|
508
|
+
headers = {}
|
509
|
+
body = nil
|
510
|
+
|
511
|
+
raise ArgumentError.new("domain is required") unless params.has_key?(:domain)
|
512
|
+
raise ArgumentError.new("message id is required") unless params.has_key?(:messageId)
|
513
|
+
|
514
|
+
path = "/domains/#{params[:domain]}/messages/#{params[:messageId]}/smtplog"
|
515
|
+
|
516
|
+
@client.request(
|
517
|
+
method: :get,
|
518
|
+
path: path,
|
519
|
+
query: query_params,
|
520
|
+
headers: headers,
|
521
|
+
body: body)
|
522
|
+
end
|
523
|
+
|
524
|
+
# Retrieves all smtp log found within a given email for specific inbox.
|
525
|
+
#
|
526
|
+
# Authentication:
|
527
|
+
# The client must be configured with a valid api
|
528
|
+
# access token to call this action.
|
529
|
+
#
|
530
|
+
# Parameters:
|
531
|
+
# * {string} domainId - The Domain name or the Domain id
|
532
|
+
# * {string} inbox - The Inbox name
|
533
|
+
# * {string} messageId - The Message id
|
534
|
+
#
|
535
|
+
# Responses:
|
536
|
+
# * Collection of smtp log (https://manybrain.github.io/m8rdocs/#fetch-inbox-message-smtp-log)
|
537
|
+
def fetch_inbox_message_smtp_log(params = {})
|
538
|
+
params = Utils.symbolize_hash_keys(params)
|
539
|
+
query_params = { }
|
540
|
+
headers = {}
|
541
|
+
body = nil
|
542
|
+
|
543
|
+
raise ArgumentError.new("domain is required") unless params.has_key?(:domain)
|
544
|
+
raise ArgumentError.new("inbox is required") unless params.has_key?(:inbox)
|
545
|
+
raise ArgumentError.new("message id is required") unless params.has_key?(:messageId)
|
546
|
+
|
547
|
+
path = "/domains/#{params[:domain]}/inboxes/#{params[:inbox]}/messages/#{params[:messageId]}/smtplog"
|
548
|
+
|
549
|
+
@client.request(
|
550
|
+
method: :get,
|
551
|
+
path: path,
|
552
|
+
query: query_params,
|
553
|
+
headers: headers,
|
554
|
+
body: body)
|
555
|
+
end
|
556
|
+
|
557
|
+
# Retrieves all raw data found within a given email.
|
558
|
+
#
|
559
|
+
# Authentication:
|
560
|
+
# The client must be configured with a valid api
|
561
|
+
# access token to call this action.
|
562
|
+
#
|
563
|
+
# Parameters:
|
564
|
+
# * {string} domainId - The Domain name or the Domain id
|
565
|
+
# * {string} messageId - The Message id
|
566
|
+
#
|
567
|
+
# Responses:
|
568
|
+
# * Raw Data (https://manybrain.github.io/m8rdocs/#fetch-message-raw)
|
569
|
+
def fetch_message_raw(params = {})
|
570
|
+
params = Utils.symbolize_hash_keys(params)
|
571
|
+
query_params = { }
|
572
|
+
headers = {}
|
573
|
+
body = nil
|
574
|
+
|
575
|
+
raise ArgumentError.new("domain is required") unless params.has_key?(:domain)
|
576
|
+
raise ArgumentError.new("message id is required") unless params.has_key?(:messageId)
|
577
|
+
|
578
|
+
path = "/domains/#{params[:domain]}/messages/#{params[:messageId]}/raw"
|
579
|
+
|
580
|
+
@client.request(
|
581
|
+
method: :get,
|
582
|
+
path: path,
|
583
|
+
query: query_params,
|
584
|
+
headers: headers,
|
585
|
+
body: body)
|
586
|
+
end
|
587
|
+
|
588
|
+
# Retrieves all raw data found within a given email for specific inbox.
|
589
|
+
#
|
590
|
+
# Authentication:
|
591
|
+
# The client must be configured with a valid api
|
592
|
+
# access token to call this action.
|
593
|
+
#
|
594
|
+
# Parameters:
|
595
|
+
# * {string} domainId - The Domain name or the Domain id
|
596
|
+
# * {string} inbox - The Inbox name
|
597
|
+
# * {string} messageId - The Message id
|
598
|
+
#
|
599
|
+
# Responses:
|
600
|
+
# * Raw Data (https://manybrain.github.io/m8rdocs/#fetch-inbox-message-raw)
|
601
|
+
def fetch_inbox_message_raw(params = {})
|
602
|
+
params = Utils.symbolize_hash_keys(params)
|
603
|
+
query_params = { }
|
604
|
+
headers = {}
|
605
|
+
body = nil
|
606
|
+
|
607
|
+
raise ArgumentError.new("domain is required") unless params.has_key?(:domain)
|
608
|
+
raise ArgumentError.new("inbox is required") unless params.has_key?(:inbox)
|
609
|
+
raise ArgumentError.new("message id is required") unless params.has_key?(:messageId)
|
610
|
+
|
611
|
+
path = "/domains/#{params[:domain]}/inboxes/#{params[:inbox]}/messages/#{params[:messageId]}/raw"
|
612
|
+
|
613
|
+
@client.request(
|
614
|
+
method: :get,
|
615
|
+
path: path,
|
616
|
+
query: query_params,
|
617
|
+
headers: headers,
|
618
|
+
body: body)
|
619
|
+
end
|
620
|
+
|
621
|
+
# That fetches the latest 5 FULL messages.
|
622
|
+
#
|
623
|
+
# Authentication:
|
624
|
+
# The client must be configured with a valid api
|
625
|
+
# access token to call this action.
|
626
|
+
#
|
627
|
+
# Parameters:
|
628
|
+
# * {string} domainId - The Domain name or the Domain id
|
629
|
+
#
|
630
|
+
# Responses:
|
631
|
+
# * Collection of latest messages (https://manybrain.github.io/m8rdocs/#fetch-latest-messages)
|
632
|
+
def fetch_latest_messages(params = {})
|
633
|
+
params = Utils.symbolize_hash_keys(params)
|
634
|
+
query_params = { }
|
635
|
+
headers = {}
|
636
|
+
body = nil
|
637
|
+
|
638
|
+
raise ArgumentError.new("domain is required") unless params.has_key?(:domain)
|
639
|
+
|
640
|
+
path = "/domains/#{params[:domain]}/messages/*"
|
641
|
+
|
642
|
+
@client.request(
|
643
|
+
method: :get,
|
644
|
+
path: path,
|
645
|
+
query: query_params,
|
646
|
+
headers: headers,
|
647
|
+
body: body)
|
648
|
+
end
|
649
|
+
|
650
|
+
# That fetches the latest 5 FULL messages for specific inbox.
|
651
|
+
#
|
652
|
+
# Authentication:
|
653
|
+
# The client must be configured with a valid api
|
654
|
+
# access token to call this action.
|
655
|
+
#
|
656
|
+
# Parameters:
|
657
|
+
# * {string} domainId - The Domain name or the Domain id
|
658
|
+
# * {string} inbox - The Inbox name
|
659
|
+
#
|
660
|
+
# Responses:
|
661
|
+
# * Collection of latest messages (https://manybrain.github.io/m8rdocs/#fetch-latest-inbox-messages)
|
662
|
+
def fetch_latest_inbox_messages(params = {})
|
663
|
+
params = Utils.symbolize_hash_keys(params)
|
664
|
+
query_params = { }
|
665
|
+
headers = {}
|
666
|
+
body = nil
|
667
|
+
|
668
|
+
raise ArgumentError.new("domain is required") unless params.has_key?(:domain)
|
669
|
+
raise ArgumentError.new("inbox is required") unless params.has_key?(:inbox)
|
670
|
+
|
671
|
+
path = "/domains/#{params[:domain]}/inboxes/#{params[:inbox]}/messages/*"
|
672
|
+
|
673
|
+
@client.request(
|
674
|
+
method: :get,
|
675
|
+
path: path,
|
676
|
+
query: query_params,
|
677
|
+
headers: headers,
|
678
|
+
body: body)
|
679
|
+
end
|
680
|
+
|
370
681
|
end
|
371
682
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2024 Manybrain, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2024 Manybrain, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2024 Manybrain, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,25 +1,25 @@
|
|
1
|
-
# The MIT License (MIT)
|
2
|
-
#
|
3
|
-
# Copyright (c)
|
4
|
-
#
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
# of this software and associated documentation files (the "Software"), to deal
|
7
|
-
# in the Software without restriction, including without limitation the rights
|
8
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
# copies of the Software, and to permit persons to whom the Software is
|
10
|
-
# furnished to do so, subject to the following conditions:
|
11
|
-
#
|
12
|
-
# The above copyright notice and this permission notice shall be included in all
|
13
|
-
# copies or substantial portions of the Software.
|
14
|
-
#
|
15
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
# SOFTWARE.
|
22
|
-
|
23
|
-
module MailinatorClient
|
24
|
-
VERSION = "1.0.
|
25
|
-
end
|
1
|
+
# The MIT License (MIT)
|
2
|
+
#
|
3
|
+
# Copyright (c) 2024 Manybrain, Inc.
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
10
|
+
# furnished to do so, subject to the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
13
|
+
# copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
# SOFTWARE.
|
22
|
+
|
23
|
+
module MailinatorClient
|
24
|
+
VERSION = "1.0.4"
|
25
|
+
end
|
data/lib/mailinator_client.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2024 Manybrain, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -23,10 +23,12 @@
|
|
23
23
|
require_relative "mailinator_client/version"
|
24
24
|
require_relative "mailinator_client/error"
|
25
25
|
require_relative "mailinator_client/utils"
|
26
|
+
require_relative "mailinator_client/authenticators"
|
26
27
|
require_relative "mailinator_client/domains"
|
27
28
|
require_relative "mailinator_client/stats"
|
28
29
|
require_relative "mailinator_client/messages"
|
29
30
|
require_relative "mailinator_client/rules"
|
31
|
+
require_relative "mailinator_client/webhooks"
|
30
32
|
require_relative "mailinator_client/client"
|
31
33
|
|
32
34
|
module MailinatorClient
|
data/mailinator_client.gemspec
CHANGED
@@ -1,25 +1,25 @@
|
|
1
|
-
$LOAD_PATH.push(File.expand_path("../lib", __FILE__))
|
2
|
-
require "mailinator_client/version"
|
3
|
-
|
4
|
-
Gem::Specification.new do |gem|
|
5
|
-
gem.name = "mailinator_client"
|
6
|
-
gem.authors = ["Marian Melnychuk"]
|
7
|
-
gem.email = ["marian.melnychuk@gmail.com"]
|
8
|
-
gem.summary = %q{Provides a simple ruby wrapper around the Mailinator REST API}
|
9
|
-
gem.description = %q{Easily use the Mailinator through its REST API with Ruby}
|
10
|
-
gem.homepage = "https://github.com/manybrain/mailinator-ruby-client"
|
11
|
-
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
12
|
-
gem.files = `git ls-files`.split("\n")
|
13
|
-
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
14
|
-
gem.require_paths = ["lib"]
|
15
|
-
gem.version = MailinatorClient::VERSION
|
16
|
-
gem.licenses = ["MIT"]
|
17
|
-
|
18
|
-
gem.required_ruby_version = ">= 2.1"
|
19
|
-
|
20
|
-
gem.add_dependency "httparty", "~> 0.
|
21
|
-
|
22
|
-
gem.add_development_dependency "minitest", "~> 5.9"
|
23
|
-
gem.add_development_dependency "rake", "~> 12"
|
24
|
-
gem.add_development_dependency "webmock", "~> 2.3"
|
25
|
-
end
|
1
|
+
$LOAD_PATH.push(File.expand_path("../lib", __FILE__))
|
2
|
+
require "mailinator_client/version"
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.name = "mailinator_client"
|
6
|
+
gem.authors = ["Marian Melnychuk"]
|
7
|
+
gem.email = ["marian.melnychuk@gmail.com"]
|
8
|
+
gem.summary = %q{Provides a simple ruby wrapper around the Mailinator REST API}
|
9
|
+
gem.description = %q{Easily use the Mailinator through its REST API with Ruby}
|
10
|
+
gem.homepage = "https://github.com/manybrain/mailinator-ruby-client"
|
11
|
+
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
12
|
+
gem.files = `git ls-files`.split("\n")
|
13
|
+
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
14
|
+
gem.require_paths = ["lib"]
|
15
|
+
gem.version = MailinatorClient::VERSION
|
16
|
+
gem.licenses = ["MIT"]
|
17
|
+
|
18
|
+
gem.required_ruby_version = ">= 2.1"
|
19
|
+
|
20
|
+
gem.add_dependency "httparty", "~> 0.21.0"
|
21
|
+
|
22
|
+
gem.add_development_dependency "minitest", "~> 5.9"
|
23
|
+
gem.add_development_dependency "rake", "~> 12"
|
24
|
+
gem.add_development_dependency "webmock", "~> 2.3"
|
25
|
+
end
|