sendgrid_webapi 0.1.2 → 0.2.1

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.
Files changed (137) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -0
  3. data/.rspec +0 -0
  4. data/.ruby-version +0 -0
  5. data/.tekton/Chart.lock +6 -0
  6. data/.tekton/Chart.yaml +14 -0
  7. data/.tekton/templates/pipelinerun.yaml +53 -0
  8. data/.tekton/values-main.yaml +14 -0
  9. data/.tekton/values-pr.yaml +8 -0
  10. data/.tekton/values.yaml +19 -0
  11. data/.tool-versions +0 -0
  12. data/Gemfile +0 -0
  13. data/MIT-LICENSE +0 -0
  14. data/README.rdoc +69 -20
  15. data/Rakefile +0 -0
  16. data/lib/api_key/management.rb +0 -0
  17. data/lib/api_key/modules.rb +0 -0
  18. data/lib/apikey_client.rb +0 -0
  19. data/lib/base.rb +7 -0
  20. data/lib/helper.rb +0 -0
  21. data/lib/middlewares/sendgrid_response.rb +0 -0
  22. data/lib/sendgrid_webapi.rb +0 -0
  23. data/lib/sub_user/apps.rb +0 -0
  24. data/lib/sub_user/auth.rb +0 -0
  25. data/lib/sub_user/bounces.rb +0 -0
  26. data/lib/sub_user/event_notification.rb +0 -0
  27. data/lib/sub_user/iframe.rb +0 -0
  28. data/lib/sub_user/invalid_emails.rb +0 -0
  29. data/lib/sub_user/ip_management.rb +0 -0
  30. data/lib/sub_user/limits.rb +0 -0
  31. data/lib/sub_user/management.rb +0 -0
  32. data/lib/sub_user/modules.rb +0 -0
  33. data/lib/sub_user/monitor_records.rb +0 -0
  34. data/lib/sub_user/parse.rb +0 -0
  35. data/lib/sub_user/spam.rb +0 -0
  36. data/lib/sub_user/stats.rb +0 -0
  37. data/lib/sub_user/unsubscribes.rb +0 -0
  38. data/lib/sub_user/white_label.rb +0 -0
  39. data/lib/subuser_client.rb +0 -0
  40. data/lib/version.rb +1 -1
  41. data/lib/web_api/address_whitelist.rb +24 -0
  42. data/lib/web_api/blocks.rb +20 -7
  43. data/lib/web_api/bounces.rb +19 -6
  44. data/lib/web_api/event_notification.rb +0 -0
  45. data/lib/web_api/invalid_emails.rb +15 -5
  46. data/lib/web_api/mail.rb +0 -0
  47. data/lib/web_api/modules.rb +5 -1
  48. data/lib/web_api/parse.rb +0 -0
  49. data/lib/web_api/profile.rb +0 -0
  50. data/lib/web_api/spam.rb +14 -4
  51. data/lib/web_api/stats.rb +0 -0
  52. data/lib/web_api/unsubscribes.rb +19 -6
  53. data/lib/web_api/version.rb +0 -0
  54. data/lib/webapi_client.rb +0 -0
  55. data/sendgrid_webapi.gemspec +0 -0
  56. data/spec/cassettes/client/_modules/_address_whitelist/should_add_email_to_whitelist.yml +36 -0
  57. data/spec/cassettes/client/_modules/_address_whitelist/should_delete_email_from_whitelist.yml +36 -0
  58. data/spec/cassettes/client/_modules/_address_whitelist/should_get_address_whitelist.yml +36 -0
  59. data/spec/cassettes/client/_modules/_block/should_get_block_emails.yml +33 -33
  60. data/spec/cassettes/client/_modules/_block/should_get_totals_blocks.yml +33 -33
  61. data/spec/cassettes/client/_modules/_block/should_try_delete_not_existing_block_email.yml +33 -33
  62. data/spec/cassettes/client/_modules/_bounce/should_get_bounce_emails.yml +33 -33
  63. data/spec/cassettes/client/_modules/_bounce/should_get_bounce_emails_using_params.yml +36 -0
  64. data/spec/cassettes/client/_modules/_bounce/should_get_totals_bounces.yml +0 -0
  65. data/spec/cassettes/client/_modules/_bounce/should_try_delete_not_existing_bounce_email.yml +33 -33
  66. data/spec/cassettes/client/_modules/_event_notification/should_delete_event_notification_url.yml +0 -0
  67. data/spec/cassettes/client/_modules/_event_notification/should_get_event_notification_url.yml +0 -0
  68. data/spec/cassettes/client/_modules/_event_notification/should_set_event_notification_url.yml +0 -0
  69. data/spec/cassettes/client/_modules/_invalid_email/should_get_invalid_emails.yml +33 -33
  70. data/spec/cassettes/client/_modules/_invalid_email/should_get_invalid_emails_emails_using_params.yml +37 -0
  71. data/spec/cassettes/client/_modules/_invalid_email/should_get_invalid_emails_using_params.yml +36 -0
  72. data/spec/cassettes/client/_modules/_invalid_email/should_try_delete_not_existing_invalid_emails.yml +33 -33
  73. data/spec/cassettes/client/_modules/_parse_email/should_delete_parse_email.yml +0 -0
  74. data/spec/cassettes/client/_modules/_parse_email/should_get_parse_email.yml +0 -0
  75. data/spec/cassettes/client/_modules/_parse_email/should_set_parse_email.yml +0 -0
  76. data/spec/cassettes/client/_modules/_profile/should_get_profile.yml +0 -0
  77. data/spec/cassettes/client/_modules/_profile/should_set_first_name.yml +0 -0
  78. data/spec/cassettes/client/_modules/_spam/should_get_spam_emails.yml +33 -33
  79. data/spec/cassettes/client/_modules/_spam/should_try_delete_not_existing_spam_emails.yml +33 -33
  80. data/spec/cassettes/client/_modules/_unsubscribe/should_add_unsubscribe_emails.yml +33 -33
  81. data/spec/cassettes/client/_modules/_unsubscribe/should_delete_unsubscribe_email.yml +33 -33
  82. data/spec/cassettes/client/_modules/_unsubscribe/should_get_unsubscribe_emails.yml +33 -33
  83. data/spec/cassettes/client/_modules/_unsubscribe/should_try_delete_not_existing_unsubscribe_emails.yml +33 -33
  84. data/spec/cassettes/helper/_create_sub_user_account/should_create_sub_user_account.yml +0 -0
  85. data/spec/cassettes/helper/_run_sendgrid_query/should_raise_with_unsucessfull_request.yml +0 -0
  86. data/spec/cassettes/helper/_run_sendgrid_query/should_run_sendgrid_request.yml +0 -0
  87. data/spec/cassettes/sub_user/_apps/should_activate_app.yml +0 -0
  88. data/spec/cassettes/sub_user/_apps/should_deactivate_app.yml +0 -0
  89. data/spec/cassettes/sub_user/_apps/should_get_current_setting_from_one_app.yml +0 -0
  90. data/spec/cassettes/sub_user/_apps/should_return_available_apps.yml +0 -0
  91. data/spec/cassettes/sub_user/_apps/should_set_current_app.yml +0 -0
  92. data/spec/cassettes/sub_user/_authentication/should_auth_a_sub_user.yml +0 -0
  93. data/spec/cassettes/sub_user/_authentication/should_return_error_with_a_bad_sub_user.yml +0 -0
  94. data/spec/cassettes/sub_user/_bounces/should_returns_bounce_emails.yml +0 -0
  95. data/spec/cassettes/sub_user/_bounces/should_tries_to_delete_unexisting_bounce_emails.yml +0 -0
  96. data/spec/cassettes/sub_user/_event_notification/should_add_event_notification_url.yml +0 -0
  97. data/spec/cassettes/sub_user/_event_notification/should_delete_event_notification_url.yml +0 -0
  98. data/spec/cassettes/sub_user/_event_notification/should_get_event_notification_url.yml +0 -0
  99. data/spec/cassettes/sub_user/_invalid_emails/should_return_invalid_emails.yml +0 -0
  100. data/spec/cassettes/sub_user/_invalid_emails/should_tries_to_delete_unexisting_invalid_mail.yml +0 -0
  101. data/spec/cassettes/sub_user/_ip_management/should_return_all_ips_available.yml +0 -0
  102. data/spec/cassettes/sub_user/_ip_management/should_show_ip_subuser.yml +0 -0
  103. data/spec/cassettes/sub_user/_limits/should_decrements_credits_for_a_sub_user.yml +0 -0
  104. data/spec/cassettes/sub_user/_limits/should_delete_all_limits_for_a_sub_user.yml +0 -0
  105. data/spec/cassettes/sub_user/_limits/should_increments_credits_for_a_sub_user.yml +0 -0
  106. data/spec/cassettes/sub_user/_limits/should_list_the_limits_for_a_sub_user.yml +0 -0
  107. data/spec/cassettes/sub_user/_limits/should_reset_all_limits_for_a_sub_user.yml +0 -0
  108. data/spec/cassettes/sub_user/_limits/should_returns_limits_for_a_sub_user.yml +0 -0
  109. data/spec/cassettes/sub_user/_limits/should_set_total_credits.yml +0 -0
  110. data/spec/cassettes/sub_user/_management/should_add_new_subuser.yml +0 -0
  111. data/spec/cassettes/sub_user/_management/should_disable_sub_user_for_send_email.yml +0 -0
  112. data/spec/cassettes/sub_user/_management/should_enable_sub_user_for_access_to_website.yml +0 -0
  113. data/spec/cassettes/sub_user/_management/should_enable_sub_user_for_send_email.yml +0 -0
  114. data/spec/cassettes/sub_user/_management/should_update_sub_user.yml +0 -0
  115. data/spec/cassettes/sub_user/_monitor_records/should_add_existing_sub_user_to_monitor_record.yml +0 -0
  116. data/spec/cassettes/sub_user/_monitor_records/should_create_a_new_monitor_record.yml +0 -0
  117. data/spec/cassettes/sub_user/_monitor_records/should_delete_a_monitor_record.yml +0 -0
  118. data/spec/cassettes/sub_user/_monitor_records/should_edit_a_monitor_record.yml +0 -0
  119. data/spec/cassettes/sub_user/_monitor_records/should_remove_existing_sub_user_from_monitor_record.yml +0 -0
  120. data/spec/cassettes/sub_user/_parse_email/should_delete_parse_email.yml +0 -0
  121. data/spec/cassettes/sub_user/_parse_email/should_get_parse_email.yml +0 -0
  122. data/spec/cassettes/sub_user/_parse_email/should_set_parse_email.yml +0 -0
  123. data/spec/cassettes/sub_user/_spam/should_return_spam_mails.yml +0 -0
  124. data/spec/cassettes/sub_user/_spam/should_tries_to_delete_unexisting_spam_mail.yml +0 -0
  125. data/spec/cassettes/sub_user/_unsubscribes/should_add_bounce_email.yml +0 -0
  126. data/spec/cassettes/sub_user/_unsubscribes/should_delete_existing_bounce_email.yml +0 -0
  127. data/spec/cassettes/sub_user/_unsubscribes/should_delete_unexisting_bounce_email.yml +0 -0
  128. data/spec/cassettes/sub_user/_unsubscribes/should_returns_bounce_emails.yml +0 -0
  129. data/spec/client_spec.rb +85 -52
  130. data/spec/helper_spec.rb +2 -3
  131. data/spec/internal/config/database-standard.yml +24 -0
  132. data/spec/spec_helper.rb +0 -4
  133. data/spec/sub_user_spec.rb +0 -0
  134. data/test.rb +0 -0
  135. metadata +21 -80
  136. data/.circleci/config.yml +0 -132
  137. data/.circleci/setup-rubygems.sh +0 -5
