cakemail-next-gen 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/.env.dist +3 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +52 -0
  5. data/LICENSE +21 -0
  6. data/README.md +194 -0
  7. data/Rakefile +12 -0
  8. data/cakemail.gemspec +29 -0
  9. data/images/logo.png +0 -0
  10. data/lib/cakemail/base.rb +248 -0
  11. data/lib/cakemail/configuration.rb +21 -0
  12. data/lib/cakemail/connection.rb +52 -0
  13. data/lib/cakemail/contact.rb +57 -0
  14. data/lib/cakemail/list.rb +35 -0
  15. data/lib/cakemail/sender.rb +30 -0
  16. data/lib/cakemail/token.rb +59 -0
  17. data/lib/cakemail/version.rb +5 -0
  18. data/lib/cakemail.rb +21 -0
  19. data/sig/cakemail.rbs +4 -0
  20. data/vcr_cassettes/contact_create.yml +45 -0
  21. data/vcr_cassettes/contact_create_from_list.yml +45 -0
  22. data/vcr_cassettes/contact_unsubscribe.yml +45 -0
  23. data/vcr_cassettes/contact_update.yml +45 -0
  24. data/vcr_cassettes/contacts_all_without_error.yml +45 -0
  25. data/vcr_cassettes/contacts_delete.yml +45 -0
  26. data/vcr_cassettes/contacts_for_deletation.yml +45 -0
  27. data/vcr_cassettes/contacts_for_unsubscribe.yml +45 -0
  28. data/vcr_cassettes/contacts_for_update.yml +45 -0
  29. data/vcr_cassettes/contacts_lists.yml +49 -0
  30. data/vcr_cassettes/create_token.yml +45 -0
  31. data/vcr_cassettes/create_wrong_token.yml +46 -0
  32. data/vcr_cassettes/list.yml +46 -0
  33. data/vcr_cassettes/list_archive.yml +45 -0
  34. data/vcr_cassettes/list_contacts.yml +45 -0
  35. data/vcr_cassettes/list_create.yml +46 -0
  36. data/vcr_cassettes/list_delete.yml +45 -0
  37. data/vcr_cassettes/list_sender.yml +46 -0
  38. data/vcr_cassettes/list_unarchive.yml +45 -0
  39. data/vcr_cassettes/list_update.yml +46 -0
  40. data/vcr_cassettes/lists.yml +49 -0
  41. data/vcr_cassettes/lists_count.yml +47 -0
  42. data/vcr_cassettes/lists_find_in_batches.yml +93 -0
  43. data/vcr_cassettes/lists_for_archive.yml +50 -0
  44. data/vcr_cassettes/lists_for_deletation.yml +50 -0
  45. data/vcr_cassettes/lists_for_unarchive.yml +48 -0
  46. data/vcr_cassettes/lists_for_update.yml +50 -0
  47. data/vcr_cassettes/senders.yml +46 -0
  48. metadata +93 -0
