sendgrid_webapi 0.0.2 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.circleci/config.yml +132 -0
- data/.circleci/setup-rubygems.sh +5 -0
- data/.gitignore +27 -1
- data/.rspec +2 -2
- data/.ruby-version +1 -0
- data/.tool-versions +1 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +103 -79
- data/lib/api_key/management.rb +33 -0
- data/lib/api_key/modules.rb +10 -0
- data/lib/apikey_client.rb +11 -0
- data/lib/base.rb +47 -13
- data/lib/helper.rb +8 -8
- data/lib/sendgrid_webapi.rb +1 -0
- data/lib/sub_user/modules.rb +15 -15
- data/lib/version.rb +2 -2
- data/lib/web_api/blocks.rb +5 -0
- data/lib/web_api/bounces.rb +5 -0
- data/lib/web_api/modules.rb +15 -11
- data/lib/web_api/version.rb +1 -1
- data/lib/webapi_client.rb +1 -1
- data/sendgrid_webapi.gemspec +12 -8
- data/spec/cassettes/client/_modules/_block/should_get_block_emails.yml +29 -41
- data/spec/cassettes/client/_modules/_block/should_get_totals_blocks.yml +36 -0
- data/spec/cassettes/client/_modules/_block/should_try_delete_not_existing_block_email.yml +29 -42
- data/spec/cassettes/client/_modules/_bounce/should_get_bounce_emails.yml +27 -31
- data/spec/cassettes/client/_modules/_bounce/should_get_totals_bounces.yml +36 -0
- data/spec/cassettes/client/_modules/_bounce/should_try_delete_not_existing_bounce_email.yml +27 -32
- data/spec/cassettes/client/_modules/_event_notification/should_delete_event_notification_url.yml +38 -40
- data/spec/cassettes/client/_modules/_event_notification/should_get_event_notification_url.yml +38 -40
- data/spec/cassettes/client/_modules/_event_notification/should_set_event_notification_url.yml +38 -40
- data/spec/cassettes/client/_modules/_invalid_email/should_get_invalid_emails.yml +27 -31
- data/spec/cassettes/client/_modules/_invalid_email/should_try_delete_not_existing_invalid_emails.yml +27 -32
- data/spec/cassettes/client/_modules/_parse_email/should_delete_parse_email.yml +73 -76
- data/spec/cassettes/client/_modules/_parse_email/should_get_parse_email.yml +38 -41
- data/spec/cassettes/client/_modules/_parse_email/should_set_parse_email.yml +38 -40
- data/spec/cassettes/client/_modules/_profile/should_get_profile.yml +39 -43
- data/spec/cassettes/client/_modules/_profile/should_set_first_name.yml +109 -117
- data/spec/cassettes/client/_modules/_spam/should_get_spam_emails.yml +27 -31
- data/spec/cassettes/client/_modules/_spam/should_try_delete_not_existing_spam_emails.yml +27 -32
- data/spec/cassettes/client/_modules/_unsubscribe/should_add_unsubscribe_emails.yml +27 -31
- data/spec/cassettes/client/_modules/_unsubscribe/should_delete_unsubscribe_email.yml +27 -31
- data/spec/cassettes/client/_modules/_unsubscribe/should_get_unsubscribe_emails.yml +27 -32
- data/spec/cassettes/client/_modules/_unsubscribe/should_try_delete_not_existing_unsubscribe_emails.yml +27 -32
- data/spec/cassettes/helper/_create_sub_user_account/should_create_sub_user_account.yml +248 -255
- data/spec/cassettes/helper/_run_sendgrid_query/should_raise_with_unsucessfull_request.yml +39 -38
- data/spec/cassettes/helper/_run_sendgrid_query/should_run_sendgrid_request.yml +38 -40
- data/spec/cassettes/sub_user/_apps/should_activate_app.yml +38 -40
- data/spec/cassettes/sub_user/_apps/should_deactivate_app.yml +38 -40
- data/spec/cassettes/sub_user/_apps/should_get_current_setting_from_one_app.yml +38 -41
- data/spec/cassettes/sub_user/_apps/should_return_available_apps.yml +63 -55
- data/spec/cassettes/sub_user/_apps/should_set_current_app.yml +73 -72
- data/spec/cassettes/sub_user/_authentication/should_auth_a_sub_user.yml +38 -40
- data/spec/cassettes/sub_user/_authentication/should_return_error_with_a_bad_sub_user.yml +38 -40
- data/spec/cassettes/sub_user/_bounces/should_returns_bounce_emails.yml +38 -39
- data/spec/cassettes/sub_user/_bounces/should_tries_to_delete_unexisting_bounce_emails.yml +38 -40
- data/spec/cassettes/sub_user/_event_notification/should_add_event_notification_url.yml +38 -40
- data/spec/cassettes/sub_user/_event_notification/should_delete_event_notification_url.yml +38 -40
- data/spec/cassettes/sub_user/_event_notification/should_get_event_notification_url.yml +38 -40
- data/spec/cassettes/sub_user/_invalid_emails/should_return_invalid_emails.yml +38 -39
- data/spec/cassettes/sub_user/_invalid_emails/should_tries_to_delete_unexisting_invalid_mail.yml +38 -40
- data/spec/cassettes/sub_user/_ip_management/should_return_all_ips_available.yml +38 -40
- data/spec/cassettes/sub_user/_ip_management/should_show_ip_subuser.yml +38 -40
- data/spec/cassettes/sub_user/_limits/should_decrements_credits_for_a_sub_user.yml +73 -77
- data/spec/cassettes/sub_user/_limits/should_delete_all_limits_for_a_sub_user.yml +73 -76
- data/spec/cassettes/sub_user/_limits/should_increments_credits_for_a_sub_user.yml +73 -77
- data/spec/cassettes/sub_user/_limits/should_list_the_limits_for_a_sub_user.yml +38 -40
- data/spec/cassettes/sub_user/_limits/should_reset_all_limits_for_a_sub_user.yml +73 -77
- data/spec/cassettes/sub_user/_limits/should_returns_limits_for_a_sub_user.yml +38 -40
- data/spec/cassettes/sub_user/_limits/should_set_total_credits.yml +38 -40
- data/spec/cassettes/sub_user/_management/should_add_new_subuser.yml +38 -40
- data/spec/cassettes/sub_user/_management/should_disable_sub_user_for_send_email.yml +38 -40
- data/spec/cassettes/sub_user/_management/should_enable_sub_user_for_access_to_website.yml +38 -40
- data/spec/cassettes/sub_user/_management/should_enable_sub_user_for_send_email.yml +38 -40
- data/spec/cassettes/sub_user/_management/should_update_sub_user.yml +38 -40
- data/spec/cassettes/sub_user/_monitor_records/should_add_existing_sub_user_to_monitor_record.yml +73 -78
- data/spec/cassettes/sub_user/_monitor_records/should_create_a_new_monitor_record.yml +73 -78
- data/spec/cassettes/sub_user/_monitor_records/should_delete_a_monitor_record.yml +73 -76
- data/spec/cassettes/sub_user/_monitor_records/should_edit_a_monitor_record.yml +73 -78
- data/spec/cassettes/sub_user/_monitor_records/should_remove_existing_sub_user_from_monitor_record.yml +73 -78
- data/spec/cassettes/sub_user/_parse_email/should_delete_parse_email.yml +73 -76
- data/spec/cassettes/sub_user/_parse_email/should_get_parse_email.yml +38 -41
- data/spec/cassettes/sub_user/_parse_email/should_set_parse_email.yml +38 -40
- data/spec/cassettes/sub_user/_spam/should_return_spam_mails.yml +38 -39
- data/spec/cassettes/sub_user/_spam/should_tries_to_delete_unexisting_spam_mail.yml +38 -40
- data/spec/cassettes/sub_user/_unsubscribes/should_add_bounce_email.yml +38 -40
- data/spec/cassettes/sub_user/_unsubscribes/should_delete_existing_bounce_email.yml +38 -40
- data/spec/cassettes/sub_user/_unsubscribes/should_delete_unexisting_bounce_email.yml +38 -40
- data/spec/cassettes/sub_user/_unsubscribes/should_returns_bounce_emails.yml +38 -40
- data/spec/client_spec.rb +7 -4
- data/spec/helper_spec.rb +9 -9
- data/spec/sub_user_spec.rb +63 -68
- data/test.rb +5 -0
- metadata +90 -58
- data/.travis.yml +0 -5
- data/spec/cassettes/sub_user/_management/should_get_all_subusers.yml +0 -54
@@ -1,318 +1,311 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.add.json?address=555%20anystreet&
|
6
|
-
body:
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.add.json?address=555%20anystreet&city=any%20city&confirm_password=somepass&country=US&email=email@email.com&first_name=home&last_name=simpson&password=somepass&phone=555-555&state=CA&username=test-6&website=someurl.com&zip=91234
|
6
|
+
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string:
|
9
|
-
headers:
|
10
|
-
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.9
|
12
|
+
Accept-Encoding:
|
11
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
-
Accept:
|
13
|
-
-
|
14
|
-
|
15
|
-
|
16
|
-
response:
|
17
|
-
status:
|
14
|
+
Accept:
|
15
|
+
- '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
|
-
headers:
|
21
|
-
Server:
|
22
|
-
- nginx/
|
23
|
-
Date:
|
24
|
-
-
|
25
|
-
Content-Type:
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx/1.4.2
|
23
|
+
Date:
|
24
|
+
- Fri, 17 Jan 2014 02:05:33 GMT
|
25
|
+
Content-Type:
|
26
26
|
- application/json
|
27
|
-
|
27
|
+
Content-Length:
|
28
|
+
- '46'
|
29
|
+
Connection:
|
28
30
|
- keep-alive
|
29
|
-
X-Powered-By:
|
30
|
-
- PHP/5.3.2-1ubuntu4.
|
31
|
-
Cache-Control:
|
32
|
-
-
|
33
|
-
|
34
|
-
-
|
35
|
-
|
36
|
-
-
|
37
|
-
|
31
|
+
X-Powered-By:
|
32
|
+
- PHP/5.3.2-1ubuntu4.22
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache, must-revalidate
|
35
|
+
Expires:
|
36
|
+
- '0'
|
37
|
+
Set-Cookie:
|
38
|
+
- sendgrid_frontend=f4a15d5403410b8d8ec6c27865f5494e:71c28077015409b5b68ad8c4a39995218834e0f0;
|
39
|
+
expires=Sun, 16-Feb-2014 02:05:32 GMT; path=/; httponly
|
40
|
+
Vary:
|
38
41
|
- Accept-Encoding
|
39
|
-
|
40
|
-
-
|
41
|
-
|
42
|
-
encoding: ASCII-8BIT
|
43
|
-
string: !binary |
|
44
|
-
H4sIAAAAAAAAA6pWyk0tLk5MT1WyUiouTU4GcpRqAQAAAP//AwDGVSbjFQAA
|
45
|
-
AA==
|
46
|
-
|
42
|
+
body:
|
43
|
+
encoding: UTF-8
|
44
|
+
string: '{"message":"success"}'
|
47
45
|
http_version:
|
48
|
-
recorded_at:
|
49
|
-
- request:
|
46
|
+
recorded_at: Fri, 17 Jan 2014 02:05:33 GMT
|
47
|
+
- request:
|
50
48
|
method: get
|
51
|
-
uri: https://sendgrid.com/apiv2/customer.enable.json?
|
52
|
-
body:
|
49
|
+
uri: https://sendgrid.com/apiv2/customer.enable.json?user=test-6
|
50
|
+
body:
|
53
51
|
encoding: US-ASCII
|
54
|
-
string:
|
55
|
-
headers:
|
56
|
-
|
52
|
+
string: ''
|
53
|
+
headers:
|
54
|
+
User-Agent:
|
55
|
+
- Faraday v0.8.9
|
56
|
+
Accept-Encoding:
|
57
57
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
58
|
-
Accept:
|
59
|
-
-
|
60
|
-
|
61
|
-
|
62
|
-
response:
|
63
|
-
status:
|
58
|
+
Accept:
|
59
|
+
- '*/*'
|
60
|
+
response:
|
61
|
+
status:
|
64
62
|
code: 200
|
65
63
|
message: OK
|
66
|
-
headers:
|
67
|
-
Server:
|
68
|
-
- nginx/
|
69
|
-
Date:
|
70
|
-
-
|
71
|
-
Content-Type:
|
64
|
+
headers:
|
65
|
+
Server:
|
66
|
+
- nginx/1.4.2
|
67
|
+
Date:
|
68
|
+
- Fri, 17 Jan 2014 02:05:35 GMT
|
69
|
+
Content-Type:
|
72
70
|
- application/json
|
73
|
-
|
71
|
+
Content-Length:
|
72
|
+
- '46'
|
73
|
+
Connection:
|
74
74
|
- keep-alive
|
75
|
-
X-Powered-By:
|
76
|
-
- PHP/5.3.2-1ubuntu4.
|
77
|
-
Cache-Control:
|
78
|
-
-
|
79
|
-
|
80
|
-
-
|
81
|
-
|
82
|
-
-
|
83
|
-
|
75
|
+
X-Powered-By:
|
76
|
+
- PHP/5.3.2-1ubuntu4.22
|
77
|
+
Cache-Control:
|
78
|
+
- no-cache, must-revalidate
|
79
|
+
Expires:
|
80
|
+
- '0'
|
81
|
+
Set-Cookie:
|
82
|
+
- sendgrid_frontend=8b0b466d5124aaf53b0e350b9a682f9c:13391bab609a82bacc8e9f90192445220ee87f45;
|
83
|
+
expires=Sun, 16-Feb-2014 02:05:35 GMT; path=/; httponly
|
84
|
+
Vary:
|
84
85
|
- Accept-Encoding
|
85
|
-
|
86
|
-
-
|
87
|
-
|
88
|
-
encoding: ASCII-8BIT
|
89
|
-
string: !binary |
|
90
|
-
H4sIAAAAAAAAA6pWyk0tLk5MT1WyUiouTU4GcpRqAQAAAP//AwDGVSbjFQAA
|
91
|
-
AA==
|
92
|
-
|
86
|
+
body:
|
87
|
+
encoding: UTF-8
|
88
|
+
string: '{"message":"success"}'
|
93
89
|
http_version:
|
94
|
-
recorded_at:
|
95
|
-
- request:
|
90
|
+
recorded_at: Fri, 17 Jan 2014 02:05:35 GMT
|
91
|
+
- request:
|
96
92
|
method: get
|
97
|
-
uri: https://sendgrid.com/apiv2/customer.sendip.json?
|
98
|
-
body:
|
93
|
+
uri: https://sendgrid.com/apiv2/customer.sendip.json?ip%5B0%5D=192.254.126.178&set=specify&task=append&user=test-6
|
94
|
+
body:
|
99
95
|
encoding: US-ASCII
|
100
|
-
string:
|
101
|
-
headers:
|
102
|
-
|
96
|
+
string: ''
|
97
|
+
headers:
|
98
|
+
User-Agent:
|
99
|
+
- Faraday v0.8.9
|
100
|
+
Accept-Encoding:
|
103
101
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
104
|
-
Accept:
|
105
|
-
-
|
106
|
-
|
107
|
-
|
108
|
-
response:
|
109
|
-
status:
|
102
|
+
Accept:
|
103
|
+
- '*/*'
|
104
|
+
response:
|
105
|
+
status:
|
110
106
|
code: 200
|
111
107
|
message: OK
|
112
|
-
headers:
|
113
|
-
Server:
|
114
|
-
- nginx/
|
115
|
-
Date:
|
116
|
-
-
|
117
|
-
Content-Type:
|
108
|
+
headers:
|
109
|
+
Server:
|
110
|
+
- nginx/1.4.2
|
111
|
+
Date:
|
112
|
+
- Fri, 17 Jan 2014 02:05:37 GMT
|
113
|
+
Content-Type:
|
118
114
|
- application/json
|
119
|
-
|
115
|
+
Content-Length:
|
116
|
+
- '46'
|
117
|
+
Connection:
|
120
118
|
- keep-alive
|
121
|
-
X-Powered-By:
|
122
|
-
- PHP/5.3.2-1ubuntu4.
|
123
|
-
Cache-Control:
|
124
|
-
-
|
125
|
-
|
126
|
-
-
|
127
|
-
|
128
|
-
-
|
129
|
-
|
119
|
+
X-Powered-By:
|
120
|
+
- PHP/5.3.2-1ubuntu4.22
|
121
|
+
Cache-Control:
|
122
|
+
- no-cache, must-revalidate
|
123
|
+
Expires:
|
124
|
+
- '0'
|
125
|
+
Set-Cookie:
|
126
|
+
- sendgrid_frontend=163b7506e8b1145bcda46111613bd73c:2ab6b558ae85346f03c8379b1ca39b421ba7858e;
|
127
|
+
expires=Sun, 16-Feb-2014 02:05:37 GMT; path=/; httponly
|
128
|
+
Vary:
|
130
129
|
- Accept-Encoding
|
131
|
-
|
132
|
-
-
|
133
|
-
|
134
|
-
encoding: ASCII-8BIT
|
135
|
-
string: !binary |
|
136
|
-
H4sIAAAAAAAAA6pWyk0tLk5MT1WyUiouTU4GcpRqAQAAAP//AwDGVSbjFQAA
|
137
|
-
AA==
|
138
|
-
|
130
|
+
body:
|
131
|
+
encoding: UTF-8
|
132
|
+
string: '{"message":"success"}'
|
139
133
|
http_version:
|
140
|
-
recorded_at:
|
141
|
-
- request:
|
134
|
+
recorded_at: Fri, 17 Jan 2014 02:05:37 GMT
|
135
|
+
- request:
|
142
136
|
method: get
|
143
|
-
uri: https://sendgrid.com/apiv2/customer.apps.json?
|
144
|
-
body:
|
137
|
+
uri: https://sendgrid.com/apiv2/customer.apps.json?name=opentrack&task=activate&user=test-6
|
138
|
+
body:
|
145
139
|
encoding: US-ASCII
|
146
|
-
string:
|
147
|
-
headers:
|
148
|
-
|
140
|
+
string: ''
|
141
|
+
headers:
|
142
|
+
User-Agent:
|
143
|
+
- Faraday v0.8.9
|
144
|
+
Accept-Encoding:
|
149
145
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
150
|
-
Accept:
|
151
|
-
-
|
152
|
-
|
153
|
-
|
154
|
-
response:
|
155
|
-
status:
|
146
|
+
Accept:
|
147
|
+
- '*/*'
|
148
|
+
response:
|
149
|
+
status:
|
156
150
|
code: 200
|
157
151
|
message: OK
|
158
|
-
headers:
|
159
|
-
Server:
|
160
|
-
- nginx/
|
161
|
-
Date:
|
162
|
-
-
|
163
|
-
Content-Type:
|
152
|
+
headers:
|
153
|
+
Server:
|
154
|
+
- nginx/1.4.2
|
155
|
+
Date:
|
156
|
+
- Fri, 17 Jan 2014 02:05:39 GMT
|
157
|
+
Content-Type:
|
164
158
|
- application/json
|
165
|
-
|
159
|
+
Content-Length:
|
160
|
+
- '46'
|
161
|
+
Connection:
|
166
162
|
- keep-alive
|
167
|
-
X-Powered-By:
|
168
|
-
- PHP/5.3.2-1ubuntu4.
|
169
|
-
Cache-Control:
|
170
|
-
-
|
171
|
-
|
172
|
-
-
|
173
|
-
|
174
|
-
-
|
175
|
-
|
163
|
+
X-Powered-By:
|
164
|
+
- PHP/5.3.2-1ubuntu4.22
|
165
|
+
Cache-Control:
|
166
|
+
- no-cache, must-revalidate
|
167
|
+
Expires:
|
168
|
+
- '0'
|
169
|
+
Set-Cookie:
|
170
|
+
- sendgrid_frontend=c29e955354d32391c7e79b8cc4705141:b9ac8711aa54f7f8419ae95ed7c9e935b2752f6a;
|
171
|
+
expires=Sun, 16-Feb-2014 02:05:39 GMT; path=/; httponly
|
172
|
+
Vary:
|
176
173
|
- Accept-Encoding
|
177
|
-
|
178
|
-
-
|
179
|
-
|
180
|
-
encoding: ASCII-8BIT
|
181
|
-
string: !binary |
|
182
|
-
H4sIAAAAAAAAA6pWyk0tLk5MT1WyUiouTU4GcpRqAQAAAP//AwDGVSbjFQAA
|
183
|
-
AA==
|
184
|
-
|
174
|
+
body:
|
175
|
+
encoding: UTF-8
|
176
|
+
string: '{"message":"success"}'
|
185
177
|
http_version:
|
186
|
-
recorded_at:
|
187
|
-
- request:
|
178
|
+
recorded_at: Fri, 17 Jan 2014 02:05:39 GMT
|
179
|
+
- request:
|
188
180
|
method: get
|
189
|
-
uri: https://sendgrid.com/apiv2/customer.apps.json?
|
190
|
-
body:
|
181
|
+
uri: https://sendgrid.com/apiv2/customer.apps.json?name=clicktrack&task=activate&user=test-6
|
182
|
+
body:
|
191
183
|
encoding: US-ASCII
|
192
|
-
string:
|
193
|
-
headers:
|
194
|
-
|
184
|
+
string: ''
|
185
|
+
headers:
|
186
|
+
User-Agent:
|
187
|
+
- Faraday v0.8.9
|
188
|
+
Accept-Encoding:
|
195
189
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
196
|
-
Accept:
|
197
|
-
-
|
198
|
-
|
199
|
-
|
200
|
-
response:
|
201
|
-
status:
|
190
|
+
Accept:
|
191
|
+
- '*/*'
|
192
|
+
response:
|
193
|
+
status:
|
202
194
|
code: 200
|
203
195
|
message: OK
|
204
|
-
headers:
|
205
|
-
Server:
|
206
|
-
- nginx/
|
207
|
-
Date:
|
208
|
-
-
|
209
|
-
Content-Type:
|
196
|
+
headers:
|
197
|
+
Server:
|
198
|
+
- nginx/1.4.2
|
199
|
+
Date:
|
200
|
+
- Fri, 17 Jan 2014 02:05:41 GMT
|
201
|
+
Content-Type:
|
210
202
|
- application/json
|
211
|
-
|
203
|
+
Content-Length:
|
204
|
+
- '46'
|
205
|
+
Connection:
|
212
206
|
- keep-alive
|
213
|
-
X-Powered-By:
|
214
|
-
- PHP/5.3.2-1ubuntu4.
|
215
|
-
Cache-Control:
|
216
|
-
-
|
217
|
-
|
218
|
-
-
|
219
|
-
|
220
|
-
-
|
221
|
-
|
207
|
+
X-Powered-By:
|
208
|
+
- PHP/5.3.2-1ubuntu4.22
|
209
|
+
Cache-Control:
|
210
|
+
- no-cache, must-revalidate
|
211
|
+
Expires:
|
212
|
+
- '0'
|
213
|
+
Set-Cookie:
|
214
|
+
- sendgrid_frontend=af380208ceadf66b245df9df09b62449:d09aa8767a003217b00fc5bb24a9250d5bed55c5;
|
215
|
+
expires=Sun, 16-Feb-2014 02:05:41 GMT; path=/; httponly
|
216
|
+
Vary:
|
222
217
|
- Accept-Encoding
|
223
|
-
|
224
|
-
-
|
225
|
-
|
226
|
-
encoding: ASCII-8BIT
|
227
|
-
string: !binary |
|
228
|
-
H4sIAAAAAAAAA6pWyk0tLk5MT1WyUiouTU4GcpRqAQAAAP//AwDGVSbjFQAA
|
229
|
-
AA==
|
230
|
-
|
218
|
+
body:
|
219
|
+
encoding: UTF-8
|
220
|
+
string: '{"message":"success"}'
|
231
221
|
http_version:
|
232
|
-
recorded_at:
|
233
|
-
- request:
|
222
|
+
recorded_at: Fri, 17 Jan 2014 02:05:41 GMT
|
223
|
+
- request:
|
234
224
|
method: post
|
235
225
|
uri: https://sendgrid.com/apiv2/customer.apps.json
|
236
|
-
body:
|
226
|
+
body:
|
237
227
|
encoding: US-ASCII
|
238
|
-
string: enable_text=1&user=test-
|
239
|
-
headers:
|
240
|
-
|
241
|
-
-
|
242
|
-
|
243
|
-
-
|
244
|
-
|
245
|
-
|
228
|
+
string: enable_text=1&user=test-6&name=clicktrack&task=setup&api_user=kyle%40agencieshq.com&api_key=pass
|
229
|
+
headers:
|
230
|
+
User-Agent:
|
231
|
+
- Faraday v0.8.9
|
232
|
+
Accept-Encoding:
|
233
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
234
|
+
Accept:
|
235
|
+
- '*/*'
|
236
|
+
response:
|
237
|
+
status:
|
246
238
|
code: 200
|
247
239
|
message: OK
|
248
|
-
headers:
|
249
|
-
Server:
|
250
|
-
- nginx/
|
251
|
-
Date:
|
252
|
-
-
|
253
|
-
Content-Type:
|
240
|
+
headers:
|
241
|
+
Server:
|
242
|
+
- nginx/1.4.2
|
243
|
+
Date:
|
244
|
+
- Fri, 17 Jan 2014 02:05:43 GMT
|
245
|
+
Content-Type:
|
254
246
|
- application/json
|
255
|
-
|
247
|
+
Content-Length:
|
248
|
+
- '46'
|
249
|
+
Connection:
|
256
250
|
- keep-alive
|
257
|
-
X-Powered-By:
|
258
|
-
- PHP/5.3.2-1ubuntu4.
|
259
|
-
Cache-Control:
|
260
|
-
-
|
261
|
-
|
262
|
-
-
|
263
|
-
|
251
|
+
X-Powered-By:
|
252
|
+
- PHP/5.3.2-1ubuntu4.22
|
253
|
+
Cache-Control:
|
254
|
+
- no-cache, must-revalidate
|
255
|
+
Expires:
|
256
|
+
- '0'
|
257
|
+
Set-Cookie:
|
258
|
+
- sendgrid_frontend=e37efb9994c49694500d7e314071f9fc:164061258d44cb2e641516b81cb797eb87c21ab3;
|
259
|
+
expires=Sun, 16-Feb-2014 02:05:43 GMT; path=/; httponly
|
260
|
+
Vary:
|
264
261
|
- Accept-Encoding
|
265
|
-
|
266
|
-
-
|
267
|
-
|
268
|
-
encoding: US-ASCII
|
269
|
-
string: "{\"message\":\"success\"}"
|
262
|
+
body:
|
263
|
+
encoding: UTF-8
|
264
|
+
string: '{"message":"success"}'
|
270
265
|
http_version:
|
271
|
-
recorded_at:
|
272
|
-
- request:
|
266
|
+
recorded_at: Fri, 17 Jan 2014 02:05:43 GMT
|
267
|
+
- request:
|
273
268
|
method: get
|
274
|
-
uri: https://sendgrid.com/apiv2/customer.auth.json?
|
275
|
-
body:
|
269
|
+
uri: https://sendgrid.com/apiv2/customer.auth.json?password=somepass&user=test-6
|
270
|
+
body:
|
276
271
|
encoding: US-ASCII
|
277
|
-
string:
|
278
|
-
headers:
|
279
|
-
|
272
|
+
string: ''
|
273
|
+
headers:
|
274
|
+
User-Agent:
|
275
|
+
- Faraday v0.8.9
|
276
|
+
Accept-Encoding:
|
280
277
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
281
|
-
Accept:
|
282
|
-
-
|
283
|
-
|
284
|
-
|
285
|
-
response:
|
286
|
-
status:
|
278
|
+
Accept:
|
279
|
+
- '*/*'
|
280
|
+
response:
|
281
|
+
status:
|
287
282
|
code: 200
|
288
283
|
message: OK
|
289
|
-
headers:
|
290
|
-
Server:
|
291
|
-
- nginx/
|
292
|
-
Date:
|
293
|
-
-
|
294
|
-
Content-Type:
|
284
|
+
headers:
|
285
|
+
Server:
|
286
|
+
- nginx/1.4.2
|
287
|
+
Date:
|
288
|
+
- Fri, 17 Jan 2014 02:05:45 GMT
|
289
|
+
Content-Type:
|
295
290
|
- application/json
|
296
|
-
|
291
|
+
Content-Length:
|
292
|
+
- '46'
|
293
|
+
Connection:
|
297
294
|
- keep-alive
|
298
|
-
X-Powered-By:
|
299
|
-
- PHP/5.3.2-1ubuntu4.
|
300
|
-
Cache-Control:
|
301
|
-
-
|
302
|
-
|
303
|
-
-
|
304
|
-
|
305
|
-
-
|
306
|
-
|
295
|
+
X-Powered-By:
|
296
|
+
- PHP/5.3.2-1ubuntu4.22
|
297
|
+
Cache-Control:
|
298
|
+
- no-cache, must-revalidate
|
299
|
+
Expires:
|
300
|
+
- '0'
|
301
|
+
Set-Cookie:
|
302
|
+
- sendgrid_frontend=527331d9ae42b305caf5442ce21cd4b0:6118a62c2cbca811deb6cdd638e633358c551710;
|
303
|
+
expires=Sun, 16-Feb-2014 02:05:45 GMT; path=/; httponly
|
304
|
+
Vary:
|
307
305
|
- Accept-Encoding
|
308
|
-
|
309
|
-
-
|
310
|
-
|
311
|
-
encoding: ASCII-8BIT
|
312
|
-
string: !binary |
|
313
|
-
H4sIAAAAAAAAA6pWyk0tLk5MT1WyUiouTU4GcpRqAQAAAP//AwDGVSbjFQAA
|
314
|
-
AA==
|
315
|
-
|
306
|
+
body:
|
307
|
+
encoding: UTF-8
|
308
|
+
string: '{"message":"success"}'
|
316
309
|
http_version:
|
317
|
-
recorded_at:
|
318
|
-
recorded_with: VCR 2.
|
310
|
+
recorded_at: Fri, 17 Jan 2014 02:05:45 GMT
|
311
|
+
recorded_with: VCR 2.8.0
|
@@ -1,46 +1,47 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.apps.json?
|
6
|
-
body:
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.apps.json?name=badappname&task=activate&user=sendgrid_testuser3
|
6
|
+
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string:
|
9
|
-
headers:
|
10
|
-
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.9
|
12
|
+
Accept-Encoding:
|
11
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
-
Accept:
|
13
|
-
-
|
14
|
-
|
15
|
-
|
16
|
-
response:
|
17
|
-
status:
|
14
|
+
Accept:
|
15
|
+
- '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
|
-
headers:
|
21
|
-
Server:
|
22
|
-
- nginx/
|
23
|
-
Date:
|
24
|
-
-
|
25
|
-
Content-Type:
|
26
|
-
-
|
27
|
-
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx/1.4.2
|
23
|
+
Date:
|
24
|
+
- Fri, 17 Jan 2014 02:01:59 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Content-Length:
|
28
|
+
- '93'
|
29
|
+
Connection:
|
28
30
|
- keep-alive
|
29
|
-
X-Powered-By:
|
30
|
-
- PHP/5.3.2-1ubuntu4.
|
31
|
-
|
32
|
-
-
|
33
|
-
|
31
|
+
X-Powered-By:
|
32
|
+
- PHP/5.3.2-1ubuntu4.22
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache, must-revalidate
|
35
|
+
Expires:
|
36
|
+
- '0'
|
37
|
+
Set-Cookie:
|
38
|
+
- sendgrid_frontend=eaa37a6c4ddc2eab62382957f0474f12:c1d5fca1aa850da5b2cc9be5fe2a1cb73a0e6f43;
|
39
|
+
expires=Sun, 16-Feb-2014 02:01:59 GMT; path=/; httponly
|
40
|
+
Vary:
|
34
41
|
- Accept-Encoding
|
35
|
-
|
36
|
-
-
|
37
|
-
|
38
|
-
encoding: ASCII-8BIT
|
39
|
-
string: !binary |
|
40
|
-
H4sIAAAAAAAAA6pWSi0qyi9SsqpWSs5PSVWyMjEw1FHKTS0uTkwH8pQCUoty
|
41
|
-
M4uLM/PzFFJS8zJTU3QU8vJLFBJLSzLyizKrUlOUamsBAAAA//8DAJwS+OVE
|
42
|
-
AAAA
|
43
|
-
|
42
|
+
body:
|
43
|
+
encoding: UTF-8
|
44
|
+
string: '{"error":{"code":401,"message":"Permission denied, not authorized"}}'
|
44
45
|
http_version:
|
45
|
-
recorded_at:
|
46
|
-
recorded_with: VCR 2.
|
46
|
+
recorded_at: Fri, 17 Jan 2014 02:01:59 GMT
|
47
|
+
recorded_with: VCR 2.8.0
|