@@ -0,0 +1,36 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: patch
5
+ uri: https://api.sendgrid.com/v3/mail_settings/address_whitelist
6
+ body:
7
+ encoding: US-ASCII
8
+ string: '{"list":["test2@example.com"]}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.9
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.2
23
+ Date:
24
+ - Fri, 17 Jan 2014 01:39:56 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ body:
32
+ encoding: UTF-8
33
+ string: '{"enabled":true,"list":["test@example.com","new@example.com"]}'
34
+ http_version:
35
+ recorded_at: Fri, 17 Jan 2014 01:39:57 GMT
36
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,36 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.sendgrid.com/v3/mail_settings/address_whitelist
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.9
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.2
23
+ Date:
24
+ - Fri, 17 Jan 2014 01:39:56 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ body:
32
+ encoding: UTF-8
33
+ string: '{"enabled":true,"list":["test@example.com","test2@example.com"]}'
34
+ http_version:
35
+ recorded_at: Fri, 17 Jan 2014 01:39:57 GMT
36
+ recorded_with: VCR 2.8.0
@@ -1,36 +1,36 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.sendgrid.com/api/blocks.get.json
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v0.8.9
12
- Accept-Encoding:
13
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- Accept:
15
- - '*/*'
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Server:
22
- - nginx/1.4.2
23
- Date:
24
- - Fri, 17 Jan 2014 01:37:37 GMT
25
- Content-Type:
26
- - text/html
27
- Transfer-Encoding:
28
- - chunked
29
- Connection:
30
- - keep-alive
31
- body:
32
- encoding: UTF-8
33
- string: '[]'
34
- http_version:
35
- recorded_at: Fri, 17 Jan 2014 01:37:37 GMT
3
+ - request:
4
+ method: get
5
+ uri: https://api.sendgrid.com/v3/suppression/blocks
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.9
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.2
23
+ Date:
24
+ - Fri, 17 Jan 2014 01:37:37 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ body:
32
+ encoding: UTF-8
33
+ string: "[]"
34
+ http_version:
35
+ recorded_at: Fri, 17 Jan 2014 01:37:37 GMT
36
36
  recorded_with: VCR 2.8.0