@@ -0,0 +1,45 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.cakemail.dev/token
6
+ body:
7
+ encoding: UTF-8
8
+ string: "<FILTERED>"
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v2.7.7
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/x-www-form-urlencoded
16
+ Authorization:
17
+ - Bearer <TOKEN_PLACEHOLDER>
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Sat, 08 Jul 2023 04:58:37 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '1704'
33
+ Connection:
34
+ - keep-alive
35
+ Vary:
36
+ - Origin
37
+ X-Krakend:
38
+ - Version 1.1.1
39
+ X-Krakend-Completed:
40
+ - 'false'
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"access_token":"<TOKEN_PLACEHOLDER>","token_type":"bearer","expires_in":1296000,"refresh_token":"<TOKEN_PLACEHOLDER>"}'
44
+ recorded_at: Sat, 08 Jul 2023 04:58:38 GMT
45
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,46 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.cakemail.dev/token
6
+ body:
7
+ encoding: UTF-8
8
+ string: "<FILTERED>"
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v2.7.7
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/x-www-form-urlencoded
16
+ Authorization:
17
+ - Bearer <TOKEN_PLACEHOLDER>
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 422
23
+ message: Unprocessable Entity
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Sat, 08 Jul 2023 04:58:38 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '110'
33
+ Connection:
34
+ - keep-alive
35
+ Vary:
36
+ - Origin
37
+ X-Krakend:
38
+ - Version 1.1.1
39
+ X-Krakend-Completed:
40
+ - 'false'
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"detail":[{"loc":["body","username"],"msg":"value is not a valid email
44
+ address","type":"value_error.email"}]}'
45
+ recorded_at: Sat, 08 Jul 2023 04:58:38 GMT
46
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,46 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.cakemail.dev/lists/8944823
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v2.7.7
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Authorization:
17
+ - Bearer <TOKEN_PLACEHOLDER>
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Sat, 08 Jul 2023 04:58:27 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '580'
33
+ Connection:
34
+ - keep-alive
35
+ Vary:
36
+ - Origin
37
+ X-Krakend:
38
+ - Version 1.1.1
39
+ X-Krakend-Completed:
40
+ - 'false'
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"data":{"id":8944823,"name":"Liste de Nathan Lopez","status":"active","policy_accepted":true,"language":"fr_CA","created_on":1688012089,"default_sender":{"name":"Nathan
44
+ Lopez","email":"nathan.lopez042@gmail.com"},"redirections":{"after_opt_in":null,"after_double_opt_in":null,"after_opt_out":null},"pages":{"opt_in":"https://cmtd1.com/oi/443/8ee2785836727f587728c0716769c5b4","opt_out":"https://cmtd1.com/oo/443/8ee2785836727f587728c0716769c5b4","subscribe":"https://cmtd1.com/s/443/8ee2785836727f587728c0716769c5b4","unsubscribe":null},"webhook":{"url":null,"actions":["all"]}}}'
45
+ recorded_at: Sat, 08 Jul 2023 04:58:27 GMT
46
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,45 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.cakemail.dev/lists/8950265/archive
6
+ body:
7
+ encoding: UTF-8
8
+ string: "<FILTERED>"
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v2.7.7
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Authorization:
17
+ - Bearer <TOKEN_PLACEHOLDER>
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Sat, 08 Jul 2023 04:58:34 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '46'
33
+ Connection:
34
+ - keep-alive
35
+ Vary:
36
+ - Origin
37
+ X-Krakend:
38
+ - Version 1.1.1
39
+ X-Krakend-Completed:
40
+ - 'false'
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"id":8950265,"object":"list","archived":true}'
44
+ recorded_at: Sat, 08 Jul 2023 04:58:34 GMT
45
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,45 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.cakemail.dev/lists/8944823/contacts?page=1&per_page=50
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v2.7.7
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Authorization:
17
+ - Bearer <TOKEN_PLACEHOLDER>
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Sat, 08 Jul 2023 04:58:22 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '282'
33
+ Connection:
34
+ - keep-alive
35
+ Vary:
36
+ - Origin
37
+ X-Krakend:
38
+ - Version 1.1.1
39
+ X-Krakend-Completed:
40
+ - 'false'
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"pagination":{"count":null,"page":1,"per_page":50,"cursor":{"previous":null,"next":null}},"data":[{"id":3,"email":"nathan.lopez042@gmail.com","status":"active","subscribed_on":1688792090,"last_bounce_type":"none","bounces_count":0,"custom_attributes":[],"tags":[],"interests":[]}]}'
44
+ recorded_at: Sat, 08 Jul 2023 04:58:22 GMT
45
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,46 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.cakemail.dev/lists
6
+ body:
7
+ encoding: UTF-8
8
+ string: "<FILTERED>"
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v2.7.7
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Authorization:
17
+ - Bearer <TOKEN_PLACEHOLDER>
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Sat, 08 Jul 2023 04:58:32 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '595'
33
+ Connection:
34
+ - keep-alive
35
+ Vary:
36
+ - Origin
37
+ X-Krakend:
38
+ - Version 1.1.1
39
+ X-Krakend-Completed:
40
+ - 'false'
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"id":8950265,"created":true,"data":{"id":8950265,"name":"My list","status":"active","policy_accepted":false,"language":"fr_CA","created_on":1688792311,"default_sender":{"name":"Nathan
44
+ Lopez","email":"nathan.lopez042@gmail.com"},"redirections":{"after_opt_in":null,"after_double_opt_in":null,"after_opt_out":null},"pages":{"opt_in":"https://cmtd1.com/oi/443/8ee2785836727f588cc72fecda18c5e2","opt_out":"https://cmtd1.com/oo/443/8ee2785836727f588cc72fecda18c5e2","subscribe":"https://cmtd1.com/s/443/8ee2785836727f588cc72fecda18c5e2","unsubscribe":null},"webhook":{"url":null,"actions":["all"]}}}'
45
+ recorded_at: Sat, 08 Jul 2023 04:58:32 GMT
46
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,45 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://api.cakemail.dev/lists/8950265
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v2.7.7
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Authorization:
17
+ - Bearer <TOKEN_PLACEHOLDER>
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Sat, 08 Jul 2023 04:58:36 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '45'
33
+ Connection:
34
+ - keep-alive
35
+ Vary:
36
+ - Origin
37
+ X-Krakend:
38
+ - Version 1.1.1
39
+ X-Krakend-Completed:
40
+ - 'false'
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"id":8950265,"object":"list","deleted":true}'
44
+ recorded_at: Sat, 08 Jul 2023 04:58:36 GMT
45
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,46 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.cakemail.dev/brands/default/senders?page=1&per_page=50
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v2.7.7
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Authorization:
17
+ - Bearer <TOKEN_PLACEHOLDER>
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Sat, 08 Jul 2023 04:58:30 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '244'
33
+ Connection:
34
+ - keep-alive
35
+ Vary:
36
+ - Origin
37
+ X-Krakend:
38
+ - Version 1.1.1
39
+ X-Krakend-Completed:
40
+ - 'false'
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"pagination":{"count":null,"page":1,"per_page":50},"data":[{"id":"SpBIA10pyLsnIOnCb6Ih","name":"Nathan
44
+ Lopez","email":"nathan.lopez042@gmail.com","confirmed":true,"confirmed_on":1688011243,"language":"en_US","last_confirmation_sent_on":null}]}'
45
+ recorded_at: Sat, 08 Jul 2023 04:58:30 GMT
46
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,45 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.cakemail.dev/lists/8950265/unarchive
6
+ body:
7
+ encoding: UTF-8
8
+ string: "<FILTERED>"
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v2.7.7
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Authorization:
17
+ - Bearer <TOKEN_PLACEHOLDER>
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Sat, 08 Jul 2023 04:58:35 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '47'
33
+ Connection:
34
+ - keep-alive
35
+ Vary:
36
+ - Origin
37
+ X-Krakend:
38
+ - Version 1.1.1
39
+ X-Krakend-Completed:
40
+ - 'false'
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"id":8950265,"object":"list","archived":false}'
44
+ recorded_at: Sat, 08 Jul 2023 04:58:35 GMT
45
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,46 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: patch
5
+ uri: https://api.cakemail.dev/lists/8950265
6
+ body:
7
+ encoding: UTF-8
8
+ string: "<FILTERED>"
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v2.7.7
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Authorization:
17
+ - Bearer <TOKEN_PLACEHOLDER>
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Sat, 08 Jul 2023 04:58:33 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '596'
33
+ Connection:
34
+ - keep-alive
35
+ Vary:
36
+ - Origin
37
+ X-Krakend:
38
+ - Version 1.1.1
39
+ X-Krakend-Completed:
40
+ - 'false'
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"id":8950265,"updated":true,"data":{"id":8950265,"name":"New name","status":"active","policy_accepted":false,"language":"fr_CA","created_on":1688792311,"default_sender":{"name":"Nathan
44
+ Lopez","email":"nathan.lopez042@gmail.com"},"redirections":{"after_opt_in":null,"after_double_opt_in":null,"after_opt_out":null},"pages":{"opt_in":"https://cmtd1.com/oi/443/8ee2785836727f588cc72fecda18c5e2","opt_out":"https://cmtd1.com/oo/443/8ee2785836727f588cc72fecda18c5e2","subscribe":"https://cmtd1.com/s/443/8ee2785836727f588cc72fecda18c5e2","unsubscribe":null},"webhook":{"url":null,"actions":["all"]}}}'
45
+ recorded_at: Sat, 08 Jul 2023 04:58:33 GMT
46
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.cakemail.dev/lists?page=1&per_page=50
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v2.7.7
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Authorization:
17
+ - Bearer <TOKEN_PLACEHOLDER>
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Sat, 08 Jul 2023 04:58:27 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '583'
33
+ Connection:
34
+ - keep-alive
35
+ Vary:
36
+ - Origin
37
+ X-Krakend:
38
+ - Version 1.1.1
39
+ X-Krakend-Completed:
40
+ - 'false'
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"pagination":{"count":null,"page":1,"per_page":50},"data":[{"id":8944823,"name":"Liste
44
+ de Nathan Lopez","status":"active","language":"fr_CA","created_on":1688012089,"default_sender":{"name":"Nathan
45
+ Lopez","email":"nathan.lopez042@gmail.com"}},{"id":8947181,"name":"Test","status":"active","language":"fr_FR","created_on":1688445887,"default_sender":{"name":"Nathan
46
+ Lopez","email":"nathan.lopez042@gmail.com"}},{"id":8947185,"name":"New name","status":"active","language":"fr_CA","created_on":1688447179,"default_sender":{"name":"Nathan
47
+ Lopez","email":"nathan.lopez042@gmail.com"}}]}'
48
+ recorded_at: Sat, 08 Jul 2023 04:58:27 GMT
49
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.cakemail.dev/lists?page=1&per_page=1&with_count=true
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v2.7.7
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Authorization:
17
+ - Bearer <TOKEN_PLACEHOLDER>
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Sat, 08 Jul 2023 04:58:28 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '241'
33
+ Connection:
34
+ - keep-alive
35
+ Vary:
36
+ - Origin
37
+ X-Krakend:
38
+ - Version 1.1.1
39
+ X-Krakend-Completed:
40
+ - 'false'
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"pagination":{"count":3,"page":1,"per_page":1},"data":[{"id":8944823,"name":"Liste
44
+ de Nathan Lopez","status":"active","language":"fr_CA","created_on":1688012089,"default_sender":{"name":"Nathan
45
+ Lopez","email":"nathan.lopez042@gmail.com"}}]}'
46
+ recorded_at: Sat, 08 Jul 2023 04:58:28 GMT
47
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,93 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.cakemail.dev/lists?page=1&per_page=1&with_count=true
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v2.7.7
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Authorization:
17
+ - Bearer <TOKEN_PLACEHOLDER>
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Sat, 08 Jul 2023 04:58:28 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '241'
33
+ Connection:
34
+ - keep-alive
35
+ Vary:
36
+ - Origin
37
+ X-Krakend:
38
+ - Version 1.1.1
39
+ X-Krakend-Completed:
40
+ - 'false'
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"pagination":{"count":3,"page":1,"per_page":1},"data":[{"id":8944823,"name":"Liste
44
+ de Nathan Lopez","status":"active","language":"fr_CA","created_on":1688012089,"default_sender":{"name":"Nathan
45
+ Lopez","email":"nathan.lopez042@gmail.com"}}]}'
46
+ recorded_at: Sat, 08 Jul 2023 04:58:28 GMT
47
+ - request:
48
+ method: get
49
+ uri: https://api.cakemail.dev/lists?page=1&per_page=50
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ User-Agent:
55
+ - Faraday v2.7.7
56
+ Accept:
57
+ - application/json
58
+ Content-Type:
59
+ - application/json
60
+ Authorization:
61
+ - Bearer <TOKEN_PLACEHOLDER>
62
+ Accept-Encoding:
63
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
64
+ response:
65
+ status:
66
+ code: 200
67
+ message: OK
68
+ headers:
69
+ Server:
70
+ - nginx
71
+ Date:
72
+ - Sat, 08 Jul 2023 04:58:29 GMT
73
+ Content-Type:
74
+ - application/json
75
+ Content-Length:
76
+ - '583'
77
+ Connection:
78
+ - keep-alive
79
+ Vary:
80
+ - Origin
81
+ X-Krakend:
82
+ - Version 1.1.1
83
+ X-Krakend-Completed:
84
+ - 'false'
85
+ body:
86
+ encoding: UTF-8
87
+ string: '{"pagination":{"count":null,"page":1,"per_page":50},"data":[{"id":8944823,"name":"Liste
88
+ de Nathan Lopez","status":"active","language":"fr_CA","created_on":1688012089,"default_sender":{"name":"Nathan
89
+ Lopez","email":"nathan.lopez042@gmail.com"}},{"id":8947181,"name":"Test","status":"active","language":"fr_FR","created_on":1688445887,"default_sender":{"name":"Nathan
90
+ Lopez","email":"nathan.lopez042@gmail.com"}},{"id":8947185,"name":"New name","status":"active","language":"fr_CA","created_on":1688447179,"default_sender":{"name":"Nathan
91
+ Lopez","email":"nathan.lopez042@gmail.com"}}]}'
92
+ recorded_at: Sat, 08 Jul 2023 04:58:29 GMT
93
+ recorded_with: VCR 6.2.0