mailroute 0.0.5 → 0.0.6
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.
- data/.gitignore +1 -0
- data/lib/mailroute.rb +1 -0
- data/lib/mailroute/models/domain.rb +1 -1
- data/lib/mailroute/models/email_account.rb +18 -3
- data/lib/mailroute/models/timezone.rb +54 -0
- data/lib/mailroute/version.rb +1 -1
- data/spec/lib/mailroute/models/domain_spec.rb +15 -9
- data/spec/lib/mailroute/models/email_account_spec.rb +50 -6
- data/spec/lib/mailroute/models/policy_filter_spec.rb +1 -4
- data/spec/lib/mailroute/models/timezone_spec.rb +15 -0
- data/spec/vcr_cassettes/Mailroute_Domain/has_many_notification_tasks/should_be_able_to_create_a_new_task.yml +174 -0
- data/spec/vcr_cassettes/Mailroute_Domain/has_many_notification_tasks/should_have_many_notification_task.yml +172 -0
- data/spec/vcr_cassettes/Mailroute_EmailAccount/_set_password/should_set_the_password.yml +55 -63
- data/spec/vcr_cassettes/Mailroute_EmailAccount/has_many_notification_tasks/changing_active_notification_tasks/should_use_tasks_either_from_domain_or_from_the_email_account_itself.yml +341 -0
- data/spec/vcr_cassettes/Mailroute_EmailAccount/has_many_notification_tasks/should_be_able_to_create_a_new_task.yml +174 -0
- data/spec/vcr_cassettes/Mailroute_EmailAccount/has_many_notification_tasks/should_have_many_notification_task.yml +172 -0
- data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/standard_mode/anti_spam_preset/.yml +104 -0
- data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/standard_mode/anti_spam_preset/.yml +104 -0
- metadata +21 -9
- data/Gemfile.lock +0 -87
- data/spec/vcr_cassettes/Mailroute_Domain/has_a_notification_task/should_have_notification_task.yml +0 -249
- data/spec/vcr_cassettes/Mailroute_EmailAccount/has_notification_task/should_have_notification_task.yml +0 -79
@@ -1,78 +1,70 @@
|
|
1
|
-
---
|
2
|
-
recorded_with: VCR 2.
|
3
|
-
http_interactions:
|
4
|
-
- request:
|
1
|
+
---
|
2
|
+
recorded_with: VCR 2.5.0
|
3
|
+
http_interactions:
|
4
|
+
- request:
|
5
5
|
method: get
|
6
|
-
uri: https://admin-dev.mailroute.net/api/v1/email_account/
|
7
|
-
body:
|
6
|
+
uri: https://admin-dev.mailroute.net/api/v1/email_account/7718/
|
7
|
+
body:
|
8
8
|
string: ""
|
9
|
-
headers:
|
10
|
-
|
11
|
-
- application/json
|
12
|
-
Accept-Encoding:
|
13
|
-
- identity
|
14
|
-
Authorization:
|
9
|
+
headers:
|
10
|
+
Authorization:
|
15
11
|
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
16
|
-
|
17
|
-
-
|
18
|
-
response:
|
19
|
-
status:
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
response:
|
15
|
+
status:
|
20
16
|
code: 200
|
21
17
|
message: OK
|
22
|
-
headers:
|
23
|
-
|
18
|
+
headers:
|
19
|
+
Content-Type:
|
20
|
+
- application/json; charset=utf-8
|
21
|
+
Date:
|
22
|
+
- Mon, 20 May 2013 17:42:52 GMT
|
23
|
+
Server:
|
24
24
|
- nginx/1.2.6
|
25
|
-
|
26
|
-
-
|
27
|
-
Vary:
|
25
|
+
Cache-Control:
|
26
|
+
- no-cache
|
27
|
+
Vary:
|
28
28
|
- Accept, Cookie
|
29
29
|
- Accept-Encoding
|
30
|
-
|
31
|
-
-
|
32
|
-
|
33
|
-
- application/json; charset=utf-8
|
34
|
-
Date:
|
35
|
-
- Thu, 28 Mar 2013 18:49:40 GMT
|
36
|
-
Transfer-Encoding:
|
30
|
+
Connection:
|
31
|
+
- keep-alive
|
32
|
+
Transfer-Encoding:
|
37
33
|
- chunked
|
38
|
-
body:
|
39
|
-
string: "{\"absolute_url\": \"/user/
|
40
|
-
http_version:
|
41
|
-
recorded_at:
|
42
|
-
- request:
|
34
|
+
body:
|
35
|
+
string: "{\"absolute_url\": \"/user/admin@example.com/\", \"aliases\": \"a,b,c,d,e\", \"change_pwd\": null, \"contact\": null, \"create_opt\": null, \"created_at\": \"Wed, 1 May 2013 12:03:04 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"domain_name\": \"example.com\", \"id\": 7718, \"localpart\": \"admin\", \"notification_tasks\": [\"/api/v1/notification_account_task/16924/\"], \"policy\": \"/api/v1/policy_user/16395/\", \"priority\": 8, \"resource_uri\": \"/api/v1/email_account/7718/\", \"updated_at\": \"Mon, 20 May 2013 10:42:19 -0700\", \"use_domain_notifications\": true}"
|
36
|
+
http_version:
|
37
|
+
recorded_at: Mon, 20 May 2013 17:42:52 GMT
|
38
|
+
- request:
|
43
39
|
method: put
|
44
|
-
uri: https://admin-dev.mailroute.net/api/v1/email_account/
|
45
|
-
body:
|
46
|
-
string: "{\"absolute_url\":\"/user/
|
47
|
-
headers:
|
48
|
-
|
49
|
-
- "*/*"
|
50
|
-
Accept-Encoding:
|
51
|
-
- identity
|
52
|
-
Content-Type:
|
40
|
+
uri: https://admin-dev.mailroute.net/api/v1/email_account/7718/
|
41
|
+
body:
|
42
|
+
string: "{\"absolute_url\":\"/user/admin@example.com/\",\"password\":\"new_password\",\"id\":7718,\"domain\":\"/api/v1/domain/8372/\",\"create_opt\":null,\"priority\":8,\"notification_tasks\":[\"/api/v1/notification_account_task/16924/\"],\"created_at\":\"Wed, 1 May 2013 12:03:04 -0700\",\"localpart\":\"admin\",\"domain_name\":\"example.com\",\"contact\":null,\"resource_uri\":\"/api/v1/email_account/7718/\",\"confirm_password\":\"new_password\",\"updated_at\":\"Mon, 20 May 2013 10:42:19 -0700\",\"change_pwd\":null,\"aliases\":\"a,b,c,d,e\",\"use_domain_notifications\":true,\"policy\":\"/api/v1/policy_user/16395/\"}"
|
43
|
+
headers:
|
44
|
+
Content-Type:
|
53
45
|
- application/json
|
54
|
-
Authorization:
|
46
|
+
Authorization:
|
55
47
|
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
56
|
-
|
57
|
-
-
|
58
|
-
response:
|
59
|
-
status:
|
60
|
-
code:
|
61
|
-
message:
|
62
|
-
headers:
|
63
|
-
|
48
|
+
Accept:
|
49
|
+
- "*/*"
|
50
|
+
response:
|
51
|
+
status:
|
52
|
+
code: 202
|
53
|
+
message: ACCEPTED
|
54
|
+
headers:
|
55
|
+
Content-Type:
|
56
|
+
- application/json; charset=utf-8
|
57
|
+
Date:
|
58
|
+
- Mon, 20 May 2013 17:42:54 GMT
|
59
|
+
Server:
|
64
60
|
- nginx/1.2.6
|
65
|
-
|
61
|
+
Vary:
|
62
|
+
- Accept, Cookie
|
63
|
+
Connection:
|
66
64
|
- keep-alive
|
67
|
-
|
68
|
-
- Cookie
|
69
|
-
Content-Type:
|
70
|
-
- application/json; charset=utf-8
|
71
|
-
Date:
|
72
|
-
- Thu, 28 Mar 2013 18:49:45 GMT
|
73
|
-
Transfer-Encoding:
|
65
|
+
Transfer-Encoding:
|
74
66
|
- chunked
|
75
|
-
body:
|
76
|
-
string: "{\"
|
77
|
-
http_version:
|
78
|
-
recorded_at:
|
67
|
+
body:
|
68
|
+
string: "{\"absolute_url\": \"/user/admin@example.com/\", \"aliases\": \"a,b,c,d,e\", \"change_pwd\": null, \"confirm_password\": \"new_password\", \"contact\": null, \"create_opt\": null, \"created_at\": \"Wed, 1 May 2013 12:03:04 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"domain_name\": \"example.com\", \"id\": 7718, \"localpart\": \"admin\", \"notification_tasks\": [\"/api/v1/notification_account_task/16924/\"], \"password\": \"new_password\", \"pk\": \"7718\", \"policy\": \"/api/v1/policy_user/16395/\", \"priority\": 8, \"resource_uri\": \"/api/v1/email_account/7718/\", \"updated_at\": \"Mon, 20 May 2013 10:42:54 -0700\", \"use_domain_notifications\": true}"
|
69
|
+
http_version:
|
70
|
+
recorded_at: Mon, 20 May 2013 17:42:54 GMT
|
@@ -0,0 +1,341 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://admin-dev.mailroute.net/api/v1/email_account/7721/
|
6
|
+
body:
|
7
|
+
string: ""
|
8
|
+
headers:
|
9
|
+
Accept:
|
10
|
+
- application/json
|
11
|
+
Authorization:
|
12
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
13
|
+
response:
|
14
|
+
status:
|
15
|
+
code: 200
|
16
|
+
message: OK
|
17
|
+
headers:
|
18
|
+
Connection:
|
19
|
+
- keep-alive
|
20
|
+
Transfer-Encoding:
|
21
|
+
- chunked
|
22
|
+
Date:
|
23
|
+
- Tue, 28 May 2013 18:14:25 GMT
|
24
|
+
Content-Type:
|
25
|
+
- application/json; charset=utf-8
|
26
|
+
Cache-Control:
|
27
|
+
- no-cache
|
28
|
+
Vary:
|
29
|
+
- Accept, Cookie
|
30
|
+
- Accept-Encoding
|
31
|
+
Server:
|
32
|
+
- nginx/1.2.8
|
33
|
+
body:
|
34
|
+
string: "{\"absolute_url\": \"/user/admin@example.com/\", \"aliases\": \"\", \"change_pwd\": null, \"contact\": null, \"create_opt\": null, \"created_at\": \"Tue, 28 May 2013 10:51:18 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"domain_name\": \"example.com\", \"id\": 7721, \"localpart\": \"admin\", \"notification_tasks\": [\"/api/v1/notification_account_task/16931/\", \"/api/v1/notification_account_task/16932/\"], \"policy\": \"/api/v1/policy_user/16398/\", \"priority\": 8, \"resource_uri\": \"/api/v1/email_account/7721/\", \"updated_at\": \"Tue, 28 May 2013 11:12:30 -0700\", \"use_domain_notifications\": true}"
|
35
|
+
http_version:
|
36
|
+
recorded_at: Tue, 28 May 2013 18:14:25 GMT
|
37
|
+
- request:
|
38
|
+
method: get
|
39
|
+
uri: https://admin-dev.mailroute.net/api/v1/domain/8372/
|
40
|
+
body:
|
41
|
+
string: ""
|
42
|
+
headers:
|
43
|
+
Accept:
|
44
|
+
- application/json
|
45
|
+
Authorization:
|
46
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
47
|
+
response:
|
48
|
+
status:
|
49
|
+
code: 200
|
50
|
+
message: OK
|
51
|
+
headers:
|
52
|
+
Connection:
|
53
|
+
- keep-alive
|
54
|
+
Transfer-Encoding:
|
55
|
+
- chunked
|
56
|
+
Date:
|
57
|
+
- Tue, 28 May 2013 18:14:26 GMT
|
58
|
+
Content-Type:
|
59
|
+
- application/json; charset=utf-8
|
60
|
+
Cache-Control:
|
61
|
+
- no-cache
|
62
|
+
Vary:
|
63
|
+
- Accept, Cookie
|
64
|
+
- Accept-Encoding
|
65
|
+
Server:
|
66
|
+
- nginx/1.2.6
|
67
|
+
body:
|
68
|
+
string: "{\"absolute_url\": \"/domain/example.com/\", \"active\": true, \"created_at\": \"Tue, 30 Apr 2013 12:02:15 -0700\", \"customer\": \"/api/v1/customer/11371/\", \"deliveryport\": 25, \"hold_email\": false, \"id\": 8372, \"name\": \"example.com\", \"notification_tasks\": [\"/api/v1/notification_domain_task/16919/\", \"/api/v1/notification_domain_task/16926/\", \"/api/v1/notification_domain_task/16927/\", \"/api/v1/notification_domain_task/16928/\"], \"outbound_enabled\": false, \"policy\": \"/api/v1/policy_domain/16390/\", \"resource_uri\": \"/api/v1/domain/8372/\", \"updated_at\": \"Sun, 5 May 2013 06:50:37 -0700\", \"userlist_complete\": true}"
|
69
|
+
http_version:
|
70
|
+
recorded_at: Tue, 28 May 2013 18:14:27 GMT
|
71
|
+
- request:
|
72
|
+
method: get
|
73
|
+
uri: https://admin-dev.mailroute.net/api/v1/notification_domain_task/?domain=8372
|
74
|
+
body:
|
75
|
+
string: ""
|
76
|
+
headers:
|
77
|
+
Accept:
|
78
|
+
- application/json
|
79
|
+
Authorization:
|
80
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
81
|
+
response:
|
82
|
+
status:
|
83
|
+
code: 200
|
84
|
+
message: OK
|
85
|
+
headers:
|
86
|
+
Connection:
|
87
|
+
- keep-alive
|
88
|
+
Transfer-Encoding:
|
89
|
+
- chunked
|
90
|
+
Date:
|
91
|
+
- Tue, 28 May 2013 18:14:28 GMT
|
92
|
+
Content-Type:
|
93
|
+
- application/json; charset=utf-8
|
94
|
+
Cache-Control:
|
95
|
+
- no-cache
|
96
|
+
Vary:
|
97
|
+
- Accept, Cookie
|
98
|
+
- Accept-Encoding
|
99
|
+
Server:
|
100
|
+
- nginx/1.2.6
|
101
|
+
body:
|
102
|
+
string: "{\"meta\": {\"limit\": 20, \"next\": null, \"offset\": 0, \"previous\": null, \"total_count\": 4}, \"objects\": [{\"domain\": \"/api/v1/domain/8372/\", \"domain_bounce_unlisted\": true, \"enabled\": false, \"fri\": true, \"hour\": 7, \"id\": 16919, \"minute\": 0, \"mon\": false, \"resource_uri\": \"/api/v1/notification_domain_task/16919/\", \"sat\": false, \"sun\": false, \"thu\": true, \"timezone\": null, \"tue\": true, \"wed\": true}, {\"domain\": \"/api/v1/domain/8372/\", \"domain_bounce_unlisted\": true, \"enabled\": false, \"fri\": false, \"hour\": 11, \"id\": 16926, \"minute\": 12, \"mon\": false, \"resource_uri\": \"/api/v1/notification_domain_task/16926/\", \"sat\": false, \"sun\": false, \"thu\": false, \"timezone\": null, \"tue\": false, \"wed\": false}, {\"domain\": \"/api/v1/domain/8372/\", \"domain_bounce_unlisted\": true, \"enabled\": false, \"fri\": false, \"hour\": 10, \"id\": 16927, \"minute\": 15, \"mon\": false, \"resource_uri\": \"/api/v1/notification_domain_task/16927/\", \"sat\": false, \"sun\": false, \"thu\": false, \"timezone\": null, \"tue\": false, \"wed\": false}, {\"domain\": \"/api/v1/domain/8372/\", \"domain_bounce_unlisted\": true, \"enabled\": false, \"fri\": false, \"hour\": 10, \"id\": 16928, \"minute\": 15, \"mon\": false, \"resource_uri\": \"/api/v1/notification_domain_task/16928/\", \"sat\": false, \"sun\": false, \"thu\": false, \"timezone\": null, \"tue\": false, \"wed\": false}]}"
|
103
|
+
http_version:
|
104
|
+
recorded_at: Tue, 28 May 2013 18:14:29 GMT
|
105
|
+
- request:
|
106
|
+
method: get
|
107
|
+
uri: https://admin-dev.mailroute.net/api/v1/notification_account_task/?email_account=7721
|
108
|
+
body:
|
109
|
+
string: ""
|
110
|
+
headers:
|
111
|
+
Accept:
|
112
|
+
- application/json
|
113
|
+
Authorization:
|
114
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
115
|
+
response:
|
116
|
+
status:
|
117
|
+
code: 200
|
118
|
+
message: OK
|
119
|
+
headers:
|
120
|
+
Connection:
|
121
|
+
- keep-alive
|
122
|
+
Transfer-Encoding:
|
123
|
+
- chunked
|
124
|
+
Date:
|
125
|
+
- Tue, 28 May 2013 18:14:30 GMT
|
126
|
+
Content-Type:
|
127
|
+
- application/json; charset=utf-8
|
128
|
+
Cache-Control:
|
129
|
+
- no-cache
|
130
|
+
Vary:
|
131
|
+
- Accept, Cookie
|
132
|
+
- Accept-Encoding
|
133
|
+
Server:
|
134
|
+
- nginx/1.2.6
|
135
|
+
body:
|
136
|
+
string: "{\"meta\": {\"limit\": 20, \"next\": null, \"offset\": 0, \"previous\": null, \"total_count\": 2}, \"objects\": [{\"email_account\": \"/api/v1/email_account/7721/\", \"enabled\": false, \"fri\": true, \"hour\": 7, \"id\": 16931, \"minute\": 0, \"mon\": false, \"resource_uri\": \"/api/v1/notification_account_task/16931/\", \"sat\": false, \"sun\": false, \"thu\": true, \"timezone\": null, \"tue\": true, \"wed\": true}, {\"email_account\": \"/api/v1/email_account/7721/\", \"enabled\": false, \"fri\": false, \"hour\": 10, \"id\": 16932, \"minute\": 15, \"mon\": false, \"resource_uri\": \"/api/v1/notification_account_task/16932/\", \"sat\": false, \"sun\": false, \"thu\": false, \"timezone\": null, \"tue\": false, \"wed\": false}]}"
|
137
|
+
http_version:
|
138
|
+
recorded_at: Tue, 28 May 2013 18:14:30 GMT
|
139
|
+
- request:
|
140
|
+
method: put
|
141
|
+
uri: https://admin-dev.mailroute.net/api/v1/email_account/7721/
|
142
|
+
body:
|
143
|
+
string: "{\"resource_uri\":\"/api/v1/email_account/7721/\",\"domain_name\":\"example.com\",\"create_opt\":null,\"absolute_url\":\"/user/admin@example.com/\",\"use_domain_notifications\":false,\"updated_at\":\"Tue, 28 May 2013 11:12:30 -0700\",\"policy\":\"/api/v1/policy_user/16398/\",\"created_at\":\"Tue, 28 May 2013 10:51:18 -0700\",\"localpart\":\"admin\",\"notification_tasks\":[\"/api/v1/notification_account_task/16931/\",\"/api/v1/notification_account_task/16932/\"],\"aliases\":\"\",\"domain\":\"/api/v1/domain/8372/\",\"priority\":8,\"contact\":null,\"change_pwd\":null,\"id\":7721}"
|
144
|
+
headers:
|
145
|
+
Accept:
|
146
|
+
- "*/*"
|
147
|
+
Authorization:
|
148
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
149
|
+
Content-Type:
|
150
|
+
- application/json
|
151
|
+
response:
|
152
|
+
status:
|
153
|
+
code: 202
|
154
|
+
message: ACCEPTED
|
155
|
+
headers:
|
156
|
+
Connection:
|
157
|
+
- keep-alive
|
158
|
+
Transfer-Encoding:
|
159
|
+
- chunked
|
160
|
+
Date:
|
161
|
+
- Tue, 28 May 2013 18:14:32 GMT
|
162
|
+
Content-Type:
|
163
|
+
- application/json; charset=utf-8
|
164
|
+
Vary:
|
165
|
+
- Accept, Cookie
|
166
|
+
Server:
|
167
|
+
- nginx/1.2.6
|
168
|
+
body:
|
169
|
+
string: "{\"absolute_url\": \"/user/admin@example.com/\", \"aliases\": \"\", \"change_pwd\": null, \"contact\": null, \"create_opt\": null, \"created_at\": \"Tue, 28 May 2013 10:51:18 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"domain_name\": \"example.com\", \"id\": 7721, \"localpart\": \"admin\", \"notification_tasks\": [\"/api/v1/notification_account_task/16931/\", \"/api/v1/notification_account_task/16932/\"], \"pk\": \"7721\", \"policy\": \"/api/v1/policy_user/16398/\", \"priority\": 8, \"resource_uri\": \"/api/v1/email_account/7721/\", \"updated_at\": \"Tue, 28 May 2013 11:14:31 -0700\", \"use_domain_notifications\": false}"
|
170
|
+
http_version:
|
171
|
+
recorded_at: Tue, 28 May 2013 18:14:32 GMT
|
172
|
+
- request:
|
173
|
+
method: get
|
174
|
+
uri: https://admin-dev.mailroute.net/api/v1/email_account/7721/
|
175
|
+
body:
|
176
|
+
string: ""
|
177
|
+
headers:
|
178
|
+
Accept:
|
179
|
+
- application/json
|
180
|
+
Authorization:
|
181
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
182
|
+
response:
|
183
|
+
status:
|
184
|
+
code: 200
|
185
|
+
message: OK
|
186
|
+
headers:
|
187
|
+
Connection:
|
188
|
+
- keep-alive
|
189
|
+
Transfer-Encoding:
|
190
|
+
- chunked
|
191
|
+
Date:
|
192
|
+
- Tue, 28 May 2013 18:14:33 GMT
|
193
|
+
Content-Type:
|
194
|
+
- application/json; charset=utf-8
|
195
|
+
Cache-Control:
|
196
|
+
- no-cache
|
197
|
+
Vary:
|
198
|
+
- Accept, Cookie
|
199
|
+
- Accept-Encoding
|
200
|
+
Server:
|
201
|
+
- nginx/1.2.6
|
202
|
+
body:
|
203
|
+
string: "{\"absolute_url\": \"/user/admin@example.com/\", \"aliases\": \"\", \"change_pwd\": null, \"contact\": null, \"create_opt\": null, \"created_at\": \"Tue, 28 May 2013 10:51:18 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"domain_name\": \"example.com\", \"id\": 7721, \"localpart\": \"admin\", \"notification_tasks\": [\"/api/v1/notification_account_task/16931/\", \"/api/v1/notification_account_task/16932/\"], \"policy\": \"/api/v1/policy_user/16398/\", \"priority\": 8, \"resource_uri\": \"/api/v1/email_account/7721/\", \"updated_at\": \"Tue, 28 May 2013 11:14:31 -0700\", \"use_domain_notifications\": false}"
|
204
|
+
http_version:
|
205
|
+
recorded_at: Tue, 28 May 2013 18:14:33 GMT
|
206
|
+
- request:
|
207
|
+
method: get
|
208
|
+
uri: https://admin-dev.mailroute.net/api/v1/notification_account_task/?email_account=7721
|
209
|
+
body:
|
210
|
+
string: ""
|
211
|
+
headers:
|
212
|
+
Accept:
|
213
|
+
- application/json
|
214
|
+
Authorization:
|
215
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
216
|
+
response:
|
217
|
+
status:
|
218
|
+
code: 200
|
219
|
+
message: OK
|
220
|
+
headers:
|
221
|
+
Connection:
|
222
|
+
- keep-alive
|
223
|
+
Transfer-Encoding:
|
224
|
+
- chunked
|
225
|
+
Date:
|
226
|
+
- Tue, 28 May 2013 18:14:34 GMT
|
227
|
+
Content-Type:
|
228
|
+
- application/json; charset=utf-8
|
229
|
+
Cache-Control:
|
230
|
+
- no-cache
|
231
|
+
Vary:
|
232
|
+
- Accept, Cookie
|
233
|
+
- Accept-Encoding
|
234
|
+
Server:
|
235
|
+
- nginx/1.2.6
|
236
|
+
body:
|
237
|
+
string: "{\"meta\": {\"limit\": 20, \"next\": null, \"offset\": 0, \"previous\": null, \"total_count\": 2}, \"objects\": [{\"email_account\": \"/api/v1/email_account/7721/\", \"enabled\": false, \"fri\": true, \"hour\": 7, \"id\": 16931, \"minute\": 0, \"mon\": false, \"resource_uri\": \"/api/v1/notification_account_task/16931/\", \"sat\": false, \"sun\": false, \"thu\": true, \"timezone\": null, \"tue\": true, \"wed\": true}, {\"email_account\": \"/api/v1/email_account/7721/\", \"enabled\": false, \"fri\": false, \"hour\": 10, \"id\": 16932, \"minute\": 15, \"mon\": false, \"resource_uri\": \"/api/v1/notification_account_task/16932/\", \"sat\": false, \"sun\": false, \"thu\": false, \"timezone\": null, \"tue\": false, \"wed\": false}]}"
|
238
|
+
http_version:
|
239
|
+
recorded_at: Tue, 28 May 2013 18:14:34 GMT
|
240
|
+
- request:
|
241
|
+
method: get
|
242
|
+
uri: https://admin-dev.mailroute.net/api/v1/domain/8372/
|
243
|
+
body:
|
244
|
+
string: ""
|
245
|
+
headers:
|
246
|
+
Accept:
|
247
|
+
- application/json
|
248
|
+
Authorization:
|
249
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
250
|
+
response:
|
251
|
+
status:
|
252
|
+
code: 200
|
253
|
+
message: OK
|
254
|
+
headers:
|
255
|
+
Connection:
|
256
|
+
- keep-alive
|
257
|
+
Transfer-Encoding:
|
258
|
+
- chunked
|
259
|
+
Date:
|
260
|
+
- Tue, 28 May 2013 18:14:35 GMT
|
261
|
+
Content-Type:
|
262
|
+
- application/json; charset=utf-8
|
263
|
+
Cache-Control:
|
264
|
+
- no-cache
|
265
|
+
Vary:
|
266
|
+
- Accept, Cookie
|
267
|
+
- Accept-Encoding
|
268
|
+
Server:
|
269
|
+
- nginx/1.2.6
|
270
|
+
body:
|
271
|
+
string: "{\"absolute_url\": \"/domain/example.com/\", \"active\": true, \"created_at\": \"Tue, 30 Apr 2013 12:02:15 -0700\", \"customer\": \"/api/v1/customer/11371/\", \"deliveryport\": 25, \"hold_email\": false, \"id\": 8372, \"name\": \"example.com\", \"notification_tasks\": [\"/api/v1/notification_domain_task/16919/\", \"/api/v1/notification_domain_task/16926/\", \"/api/v1/notification_domain_task/16927/\", \"/api/v1/notification_domain_task/16928/\"], \"outbound_enabled\": false, \"policy\": \"/api/v1/policy_domain/16390/\", \"resource_uri\": \"/api/v1/domain/8372/\", \"updated_at\": \"Sun, 5 May 2013 06:50:37 -0700\", \"userlist_complete\": true}"
|
272
|
+
http_version:
|
273
|
+
recorded_at: Tue, 28 May 2013 18:14:35 GMT
|
274
|
+
- request:
|
275
|
+
method: get
|
276
|
+
uri: https://admin-dev.mailroute.net/api/v1/notification_domain_task/?domain=8372
|
277
|
+
body:
|
278
|
+
string: ""
|
279
|
+
headers:
|
280
|
+
Accept:
|
281
|
+
- application/json
|
282
|
+
Authorization:
|
283
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
284
|
+
response:
|
285
|
+
status:
|
286
|
+
code: 200
|
287
|
+
message: OK
|
288
|
+
headers:
|
289
|
+
Connection:
|
290
|
+
- keep-alive
|
291
|
+
Transfer-Encoding:
|
292
|
+
- chunked
|
293
|
+
Date:
|
294
|
+
- Tue, 28 May 2013 18:14:36 GMT
|
295
|
+
Content-Type:
|
296
|
+
- application/json; charset=utf-8
|
297
|
+
Cache-Control:
|
298
|
+
- no-cache
|
299
|
+
Vary:
|
300
|
+
- Accept, Cookie
|
301
|
+
- Accept-Encoding
|
302
|
+
Server:
|
303
|
+
- nginx/1.2.6
|
304
|
+
body:
|
305
|
+
string: "{\"meta\": {\"limit\": 20, \"next\": null, \"offset\": 0, \"previous\": null, \"total_count\": 4}, \"objects\": [{\"domain\": \"/api/v1/domain/8372/\", \"domain_bounce_unlisted\": true, \"enabled\": false, \"fri\": true, \"hour\": 7, \"id\": 16919, \"minute\": 0, \"mon\": false, \"resource_uri\": \"/api/v1/notification_domain_task/16919/\", \"sat\": false, \"sun\": false, \"thu\": true, \"timezone\": null, \"tue\": true, \"wed\": true}, {\"domain\": \"/api/v1/domain/8372/\", \"domain_bounce_unlisted\": true, \"enabled\": false, \"fri\": false, \"hour\": 11, \"id\": 16926, \"minute\": 12, \"mon\": false, \"resource_uri\": \"/api/v1/notification_domain_task/16926/\", \"sat\": false, \"sun\": false, \"thu\": false, \"timezone\": null, \"tue\": false, \"wed\": false}, {\"domain\": \"/api/v1/domain/8372/\", \"domain_bounce_unlisted\": true, \"enabled\": false, \"fri\": false, \"hour\": 10, \"id\": 16927, \"minute\": 15, \"mon\": false, \"resource_uri\": \"/api/v1/notification_domain_task/16927/\", \"sat\": false, \"sun\": false, \"thu\": false, \"timezone\": null, \"tue\": false, \"wed\": false}, {\"domain\": \"/api/v1/domain/8372/\", \"domain_bounce_unlisted\": true, \"enabled\": false, \"fri\": false, \"hour\": 10, \"id\": 16928, \"minute\": 15, \"mon\": false, \"resource_uri\": \"/api/v1/notification_domain_task/16928/\", \"sat\": false, \"sun\": false, \"thu\": false, \"timezone\": null, \"tue\": false, \"wed\": false}]}"
|
306
|
+
http_version:
|
307
|
+
recorded_at: Tue, 28 May 2013 18:14:36 GMT
|
308
|
+
- request:
|
309
|
+
method: put
|
310
|
+
uri: https://admin-dev.mailroute.net/api/v1/email_account/7721/
|
311
|
+
body:
|
312
|
+
string: "{\"resource_uri\":\"/api/v1/email_account/7721/\",\"domain_name\":\"example.com\",\"create_opt\":null,\"absolute_url\":\"/user/admin@example.com/\",\"use_domain_notifications\":true,\"updated_at\":\"Tue, 28 May 2013 11:14:31 -0700\",\"policy\":\"/api/v1/policy_user/16398/\",\"created_at\":\"Tue, 28 May 2013 10:51:18 -0700\",\"localpart\":\"admin\",\"notification_tasks\":[\"/api/v1/notification_account_task/16931/\",\"/api/v1/notification_account_task/16932/\"],\"aliases\":\"\",\"domain\":\"/api/v1/domain/8372/\",\"priority\":8,\"contact\":null,\"change_pwd\":null,\"pk\":\"7721\",\"id\":7721}"
|
313
|
+
headers:
|
314
|
+
Accept:
|
315
|
+
- "*/*"
|
316
|
+
Authorization:
|
317
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
318
|
+
Content-Type:
|
319
|
+
- application/json
|
320
|
+
response:
|
321
|
+
status:
|
322
|
+
code: 202
|
323
|
+
message: ACCEPTED
|
324
|
+
headers:
|
325
|
+
Connection:
|
326
|
+
- keep-alive
|
327
|
+
Transfer-Encoding:
|
328
|
+
- chunked
|
329
|
+
Date:
|
330
|
+
- Tue, 28 May 2013 18:14:38 GMT
|
331
|
+
Content-Type:
|
332
|
+
- application/json; charset=utf-8
|
333
|
+
Vary:
|
334
|
+
- Accept, Cookie
|
335
|
+
Server:
|
336
|
+
- nginx/1.2.6
|
337
|
+
body:
|
338
|
+
string: "{\"absolute_url\": \"/user/admin@example.com/\", \"aliases\": \"\", \"change_pwd\": null, \"contact\": null, \"create_opt\": null, \"created_at\": \"Tue, 28 May 2013 10:51:18 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"domain_name\": \"example.com\", \"id\": 7721, \"localpart\": \"admin\", \"localpart_aliases\": null, \"notification_tasks\": [\"/api/v1/notification_account_task/16931/\", \"/api/v1/notification_account_task/16932/\"], \"pk\": \"7721\", \"policy\": \"/api/v1/policy_user/16398/\", \"priority\": 8, \"resource_uri\": \"/api/v1/email_account/7721/\", \"updated_at\": \"Tue, 28 May 2013 11:14:38 -0700\", \"use_domain_notifications\": true}"
|
339
|
+
http_version:
|
340
|
+
recorded_at: Tue, 28 May 2013 18:14:38 GMT
|
341
|
+
recorded_with: VCR 2.5.0
|