@@ -1,36 +1,36 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.sendgrid.com/api/blocks.count.json
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v0.8.9
12
- Accept-Encoding:
13
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- Accept:
15
- - '*/*'
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Server:
22
- - nginx/1.4.2
23
- Date:
24
- - Fri, 17 Jan 2014 01:37:40 GMT
25
- Content-Type:
26
- - text/html
27
- Transfer-Encoding:
28
- - chunked
29
- Connection:
30
- - keep-alive
31
- body:
32
- encoding: UTF-8
33
- string: '{"count": 0}'
34
- http_version:
35
- recorded_at: Fri, 17 Jan 2014 01:37:40 GMT
3
+ - request:
4
+ method: get
5
+ uri: https://api.sendgrid.com/v3/suppression/blocks
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.9
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.2
23
+ Date:
24
+ - Fri, 17 Jan 2014 01:37:40 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ body:
32
+ encoding: UTF-8
33
+ string: "[]"
34
+ http_version:
35
+ recorded_at: Fri, 17 Jan 2014 01:37:40 GMT
36
36
  recorded_with: VCR 2.8.0
@@ -1,36 +1,36 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.sendgrid.com/api/blocks.delete.json?email=test@example.com
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v0.8.9
12
- Accept-Encoding:
13
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- Accept:
15
- - '*/*'
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Server:
22
- - nginx/1.4.2
23
- Date:
24
- - Fri, 17 Jan 2014 01:37:38 GMT
25
- Content-Type:
26
- - text/html
27
- Transfer-Encoding:
28
- - chunked
29
- Connection:
30
- - keep-alive
31
- body:
32
- encoding: UTF-8
33
- string: '{"message": "Email does not exist"}'
34
- http_version:
35
- recorded_at: Fri, 17 Jan 2014 01:37:39 GMT
3
+ - request:
4
+ method: delete
5
+ uri: https://api.sendgrid.com/v3/suppression/blocks/test@example.com
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.9
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.2
23
+ Date:
24
+ - Fri, 17 Jan 2014 01:37:38 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ body:
32
+ encoding: UTF-8
33
+ string: '{"message": "Email does not exist"}'
34
+ http_version:
35
+ recorded_at: Fri, 17 Jan 2014 01:37:39 GMT
36
36
  recorded_with: VCR 2.8.0
