mxhero-api 0.1.11 → 0.1.12
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/VERSION +1 -1
- data/lib/communication.rb +35 -0
- data/lib/groups.rb +178 -0
- data/lib/mxhero-api.rb +288 -312
- data/lib/urls.rb +19 -0
- data/mxhero-api.gemspec +4 -4
- data/test/fixtures/api/account_properties.yml +12 -13
- data/test/fixtures/api/account_properties_not_found.yml +9 -9
- data/test/fixtures/api/accounts.yml +39 -0
- data/test/fixtures/api/accounts_filtered.yml +57 -42
- data/test/fixtures/api/accounts_from_domain.yml +10 -10
- data/test/fixtures/api/accounts_from_domain_paginated.yml +10 -10
- data/test/fixtures/api/accounts_without_group.yml +75 -0
- data/test/fixtures/api/add_an_inexistent_account_to_group.yml +39 -0
- data/test/fixtures/api/add_and_remove_account.yml +219 -0
- data/test/fixtures/api/all_groups.yml +39 -0
- data/test/fixtures/api/create_rule_for_domain.yml +95 -21
- data/test/fixtures/api/delete_group.yml +75 -0
- data/test/fixtures/api/delete_rule.yml +21 -61
- data/test/fixtures/api/domain_by_id.yml +10 -10
- data/test/fixtures/api/domain_by_id_not_found.yml +9 -9
- data/test/fixtures/api/domain_rule.yml +62 -76
- data/test/fixtures/api/domains.yml +10 -10
- data/test/fixtures/api/remove_account_from_group_twice.yml +150 -0
- data/test/fixtures/api/remove_inexistente_account_from_group.yml +39 -0
- data/test/fixtures/api/rules_for_domain.yml +11 -57
- data/test/fixtures/api/rules_for_domain_by_component.yml +6 -8
- data/test/fixtures/api/save_group.yml +119 -0
- data/test/fixtures/api/update_account_properties.yml +35 -33
- data/test/fixtures/api/update_rule.yml +35 -76
- data/test/helper.rb +1 -1
- data/test/test_groups.rb +104 -0
- data/test/test_mxhero_api.rb +49 -27
- metadata +26 -7
- data/test/fixtures/api/create_rule_alredy_exist.yml +0 -81
- data/test/fixtures/api/create_rule_success.yml +0 -41
@@ -0,0 +1,75 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
5
|
+
uri: http://admin:password@test.mxhero.com/webapi/api/v1/domains/tesla.com/groups/test
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Authorization:
|
15
|
+
- Basic YWRtaW46cGFzc3dvcmQ=
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: !binary |-
|
20
|
+
T0s=
|
21
|
+
headers:
|
22
|
+
!binary "RGF0ZQ==":
|
23
|
+
- !binary |-
|
24
|
+
VGh1LCAxMiBTZXAgMjAxMyAyMToyMTowMyBHTVQ=
|
25
|
+
!binary "U2VydmVy":
|
26
|
+
- !binary |-
|
27
|
+
QXBhY2hlLzIuMi4xNCAoVWJ1bnR1KQ==
|
28
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
29
|
+
- !binary |-
|
30
|
+
MA==
|
31
|
+
!binary "Q29udGVudC1UeXBl":
|
32
|
+
- !binary |-
|
33
|
+
dGV4dC9wbGFpbg==
|
34
|
+
body:
|
35
|
+
encoding: US-ASCII
|
36
|
+
string: ''
|
37
|
+
http_version:
|
38
|
+
recorded_at: Thu, 12 Sep 2013 21:21:03 GMT
|
39
|
+
- request:
|
40
|
+
method: get
|
41
|
+
uri: http://admin:password@test.mxhero.com/webapi/api/v1/domains/tesla.com/groups
|
42
|
+
body:
|
43
|
+
encoding: US-ASCII
|
44
|
+
string: ''
|
45
|
+
headers:
|
46
|
+
Accept:
|
47
|
+
- application/json
|
48
|
+
Content-Type:
|
49
|
+
- application/json
|
50
|
+
Authorization:
|
51
|
+
- Basic YWRtaW46cGFzc3dvcmQ=
|
52
|
+
response:
|
53
|
+
status:
|
54
|
+
code: 200
|
55
|
+
message: !binary |-
|
56
|
+
T0s=
|
57
|
+
headers:
|
58
|
+
!binary "RGF0ZQ==":
|
59
|
+
- !binary |-
|
60
|
+
VGh1LCAxMiBTZXAgMjAxMyAyMToyMTowMyBHTVQ=
|
61
|
+
!binary "U2VydmVy":
|
62
|
+
- !binary |-
|
63
|
+
QXBhY2hlLzIuMi4xNCAoVWJ1bnR1KQ==
|
64
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
65
|
+
- !binary |-
|
66
|
+
NjM=
|
67
|
+
!binary "Q29udGVudC1UeXBl":
|
68
|
+
- !binary |-
|
69
|
+
YXBwbGljYXRpb24vanNvbg==
|
70
|
+
body:
|
71
|
+
encoding: US-ASCII
|
72
|
+
string: ! '{"elements":[],"totalElements":0,"totalPages":0,"actualPage":0}'
|
73
|
+
http_version:
|
74
|
+
recorded_at: Thu, 12 Sep 2013 21:21:03 GMT
|
75
|
+
recorded_with: VCR 2.5.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://admin:password@
|
5
|
+
uri: http://admin:password@test.mxhero.com/webapi/api/v1/domains/tesla.com/rules
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -19,72 +19,29 @@ http_interactions:
|
|
19
19
|
message: !binary |-
|
20
20
|
T0s=
|
21
21
|
headers:
|
22
|
+
!binary "RGF0ZQ==":
|
23
|
+
- !binary |-
|
24
|
+
VGh1LCAxMiBTZXAgMjAxMyAyMToyMTowNiBHTVQ=
|
22
25
|
!binary "U2VydmVy":
|
23
26
|
- !binary |-
|
24
|
-
|
27
|
+
QXBhY2hlLzIuMi4xNCAoVWJ1bnR1KQ==
|
28
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
29
|
+
- !binary |-
|
30
|
+
NzE2
|
25
31
|
!binary "Q29udGVudC1UeXBl":
|
26
32
|
- !binary |-
|
27
33
|
YXBwbGljYXRpb24vanNvbg==
|
28
|
-
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
29
|
-
- !binary |-
|
30
|
-
Y2h1bmtlZA==
|
31
|
-
!binary "RGF0ZQ==":
|
32
|
-
- !binary |-
|
33
|
-
RnJpLCAwOSBBdWcgMjAxMyAwNjozNDowNCBHTVQ=
|
34
34
|
body:
|
35
35
|
encoding: US-ASCII
|
36
|
-
string: ! '[{"id":
|
37
|
-
|
38
|
-
|
39
|
-
you
|
40
|
-
in reliance on the contents of this information is strictly prohibited.</SPAN>\n </P>\n</BODY>"},{"propertyKey":"return.message.plain","propertyValue":"This
|
41
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
42
|
-
you are notified that disclosing, copying, distributing or taking any action
|
43
|
-
in reliance on the contents of this information is strictly prohibited."},{"propertyKey":"return.message.rte","propertyValue":"<TextFlow
|
44
|
-
whiteSpaceCollapse=\"preserve\" version=\"2.0.0\" xmlns=\"http://ns.adobe.com/textLayout/2008\"><p><span>This
|
45
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
46
|
-
you are notified that disclosing, copying, distributing or taking any action
|
47
|
-
in reliance on the contents of this information is strictly prohibited.</span></p></TextFlow>"}]},{"id":115,"domain":"tesla.com","name":"another
|
48
|
-
rule ","created":1376029963000,"updated":1376029963000,"enabled":true,"twoWays":false,"adminOrder":null,"component":"org.mxhero.feature.disclaimer","fromDirection":{"id":215,"directionType":"group","freeValue":"development","domain":"tesla.com","account":null,"group":"development"},"toDirection":{"id":216,"directionType":"anyone","freeValue":"anyone","domain":null,"account":null,"group":null},"properties":[{"propertyKey":"return.message","propertyValue":"<BODY>\n <P
|
49
|
-
STYLE=\"text-align:left;\">\n <SPAN STYLE=\"letter-spacing:0px;color:#000000;font-size:12px;font-family:''Arial'';\">This
|
50
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
51
|
-
you are notified that disclosing, copying, distributing or taking any action
|
52
|
-
in reliance on the contents of this information is strictly prohibited.</SPAN>\n </P>\n</BODY>"},{"propertyKey":"return.message.plain","propertyValue":"This
|
53
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
54
|
-
you are notified that disclosing, copying, distributing or taking any action
|
55
|
-
in reliance on the contents of this information is strictly prohibited."},{"propertyKey":"return.message.rte","propertyValue":"<TextFlow
|
56
|
-
whiteSpaceCollapse=\"preserve\" version=\"2.0.0\" xmlns=\"http://ns.adobe.com/textLayout/2008\"><p><span>This
|
57
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
58
|
-
you are notified that disclosing, copying, distributing or taking any action
|
59
|
-
in reliance on the contents of this information is strictly prohibited.</span></p></TextFlow>"}]},{"id":116,"domain":"tesla.com","name":"marketing
|
60
|
-
rule","created":1376029996000,"updated":1376029996000,"enabled":true,"twoWays":false,"adminOrder":null,"component":"org.mxhero.feature.disclaimer","fromDirection":{"id":217,"directionType":"domain","freeValue":"tesla.com","domain":"tesla.com","account":null,"group":null},"toDirection":{"id":218,"directionType":"group","freeValue":"marketing","domain":"tesla.com","account":null,"group":"marketing"},"properties":[{"propertyKey":"return.message","propertyValue":"<BODY>\n <P
|
61
|
-
STYLE=\"text-align:left;\">\n <SPAN STYLE=\"letter-spacing:0px;color:#000000;font-size:12px;font-family:''Arial'';\">This
|
62
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
63
|
-
you are notified that disclosing, copying, distributing or taking any action
|
64
|
-
in reliance on the contents of this information is strictly prohibited.</SPAN>\n </P>\n</BODY>"},{"propertyKey":"return.message.plain","propertyValue":"This
|
65
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
66
|
-
you are notified that disclosing, copying, distributing or taking any action
|
67
|
-
in reliance on the contents of this information is strictly prohibited."},{"propertyKey":"return.message.rte","propertyValue":"<TextFlow
|
68
|
-
whiteSpaceCollapse=\"preserve\" version=\"2.0.0\" xmlns=\"http://ns.adobe.com/textLayout/2008\"><p><span>This
|
69
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
70
|
-
you are notified that disclosing, copying, distributing or taking any action
|
71
|
-
in reliance on the contents of this information is strictly prohibited.</span></p></TextFlow>"}]},{"id":117,"domain":"tesla.com","name":"marketing","created":1376030034000,"updated":1376030034000,"enabled":true,"twoWays":false,"adminOrder":null,"component":"org.mxhero.feature.disclaimer","fromDirection":{"id":219,"directionType":"group","freeValue":"marketing","domain":"tesla.com","account":null,"group":"marketing"},"toDirection":{"id":220,"directionType":"anyoneelse","freeValue":"anyoneelse","domain":null,"account":null,"group":null},"properties":[{"propertyKey":"return.message","propertyValue":"<BODY>\n <P
|
72
|
-
STYLE=\"text-align:left;\">\n <SPAN STYLE=\"letter-spacing:0px;color:#000000;font-size:12px;font-family:''Arial'';\">This
|
73
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
74
|
-
you are notified that disclosing, copying, distributing or taking any action
|
75
|
-
in reliance on the contents of this information is strictly prohibited.</SPAN>\n </P>\n</BODY>"},{"propertyKey":"return.message.plain","propertyValue":"This
|
76
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
77
|
-
you are notified that disclosing, copying, distributing or taking any action
|
78
|
-
in reliance on the contents of this information is strictly prohibited."},{"propertyKey":"return.message.rte","propertyValue":"<TextFlow
|
79
|
-
whiteSpaceCollapse=\"preserve\" version=\"2.0.0\" xmlns=\"http://ns.adobe.com/textLayout/2008\"><p><span>This
|
80
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
81
|
-
you are notified that disclosing, copying, distributing or taking any action
|
82
|
-
in reliance on the contents of this information is strictly prohibited.</span></p></TextFlow>"}]}]'
|
36
|
+
string: ! '[{"id":193,"domain":"tesla.com","name":"The rules for sales more
|
37
|
+
name","created":1379020756000,"updated":1379020760000,"enabled":true,"twoWays":false,"adminOrder":null,"component":"org.mxhero.feature.disclaimer","fromDirection":{"id":374,"directionType":"domain","freeValue":"tesla.com","domain":"tesla.com","account":null,"group":null},"toDirection":{"id":375,"directionType":"anyone","freeValue":"Anyone","domain":"tesla.com","account":null,"group":null},"properties":[{"propertyKey":"return.message","propertyValue":"another
|
38
|
+
content"},{"propertyKey":"return.message.plain","propertyValue":"\n----------------\nThink
|
39
|
+
before you print and save a tree.r\n\n"},{"propertyKey":"interParsing","propertyValue":"true"}]}]'
|
83
40
|
http_version:
|
84
|
-
recorded_at:
|
41
|
+
recorded_at: Thu, 12 Sep 2013 21:21:05 GMT
|
85
42
|
- request:
|
86
43
|
method: delete
|
87
|
-
uri: http://admin:password@
|
44
|
+
uri: http://admin:password@test.mxhero.com/webapi/api/v1/domains/tesla.com/rules/193
|
88
45
|
body:
|
89
46
|
encoding: US-ASCII
|
90
47
|
string: ''
|
@@ -101,18 +58,21 @@ http_interactions:
|
|
101
58
|
message: !binary |-
|
102
59
|
T0s=
|
103
60
|
headers:
|
61
|
+
!binary "RGF0ZQ==":
|
62
|
+
- !binary |-
|
63
|
+
VGh1LCAxMiBTZXAgMjAxMyAyMToyMTowNiBHTVQ=
|
104
64
|
!binary "U2VydmVy":
|
105
65
|
- !binary |-
|
106
|
-
|
66
|
+
QXBhY2hlLzIuMi4xNCAoVWJ1bnR1KQ==
|
107
67
|
!binary "Q29udGVudC1MZW5ndGg=":
|
108
68
|
- !binary |-
|
109
69
|
MA==
|
110
|
-
!binary "
|
70
|
+
!binary "Q29udGVudC1UeXBl":
|
111
71
|
- !binary |-
|
112
|
-
|
72
|
+
dGV4dC9wbGFpbg==
|
113
73
|
body:
|
114
74
|
encoding: US-ASCII
|
115
75
|
string: ''
|
116
76
|
http_version:
|
117
|
-
recorded_at:
|
77
|
+
recorded_at: Thu, 12 Sep 2013 21:21:06 GMT
|
118
78
|
recorded_with: VCR 2.5.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://admin:password@
|
5
|
+
uri: http://admin:password@test.mxhero.com/webapi/api/v1/domains/tesla.com/
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -19,21 +19,21 @@ http_interactions:
|
|
19
19
|
message: !binary |-
|
20
20
|
T0s=
|
21
21
|
headers:
|
22
|
+
!binary "RGF0ZQ==":
|
23
|
+
- !binary |-
|
24
|
+
VGh1LCAxMiBTZXAgMjAxMyAyMToyMTowOCBHTVQ=
|
22
25
|
!binary "U2VydmVy":
|
23
26
|
- !binary |-
|
24
|
-
|
27
|
+
QXBhY2hlLzIuMi4xNCAoVWJ1bnR1KQ==
|
28
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
29
|
+
- !binary |-
|
30
|
+
MTM2
|
25
31
|
!binary "Q29udGVudC1UeXBl":
|
26
32
|
- !binary |-
|
27
33
|
YXBwbGljYXRpb24vanNvbg==
|
28
|
-
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
29
|
-
- !binary |-
|
30
|
-
Y2h1bmtlZA==
|
31
|
-
!binary "RGF0ZQ==":
|
32
|
-
- !binary |-
|
33
|
-
RnJpLCAwOSBBdWcgMjAxMyAwNjozNDowNCBHTVQ=
|
34
34
|
body:
|
35
35
|
encoding: US-ASCII
|
36
|
-
string: ! '{"domain":"tesla.com","server":"tesla.com","creationDate":
|
36
|
+
string: ! '{"domain":"tesla.com","server":"tesla.com","creationDate":1370265722000,"updatedDate":1370265722000,"aliases":["tesla.com"],"ldap":null}'
|
37
37
|
http_version:
|
38
|
-
recorded_at:
|
38
|
+
recorded_at: Thu, 12 Sep 2013 21:21:08 GMT
|
39
39
|
recorded_with: VCR 2.5.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://admin:password@
|
5
|
+
uri: http://admin:password@test.mxhero.com/webapi/api/v1/domains/test.notfound.com/
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -19,21 +19,21 @@ http_interactions:
|
|
19
19
|
message: !binary |-
|
20
20
|
Tm90IEZvdW5k
|
21
21
|
headers:
|
22
|
+
!binary "RGF0ZQ==":
|
23
|
+
- !binary |-
|
24
|
+
VGh1LCAxMiBTZXAgMjAxMyAyMToyMTowOSBHTVQ=
|
22
25
|
!binary "U2VydmVy":
|
23
26
|
- !binary |-
|
24
|
-
|
27
|
+
QXBhY2hlLzIuMi4xNCAoVWJ1bnR1KQ==
|
28
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
29
|
+
- !binary |-
|
30
|
+
MTM0
|
25
31
|
!binary "Q29udGVudC1UeXBl":
|
26
32
|
- !binary |-
|
27
33
|
YXBwbGljYXRpb24vanNvbg==
|
28
|
-
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
29
|
-
- !binary |-
|
30
|
-
Y2h1bmtlZA==
|
31
|
-
!binary "RGF0ZQ==":
|
32
|
-
- !binary |-
|
33
|
-
RnJpLCAwOSBBdWcgMjAxMyAwNjozNDowNCBHTVQ=
|
34
34
|
body:
|
35
35
|
encoding: US-ASCII
|
36
36
|
string: ! '{"status":404,"code":404,"message":"domain.not.found","developerMessage":"domain.not.found","moreInfoUrl":"mailto:support@mxhero.com"}'
|
37
37
|
http_version:
|
38
|
-
recorded_at:
|
38
|
+
recorded_at: Thu, 12 Sep 2013 21:21:09 GMT
|
39
39
|
recorded_with: VCR 2.5.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://admin:password@
|
5
|
+
uri: http://admin:password@test.mxhero.com/webapi/api/v1/domains/tesla.com/rules
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -19,72 +19,67 @@ http_interactions:
|
|
19
19
|
message: !binary |-
|
20
20
|
T0s=
|
21
21
|
headers:
|
22
|
+
!binary "RGF0ZQ==":
|
23
|
+
- !binary |-
|
24
|
+
VGh1LCAxMiBTZXAgMjAxMyAyMToyMToxMCBHTVQ=
|
22
25
|
!binary "U2VydmVy":
|
23
26
|
- !binary |-
|
24
|
-
|
25
|
-
!binary "
|
27
|
+
QXBhY2hlLzIuMi4xNCAoVWJ1bnR1KQ==
|
28
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
26
29
|
- !binary |-
|
27
|
-
|
28
|
-
!binary "
|
30
|
+
MA==
|
31
|
+
!binary "Q29udGVudC1UeXBl":
|
29
32
|
- !binary |-
|
30
|
-
|
33
|
+
dGV4dC9wbGFpbg==
|
34
|
+
body:
|
35
|
+
encoding: US-ASCII
|
36
|
+
string: ''
|
37
|
+
http_version:
|
38
|
+
recorded_at: Thu, 12 Sep 2013 21:21:10 GMT
|
39
|
+
- request:
|
40
|
+
method: post
|
41
|
+
uri: http://admin:password@test.mxhero.com/webapi/api/v1/domains/tesla.com/rules
|
42
|
+
body:
|
43
|
+
encoding: UTF-8
|
44
|
+
string: ! '{"domain":"tesla.com","twoWays":false,"enabled":true,"name":"The
|
45
|
+
rules for sales","created":"1375998105095","fromDirection":{"id":null,"directionType":"domain","freeValue":"tesla.com","domain":"tesla.com","account":null,"group":null},"toDirection":{"id":null,"directionType":"anyone","freeValue":"Anyone","domain":"tesla.com","account":null,"group":null},"properties":[{"propertyKey":"return.message","propertyValue":"<hr
|
46
|
+
/><p><em><span style=\"color:green\">Think before you print and save a tree.</span></em></p>"},{"propertyKey":"return.message.plain","propertyValue":"\r\n----------------\r\nThink
|
47
|
+
before you print and save a tree.r\n\r\n"},{"propertyKey":"interParsing","propertyValue":true}],"component":"org.mxhero.feature.disclaimer"}'
|
48
|
+
headers:
|
49
|
+
Accept:
|
50
|
+
- application/json
|
51
|
+
Content-Type:
|
52
|
+
- application/json
|
53
|
+
Authorization:
|
54
|
+
- Basic YWRtaW46cGFzc3dvcmQ=
|
55
|
+
response:
|
56
|
+
status:
|
57
|
+
code: 201
|
58
|
+
message: !binary |-
|
59
|
+
Q3JlYXRlZA==
|
60
|
+
headers:
|
31
61
|
!binary "RGF0ZQ==":
|
32
62
|
- !binary |-
|
33
|
-
|
63
|
+
VGh1LCAxMiBTZXAgMjAxMyAyMToyMToxMCBHTVQ=
|
64
|
+
!binary "U2VydmVy":
|
65
|
+
- !binary |-
|
66
|
+
QXBhY2hlLzIuMi4xNCAoVWJ1bnR1KQ==
|
67
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
68
|
+
- !binary |-
|
69
|
+
Nzg1
|
70
|
+
!binary "Q29udGVudC1UeXBl":
|
71
|
+
- !binary |-
|
72
|
+
YXBwbGljYXRpb24vanNvbg==
|
34
73
|
body:
|
35
74
|
encoding: US-ASCII
|
36
|
-
string: ! '
|
37
|
-
|
38
|
-
|
39
|
-
you are notified that disclosing, copying, distributing or taking any action
|
40
|
-
in reliance on the contents of this information is strictly prohibited.</SPAN>\n </P>\n</BODY>"},{"propertyKey":"return.message.plain","propertyValue":"This
|
41
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
42
|
-
you are notified that disclosing, copying, distributing or taking any action
|
43
|
-
in reliance on the contents of this information is strictly prohibited."},{"propertyKey":"return.message.rte","propertyValue":"<TextFlow
|
44
|
-
whiteSpaceCollapse=\"preserve\" version=\"2.0.0\" xmlns=\"http://ns.adobe.com/textLayout/2008\"><p><span>This
|
45
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
46
|
-
you are notified that disclosing, copying, distributing or taking any action
|
47
|
-
in reliance on the contents of this information is strictly prohibited.</span></p></TextFlow>"}]},{"id":115,"domain":"tesla.com","name":"another
|
48
|
-
rule ","created":1376029963000,"updated":1376029963000,"enabled":true,"twoWays":false,"adminOrder":null,"component":"org.mxhero.feature.disclaimer","fromDirection":{"id":215,"directionType":"group","freeValue":"development","domain":"tesla.com","account":null,"group":"development"},"toDirection":{"id":216,"directionType":"anyone","freeValue":"anyone","domain":null,"account":null,"group":null},"properties":[{"propertyKey":"return.message","propertyValue":"<BODY>\n <P
|
49
|
-
STYLE=\"text-align:left;\">\n <SPAN STYLE=\"letter-spacing:0px;color:#000000;font-size:12px;font-family:''Arial'';\">This
|
50
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
51
|
-
you are notified that disclosing, copying, distributing or taking any action
|
52
|
-
in reliance on the contents of this information is strictly prohibited.</SPAN>\n </P>\n</BODY>"},{"propertyKey":"return.message.plain","propertyValue":"This
|
53
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
54
|
-
you are notified that disclosing, copying, distributing or taking any action
|
55
|
-
in reliance on the contents of this information is strictly prohibited."},{"propertyKey":"return.message.rte","propertyValue":"<TextFlow
|
56
|
-
whiteSpaceCollapse=\"preserve\" version=\"2.0.0\" xmlns=\"http://ns.adobe.com/textLayout/2008\"><p><span>This
|
57
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
58
|
-
you are notified that disclosing, copying, distributing or taking any action
|
59
|
-
in reliance on the contents of this information is strictly prohibited.</span></p></TextFlow>"}]},{"id":116,"domain":"tesla.com","name":"marketing
|
60
|
-
rule","created":1376029996000,"updated":1376029996000,"enabled":true,"twoWays":false,"adminOrder":null,"component":"org.mxhero.feature.disclaimer","fromDirection":{"id":217,"directionType":"domain","freeValue":"tesla.com","domain":"tesla.com","account":null,"group":null},"toDirection":{"id":218,"directionType":"group","freeValue":"marketing","domain":"tesla.com","account":null,"group":"marketing"},"properties":[{"propertyKey":"return.message","propertyValue":"<BODY>\n <P
|
61
|
-
STYLE=\"text-align:left;\">\n <SPAN STYLE=\"letter-spacing:0px;color:#000000;font-size:12px;font-family:''Arial'';\">This
|
62
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
63
|
-
you are notified that disclosing, copying, distributing or taking any action
|
64
|
-
in reliance on the contents of this information is strictly prohibited.</SPAN>\n </P>\n</BODY>"},{"propertyKey":"return.message.plain","propertyValue":"This
|
65
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
66
|
-
you are notified that disclosing, copying, distributing or taking any action
|
67
|
-
in reliance on the contents of this information is strictly prohibited."},{"propertyKey":"return.message.rte","propertyValue":"<TextFlow
|
68
|
-
whiteSpaceCollapse=\"preserve\" version=\"2.0.0\" xmlns=\"http://ns.adobe.com/textLayout/2008\"><p><span>This
|
69
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
70
|
-
you are notified that disclosing, copying, distributing or taking any action
|
71
|
-
in reliance on the contents of this information is strictly prohibited.</span></p></TextFlow>"}]},{"id":117,"domain":"tesla.com","name":"marketing","created":1376030034000,"updated":1376030034000,"enabled":true,"twoWays":false,"adminOrder":null,"component":"org.mxhero.feature.disclaimer","fromDirection":{"id":219,"directionType":"group","freeValue":"marketing","domain":"tesla.com","account":null,"group":"marketing"},"toDirection":{"id":220,"directionType":"anyoneelse","freeValue":"anyoneelse","domain":null,"account":null,"group":null},"properties":[{"propertyKey":"return.message","propertyValue":"<BODY>\n <P
|
72
|
-
STYLE=\"text-align:left;\">\n <SPAN STYLE=\"letter-spacing:0px;color:#000000;font-size:12px;font-family:''Arial'';\">This
|
73
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
74
|
-
you are notified that disclosing, copying, distributing or taking any action
|
75
|
-
in reliance on the contents of this information is strictly prohibited.</SPAN>\n </P>\n</BODY>"},{"propertyKey":"return.message.plain","propertyValue":"This
|
76
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
77
|
-
you are notified that disclosing, copying, distributing or taking any action
|
78
|
-
in reliance on the contents of this information is strictly prohibited."},{"propertyKey":"return.message.rte","propertyValue":"<TextFlow
|
79
|
-
whiteSpaceCollapse=\"preserve\" version=\"2.0.0\" xmlns=\"http://ns.adobe.com/textLayout/2008\"><p><span>This
|
80
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
81
|
-
you are notified that disclosing, copying, distributing or taking any action
|
82
|
-
in reliance on the contents of this information is strictly prohibited.</span></p></TextFlow>"}]}]'
|
75
|
+
string: ! '{"id":194,"domain":"tesla.com","name":"The rules for sales","created":1379020870000,"updated":1379020870000,"enabled":true,"twoWays":false,"adminOrder":null,"component":"org.mxhero.feature.disclaimer","fromDirection":{"id":376,"directionType":"domain","freeValue":"tesla.com","domain":"tesla.com","account":null,"group":null},"toDirection":{"id":377,"directionType":"anyone","freeValue":"Anyone","domain":"tesla.com","account":null,"group":null},"properties":[{"propertyKey":"return.message","propertyValue":"<hr
|
76
|
+
/><p><em><span style=\"color:green\">Think before you print and save a tree.</span></em></p>"},{"propertyKey":"return.message.plain","propertyValue":"\n----------------\nThink
|
77
|
+
before you print and save a tree.r\n\n"},{"propertyKey":"interParsing","propertyValue":"true"}]}'
|
83
78
|
http_version:
|
84
|
-
recorded_at:
|
79
|
+
recorded_at: Thu, 12 Sep 2013 21:21:10 GMT
|
85
80
|
- request:
|
86
81
|
method: get
|
87
|
-
uri: http://admin:password@
|
82
|
+
uri: http://admin:password@test.mxhero.com/webapi/api/v1/domains/tesla.com/rules/194
|
88
83
|
body:
|
89
84
|
encoding: US-ASCII
|
90
85
|
string: ''
|
@@ -101,32 +96,23 @@ http_interactions:
|
|
101
96
|
message: !binary |-
|
102
97
|
T0s=
|
103
98
|
headers:
|
99
|
+
!binary "RGF0ZQ==":
|
100
|
+
- !binary |-
|
101
|
+
VGh1LCAxMiBTZXAgMjAxMyAyMToyMToxMSBHTVQ=
|
104
102
|
!binary "U2VydmVy":
|
105
103
|
- !binary |-
|
106
|
-
|
104
|
+
QXBhY2hlLzIuMi4xNCAoVWJ1bnR1KQ==
|
105
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
106
|
+
- !binary |-
|
107
|
+
Nzg1
|
107
108
|
!binary "Q29udGVudC1UeXBl":
|
108
109
|
- !binary |-
|
109
110
|
YXBwbGljYXRpb24vanNvbg==
|
110
|
-
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
111
|
-
- !binary |-
|
112
|
-
Y2h1bmtlZA==
|
113
|
-
!binary "RGF0ZQ==":
|
114
|
-
- !binary |-
|
115
|
-
RnJpLCAwOSBBdWcgMjAxMyAwNjozNDowNCBHTVQ=
|
116
111
|
body:
|
117
112
|
encoding: US-ASCII
|
118
|
-
string: ! '{"id":
|
119
|
-
|
120
|
-
|
121
|
-
you are notified that disclosing, copying, distributing or taking any action
|
122
|
-
in reliance on the contents of this information is strictly prohibited.</SPAN>\n </P>\n</BODY>"},{"propertyKey":"return.message.plain","propertyValue":"This
|
123
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
124
|
-
you are notified that disclosing, copying, distributing or taking any action
|
125
|
-
in reliance on the contents of this information is strictly prohibited."},{"propertyKey":"return.message.rte","propertyValue":"<TextFlow
|
126
|
-
whiteSpaceCollapse=\"preserve\" version=\"2.0.0\" xmlns=\"http://ns.adobe.com/textLayout/2008\"><p><span>This
|
127
|
-
message is intended only for ${mxrecipient}. If you are not the intended recipient
|
128
|
-
you are notified that disclosing, copying, distributing or taking any action
|
129
|
-
in reliance on the contents of this information is strictly prohibited.</span></p></TextFlow>"}]}'
|
113
|
+
string: ! '{"id":194,"domain":"tesla.com","name":"The rules for sales","created":1379020870000,"updated":1379020870000,"enabled":true,"twoWays":false,"adminOrder":null,"component":"org.mxhero.feature.disclaimer","fromDirection":{"id":376,"directionType":"domain","freeValue":"tesla.com","domain":"tesla.com","account":null,"group":null},"toDirection":{"id":377,"directionType":"anyone","freeValue":"Anyone","domain":"tesla.com","account":null,"group":null},"properties":[{"propertyKey":"return.message","propertyValue":"<hr
|
114
|
+
/><p><em><span style=\"color:green\">Think before you print and save a tree.</span></em></p>"},{"propertyKey":"return.message.plain","propertyValue":"\n----------------\nThink
|
115
|
+
before you print and save a tree.r\n\n"},{"propertyKey":"interParsing","propertyValue":"true"}]}'
|
130
116
|
http_version:
|
131
|
-
recorded_at:
|
117
|
+
recorded_at: Thu, 12 Sep 2013 21:21:11 GMT
|
132
118
|
recorded_with: VCR 2.5.0
|