sendgrid_webapi 0.0.6 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- 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 +27 -2
- 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 +39 -8
- 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 +1 -1
- data/lib/web_api/modules.rb +15 -11
- data/sendgrid_webapi.gemspec +10 -9
- data/spec/cassettes/client/_modules/_block/should_get_block_emails.yml +1 -1
- data/spec/cassettes/client/_modules/_block/should_get_totals_blocks.yml +1 -1
- data/spec/cassettes/client/_modules/_block/should_try_delete_not_existing_block_email.yml +1 -1
- data/spec/cassettes/client/_modules/_bounce/should_get_bounce_emails.yml +1 -1
- data/spec/cassettes/client/_modules/_bounce/should_get_totals_bounces.yml +1 -1
- data/spec/cassettes/client/_modules/_bounce/should_try_delete_not_existing_bounce_email.yml +1 -1
- data/spec/cassettes/client/_modules/_event_notification/should_delete_event_notification_url.yml +1 -1
- data/spec/cassettes/client/_modules/_event_notification/should_get_event_notification_url.yml +1 -1
- data/spec/cassettes/client/_modules/_event_notification/should_set_event_notification_url.yml +1 -1
- data/spec/cassettes/client/_modules/_invalid_email/should_get_invalid_emails.yml +1 -1
- data/spec/cassettes/client/_modules/_invalid_email/should_try_delete_not_existing_invalid_emails.yml +1 -1
- data/spec/cassettes/client/_modules/_parse_email/should_delete_parse_email.yml +2 -2
- data/spec/cassettes/client/_modules/_parse_email/should_get_parse_email.yml +1 -1
- data/spec/cassettes/client/_modules/_parse_email/should_set_parse_email.yml +1 -1
- data/spec/cassettes/client/_modules/_profile/should_get_profile.yml +1 -1
- data/spec/cassettes/client/_modules/_profile/should_set_first_name.yml +3 -3
- data/spec/cassettes/client/_modules/_spam/should_get_spam_emails.yml +1 -1
- data/spec/cassettes/client/_modules/_spam/should_try_delete_not_existing_spam_emails.yml +1 -1
- data/spec/cassettes/client/_modules/_unsubscribe/should_add_unsubscribe_emails.yml +1 -1
- data/spec/cassettes/client/_modules/_unsubscribe/should_delete_unsubscribe_email.yml +1 -1
- data/spec/cassettes/client/_modules/_unsubscribe/should_get_unsubscribe_emails.yml +1 -1
- data/spec/cassettes/client/_modules/_unsubscribe/should_try_delete_not_existing_unsubscribe_emails.yml +1 -1
- data/spec/cassettes/helper/_create_sub_user_account/should_create_sub_user_account.yml +6 -6
- data/spec/cassettes/helper/_run_sendgrid_query/should_raise_with_unsucessfull_request.yml +1 -1
- data/spec/cassettes/helper/_run_sendgrid_query/should_run_sendgrid_request.yml +1 -1
- data/spec/cassettes/sub_user/_apps/should_activate_app.yml +1 -1
- data/spec/cassettes/sub_user/_apps/should_deactivate_app.yml +1 -1
- data/spec/cassettes/sub_user/_apps/should_get_current_setting_from_one_app.yml +1 -1
- data/spec/cassettes/sub_user/_apps/should_return_available_apps.yml +1 -1
- data/spec/cassettes/sub_user/_apps/should_set_current_app.yml +1 -1
- data/spec/cassettes/sub_user/_authentication/should_auth_a_sub_user.yml +1 -1
- data/spec/cassettes/sub_user/_authentication/should_return_error_with_a_bad_sub_user.yml +1 -1
- data/spec/cassettes/sub_user/_bounces/should_returns_bounce_emails.yml +1 -1
- data/spec/cassettes/sub_user/_bounces/should_tries_to_delete_unexisting_bounce_emails.yml +1 -1
- data/spec/cassettes/sub_user/_event_notification/should_add_event_notification_url.yml +1 -1
- data/spec/cassettes/sub_user/_event_notification/should_delete_event_notification_url.yml +1 -1
- data/spec/cassettes/sub_user/_event_notification/should_get_event_notification_url.yml +1 -1
- data/spec/cassettes/sub_user/_invalid_emails/should_return_invalid_emails.yml +1 -1
- data/spec/cassettes/sub_user/_invalid_emails/should_tries_to_delete_unexisting_invalid_mail.yml +1 -1
- data/spec/cassettes/sub_user/_ip_management/should_return_all_ips_available.yml +1 -1
- data/spec/cassettes/sub_user/_ip_management/should_show_ip_subuser.yml +1 -1
- data/spec/cassettes/sub_user/_limits/should_decrements_credits_for_a_sub_user.yml +2 -2
- data/spec/cassettes/sub_user/_limits/should_delete_all_limits_for_a_sub_user.yml +2 -2
- data/spec/cassettes/sub_user/_limits/should_increments_credits_for_a_sub_user.yml +2 -2
- data/spec/cassettes/sub_user/_limits/should_list_the_limits_for_a_sub_user.yml +1 -1
- data/spec/cassettes/sub_user/_limits/should_reset_all_limits_for_a_sub_user.yml +2 -2
- data/spec/cassettes/sub_user/_limits/should_returns_limits_for_a_sub_user.yml +1 -1
- data/spec/cassettes/sub_user/_limits/should_set_total_credits.yml +1 -1
- data/spec/cassettes/sub_user/_management/should_add_new_subuser.yml +1 -1
- data/spec/cassettes/sub_user/_management/should_disable_sub_user_for_send_email.yml +1 -1
- data/spec/cassettes/sub_user/_management/should_enable_sub_user_for_access_to_website.yml +1 -1
- data/spec/cassettes/sub_user/_management/should_enable_sub_user_for_send_email.yml +1 -1
- data/spec/cassettes/sub_user/_management/should_update_sub_user.yml +1 -1
- data/spec/cassettes/sub_user/_monitor_records/should_add_existing_sub_user_to_monitor_record.yml +2 -2
- data/spec/cassettes/sub_user/_monitor_records/should_create_a_new_monitor_record.yml +2 -2
- data/spec/cassettes/sub_user/_monitor_records/should_delete_a_monitor_record.yml +2 -2
- data/spec/cassettes/sub_user/_monitor_records/should_edit_a_monitor_record.yml +2 -2
- data/spec/cassettes/sub_user/_monitor_records/should_remove_existing_sub_user_from_monitor_record.yml +2 -2
- data/spec/cassettes/sub_user/_parse_email/should_delete_parse_email.yml +2 -2
- data/spec/cassettes/sub_user/_parse_email/should_get_parse_email.yml +1 -1
- data/spec/cassettes/sub_user/_parse_email/should_set_parse_email.yml +1 -1
- data/spec/cassettes/sub_user/_spam/should_return_spam_mails.yml +1 -1
- data/spec/cassettes/sub_user/_spam/should_tries_to_delete_unexisting_spam_mail.yml +1 -1
- data/spec/cassettes/sub_user/_unsubscribes/should_add_bounce_email.yml +1 -1
- data/spec/cassettes/sub_user/_unsubscribes/should_delete_existing_bounce_email.yml +1 -1
- data/spec/cassettes/sub_user/_unsubscribes/should_delete_unexisting_bounce_email.yml +1 -1
- data/spec/cassettes/sub_user/_unsubscribes/should_returns_bounce_emails.yml +1 -1
- data/spec/client_spec.rb +2 -2
- data/spec/helper_spec.rb +4 -4
- data/spec/sub_user_spec.rb +1 -1
- data/test.rb +1 -1
- metadata +76 -49
- data/.travis.yml +0 -2
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.apps.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.apps.json?name=badappname&task=activate&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.apps.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.apps.json?name=clicktrack&task=activate&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.apps.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.apps.json?name=opentrack&task=activate&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.apps.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.apps.json?name=opentrack&task=deactivate&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.apps.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.apps.json?name=eventnotify&task=getsettings&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.apps.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.apps.json?task=getavailable&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -46,7 +46,7 @@ http_interactions:
|
|
46
46
|
recorded_at: Fri, 17 Jan 2014 01:27:48 GMT
|
47
47
|
- request:
|
48
48
|
method: get
|
49
|
-
uri: https://sendgrid.com/apiv2/customer.apps.json?
|
49
|
+
uri: https://sendgrid.com/apiv2/customer.apps.json?name=eventnotify&task=getsettings&user=sendgrid_testuser3
|
50
50
|
body:
|
51
51
|
encoding: US-ASCII
|
52
52
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.auth.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.auth.json?password=somepass&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.auth.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.auth.json?password=badpass&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/api/user.bounces.json?
|
5
|
+
uri: https://sendgrid.com/api/user.bounces.json?task=get&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/api/user.bounces.json?
|
5
|
+
uri: https://sendgrid.com/api/user.bounces.json?email=test@email.com&task=delete&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.eventposturl.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.eventposturl.json?task=set&url=www.example.com/notification&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.eventposturl.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.eventposturl.json?task=delete&url=www.example.com/noti.php&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.eventposturl.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.eventposturl.json?task=get&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.invalidemails.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.invalidemails.json?task=get&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
data/spec/cassettes/sub_user/_invalid_emails/should_tries_to_delete_unexisting_invalid_mail.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.invalidemails.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.invalidemails.json?email=test@testr.com&task=delete&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.ip.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.ip.json?list=all&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.sendip.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.sendip.json?task=list&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.limit.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.limit.json?credits=400&task=decrement&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -46,7 +46,7 @@ http_interactions:
|
|
46
46
|
recorded_at: Fri, 17 Jan 2014 01:24:59 GMT
|
47
47
|
- request:
|
48
48
|
method: get
|
49
|
-
uri: https://sendgrid.com/apiv2/customer.limit.json?
|
49
|
+
uri: https://sendgrid.com/apiv2/customer.limit.json?task=retrieve&user=sendgrid_testuser3
|
50
50
|
body:
|
51
51
|
encoding: US-ASCII
|
52
52
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.limit.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.limit.json?task=none&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -46,7 +46,7 @@ http_interactions:
|
|
46
46
|
recorded_at: Fri, 17 Jan 2014 01:25:03 GMT
|
47
47
|
- request:
|
48
48
|
method: get
|
49
|
-
uri: https://sendgrid.com/apiv2/customer.limit.json?
|
49
|
+
uri: https://sendgrid.com/apiv2/customer.limit.json?task=retrieve&user=sendgrid_testuser3
|
50
50
|
body:
|
51
51
|
encoding: US-ASCII
|
52
52
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.limit.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.limit.json?credits=400&task=increment&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -46,7 +46,7 @@ http_interactions:
|
|
46
46
|
recorded_at: Fri, 17 Jan 2014 01:24:55 GMT
|
47
47
|
- request:
|
48
48
|
method: get
|
49
|
-
uri: https://sendgrid.com/apiv2/customer.limit.json?
|
49
|
+
uri: https://sendgrid.com/apiv2/customer.limit.json?task=retrieve&user=sendgrid_testuser3
|
50
50
|
body:
|
51
51
|
encoding: US-ASCII
|
52
52
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.limit.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.limit.json?task=retrieve&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.limit.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.limit.json?credits=400&period=daily&task=recurring&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -46,7 +46,7 @@ http_interactions:
|
|
46
46
|
recorded_at: Fri, 17 Jan 2014 01:24:49 GMT
|
47
47
|
- request:
|
48
48
|
method: get
|
49
|
-
uri: https://sendgrid.com/apiv2/customer.limit.json?
|
49
|
+
uri: https://sendgrid.com/apiv2/customer.limit.json?task=retrieve&user=sendgrid_testuser3
|
50
50
|
body:
|
51
51
|
encoding: US-ASCII
|
52
52
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.limit.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.limit.json?task=retrieve&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.limit.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.limit.json?credits=200&period=daily&task=total&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.add.json?address=555%20anystreet&
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.add.json?address=555%20anystreet&city=any%20city&confirm_password=somepass&country=US&email=sendgrid_testuser3@example.com&first_name=homero&last_name=simpson&password=somepass&phone=555-555&state=CA&username=sendgrid_testuser3&website=example.com&zip=91234
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.disable.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.disable.json?user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.website_enable.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.website_enable.json?user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.enable.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.enable.json?user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.profile.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.profile.json?first_name=change_named&task=set&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
data/spec/cassettes/sub_user/_monitor_records/should_add_existing_sub_user_to_monitor_record.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.monitor.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.monitor.json?name=testmonitor&task=append&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -46,7 +46,7 @@ http_interactions:
|
|
46
46
|
recorded_at: Fri, 17 Jan 2014 01:26:02 GMT
|
47
47
|
- request:
|
48
48
|
method: get
|
49
|
-
uri: https://sendgrid.com/apiv2/customer.monitor.json?
|
49
|
+
uri: https://sendgrid.com/apiv2/customer.monitor.json?task=list
|
50
50
|
body:
|
51
51
|
encoding: US-ASCII
|
52
52
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.monitor.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.monitor.json?email=test@email.com&frequency=10000&name=testmonitor&task=create
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -46,7 +46,7 @@ http_interactions:
|
|
46
46
|
recorded_at: Fri, 17 Jan 2014 01:25:53 GMT
|
47
47
|
- request:
|
48
48
|
method: get
|
49
|
-
uri: https://sendgrid.com/apiv2/customer.monitor.json?
|
49
|
+
uri: https://sendgrid.com/apiv2/customer.monitor.json?task=list
|
50
50
|
body:
|
51
51
|
encoding: US-ASCII
|
52
52
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.monitor.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.monitor.json?name=testmonitor&task=delete
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -46,7 +46,7 @@ http_interactions:
|
|
46
46
|
recorded_at: Fri, 17 Jan 2014 01:26:12 GMT
|
47
47
|
- request:
|
48
48
|
method: get
|
49
|
-
uri: https://sendgrid.com/apiv2/customer.monitor.json?
|
49
|
+
uri: https://sendgrid.com/apiv2/customer.monitor.json?task=list
|
50
50
|
body:
|
51
51
|
encoding: US-ASCII
|
52
52
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.monitor.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.monitor.json?name=testmonitor&new_frequency=10&task=edit
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -46,7 +46,7 @@ http_interactions:
|
|
46
46
|
recorded_at: Fri, 17 Jan 2014 01:25:57 GMT
|
47
47
|
- request:
|
48
48
|
method: get
|
49
|
-
uri: https://sendgrid.com/apiv2/customer.monitor.json?
|
49
|
+
uri: https://sendgrid.com/apiv2/customer.monitor.json?task=list
|
50
50
|
body:
|
51
51
|
encoding: US-ASCII
|
52
52
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.monitor.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.monitor.json?name=testmonitor&task=detach&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -46,7 +46,7 @@ http_interactions:
|
|
46
46
|
recorded_at: Fri, 17 Jan 2014 01:26:07 GMT
|
47
47
|
- request:
|
48
48
|
method: get
|
49
|
-
uri: https://sendgrid.com/apiv2/customer.monitor.json?
|
49
|
+
uri: https://sendgrid.com/apiv2/customer.monitor.json?task=list
|
50
50
|
body:
|
51
51
|
encoding: US-ASCII
|
52
52
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sendgrid.com/apiv2/customer.parse.json?
|
5
|
+
uri: https://sendgrid.com/apiv2/customer.parse.json?hostname=www.example.com&task=delete&user=sendgrid_testuser3
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -46,7 +46,7 @@ http_interactions:
|
|
46
46
|
recorded_at: Fri, 17 Jan 2014 01:26:57 GMT
|
47
47
|
- request:
|
48
48
|
method: get
|
49
|
-
uri: https://sendgrid.com/apiv2/customer.parse.json?
|
49
|
+
uri: https://sendgrid.com/apiv2/customer.parse.json?task=get&user=sendgrid_testuser3
|
50
50
|
body:
|
51
51
|
encoding: US-ASCII
|
52
52
|
string: ''
|