@@ -1,36 +1,36 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.sendgrid.com/api/bounces.get.json
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v0.8.9
12
- Accept-Encoding:
13
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- Accept:
15
- - '*/*'
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Server:
22
- - nginx/1.4.2
23
- Date:
24
- - Fri, 17 Jan 2014 01:39:31 GMT
25
- Content-Type:
26
- - text/html
27
- Transfer-Encoding:
28
- - chunked
29
- Connection:
30
- - keep-alive
31
- body:
32
- encoding: UTF-8
33
- string: '[]'
34
- http_version:
35
- recorded_at: Fri, 17 Jan 2014 01:39:31 GMT
3
+ - request:
4
+ method: get
5
+ uri: https://api.sendgrid.com/v3/suppression/bounces
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.9
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.2
23
+ Date:
24
+ - Fri, 17 Jan 2014 01:39:31 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ body:
32
+ encoding: UTF-8
33
+ string: "[]"
34
+ http_version:
35
+ recorded_at: Fri, 17 Jan 2014 01:39:31 GMT
36
36
  recorded_with: VCR 2.8.0
@@ -0,0 +1,36 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.sendgrid.com/v3/suppression/bounces?limit=2&offset=1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.9
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.2
23
+ Date:
24
+ - Fri, 17 Jan 2014 01:39:31 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ body:
32
+ encoding: UTF-8
33
+ string: '["email1@test.com", "email2@test.com"]'
34
+ http_version:
35
+ recorded_at: Fri, 17 Jan 2014 01:39:31 GMT
36
+ recorded_with: VCR 2.8.0
@@ -1,36 +1,36 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.sendgrid.com/api/bounces.delete.json?email=test@example.com
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v0.8.9
12
- Accept-Encoding:
13
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- Accept:
15
- - '*/*'
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Server:
22
- - nginx/1.4.2
23
- Date:
24
- - Fri, 17 Jan 2014 01:39:32 GMT
25
- Content-Type:
26
- - text/html
27
- Transfer-Encoding:
28
- - chunked
29
- Connection:
30
- - keep-alive
31
- body:
32
- encoding: UTF-8
33
- string: '{"message": "Email does not exist"}'
34
- http_version:
35
- recorded_at: Fri, 17 Jan 2014 01:39:32 GMT
3
+ - request:
4
+ method: delete
5
+ uri: https://api.sendgrid.com/v3/suppression/bounces/test@example.com
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.9
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.2
23
+ Date:
24
+ - Fri, 17 Jan 2014 01:39:32 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ body:
32
+ encoding: UTF-8
33
+ string: '{"message": "Email does not exist"}'
34
+ http_version:
35
+ recorded_at: Fri, 17 Jan 2014 01:39:32 GMT
36
36
  recorded_with: VCR 2.8.0
@@ -1,36 +1,36 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.sendgrid.com/api/invalidemails.get.json
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v0.8.9
12
- Accept-Encoding:
13
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- Accept:
15
- - '*/*'
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Server:
22
- - nginx/1.4.2
23
- Date:
24
- - Fri, 17 Jan 2014 01:39:56 GMT
25
- Content-Type:
26
- - text/html
27
- Transfer-Encoding:
28
- - chunked
29
- Connection:
30
- - keep-alive
31
- body:
32
- encoding: UTF-8
33
- string: '[]'
34
- http_version:
35
- recorded_at: Fri, 17 Jan 2014 01:39:57 GMT
3
+ - request:
4
+ method: get
5
+ uri: https://api.sendgrid.com/v3/suppression/invalid_emails
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.9
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.2
23
+ Date:
24
+ - Fri, 17 Jan 2014 01:39:56 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ body:
32
+ encoding: UTF-8
33
+ string: "[]"
34
+ http_version:
35
+ recorded_at: Fri, 17 Jan 2014 01:39:57 GMT
36
36
  recorded_with: VCR 2.8.0
@@ -0,0 +1,37 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.sendgrid.com/v3/suppression/invalid_emails?limit=2&offset=1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - Bearer apikey
12
+ User-Agent:
13
+ - Faraday v1.10.3
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 401
21
+ message: Unauthorized
22
+ headers:
23
+ Server:
24
+ - nginx
25
+ Date:
26
+ - Thu, 11 May 2023 20:57:30 GMT
27
+ Content-Type:
28
+ - application/json
29
+ Content-Length:
30
+ - '52'
31
+ Connection:
32
+ - keep-alive
33
+ body:
34
+ encoding: UTF-8
35
+ string: '{"errors":[{"field":null,"message":"unauthorized"}]}'
36
+ recorded_at: Thu, 11 May 2023 20:57:30 GMT
37
+ recorded_with: VCR 6.1.0
@@ -0,0 +1,36 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.sendgrid.com/v3/suppression/invalid_emails?limit=3&offset=2
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.9
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.2
23
+ Date:
24
+ - Fri, 17 Jan 2014 01:39:56 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ body:
32
+ encoding: UTF-8
33
+ string: '["test@example.com", "test2@example.com", "test3@example.com"]'
34
+ http_version:
35
+ recorded_at: Fri, 17 Jan 2014 01:39:57 GMT
36
+ recorded_with: VCR 2.8.0