sendgrid_webapi 0.0.6 → 0.1.2
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.
- 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
    
        data/lib/sendgrid_webapi.rb
    CHANGED
    
    
    
        data/lib/sub_user/modules.rb
    CHANGED
    
    | @@ -6,63 +6,63 @@ end | |
| 6 6 |  | 
| 7 7 | 
             
            module SendGridWebApi::SubUserModules
         | 
| 8 8 | 
             
              def management
         | 
| 9 | 
            -
                @management_instance ||= Management.new(@ | 
| 9 | 
            +
                @management_instance ||= Management.new(@api_key)
         | 
| 10 10 | 
             
              end
         | 
| 11 11 |  | 
| 12 12 | 
             
              def bounces
         | 
| 13 | 
            -
                @bounce_instance ||= Bounce.new(@ | 
| 13 | 
            +
                @bounce_instance ||= Bounce.new(@api_key)
         | 
| 14 14 | 
             
              end
         | 
| 15 15 |  | 
| 16 16 | 
             
              def unsubscribes
         | 
| 17 | 
            -
                @unsubscribe_instance ||= Unsubscribe.new(@ | 
| 17 | 
            +
                @unsubscribe_instance ||= Unsubscribe.new(@api_key)
         | 
| 18 18 | 
             
              end
         | 
| 19 19 |  | 
| 20 20 | 
             
              def spam
         | 
| 21 | 
            -
                @spam_instance ||= Spam.new(@ | 
| 21 | 
            +
                @spam_instance ||= Spam.new(@api_key)
         | 
| 22 22 | 
             
              end
         | 
| 23 23 |  | 
| 24 24 | 
             
              def invalid_emails
         | 
| 25 | 
            -
                @invalid_email_instance ||= InvalidEmail.new(@ | 
| 25 | 
            +
                @invalid_email_instance ||= InvalidEmail.new(@api_key)
         | 
| 26 26 | 
             
              end
         | 
| 27 27 |  | 
| 28 28 | 
             
              def event_notification
         | 
| 29 | 
            -
                @event_notification_instance ||= EventNotification.new(@ | 
| 29 | 
            +
                @event_notification_instance ||= EventNotification.new(@api_key)
         | 
| 30 30 | 
             
              end
         | 
| 31 31 |  | 
| 32 32 | 
             
              def parse_email
         | 
| 33 | 
            -
                @parse_instance ||= ParseEmail.new(@ | 
| 33 | 
            +
                @parse_instance ||= ParseEmail.new(@api_key)
         | 
| 34 34 | 
             
              end
         | 
| 35 35 |  | 
| 36 36 | 
             
              def limits
         | 
| 37 | 
            -
                @limit_instance ||= Limit.new(@ | 
| 37 | 
            +
                @limit_instance ||= Limit.new(@api_key)
         | 
| 38 38 | 
             
              end
         | 
| 39 39 |  | 
| 40 40 | 
             
              def stats
         | 
| 41 | 
            -
                @stats_instance ||= Stats.new(@ | 
| 41 | 
            +
                @stats_instance ||= Stats.new(@api_key)
         | 
| 42 42 | 
             
              end
         | 
| 43 43 |  | 
| 44 44 | 
             
              def ip_management
         | 
| 45 | 
            -
                @ip_management_instance ||= IpManagement.new(@ | 
| 45 | 
            +
                @ip_management_instance ||= IpManagement.new(@api_key)
         | 
| 46 46 | 
             
              end
         | 
| 47 47 |  | 
| 48 48 | 
             
              def monitor_records
         | 
| 49 | 
            -
                @monitor_record_instance ||= MonitorRecord.new(@ | 
| 49 | 
            +
                @monitor_record_instance ||= MonitorRecord.new(@api_key)
         | 
| 50 50 | 
             
              end
         | 
| 51 51 |  | 
| 52 52 | 
             
              def white_label
         | 
| 53 | 
            -
                @white_label_instance ||= WhiteLabel.new(@ | 
| 53 | 
            +
                @white_label_instance ||= WhiteLabel.new(@api_key)
         | 
| 54 54 | 
             
              end
         | 
| 55 55 |  | 
| 56 56 | 
             
              def iframe
         | 
| 57 | 
            -
                @iframe_instance ||= Iframe.new(@ | 
| 57 | 
            +
                @iframe_instance ||= Iframe.new(@api_key)
         | 
| 58 58 | 
             
              end
         | 
| 59 59 |  | 
| 60 60 | 
             
              def auth
         | 
| 61 | 
            -
                @auth_instance ||= Auth.new(@ | 
| 61 | 
            +
                @auth_instance ||= Auth.new(@api_key)
         | 
| 62 62 | 
             
              end
         | 
| 63 63 |  | 
| 64 64 | 
             
              def apps
         | 
| 65 | 
            -
                @app_instance ||= App.new(@ | 
| 65 | 
            +
                @app_instance ||= App.new(@api_key)
         | 
| 66 66 | 
             
              end
         | 
| 67 67 |  | 
| 68 68 | 
             
            end
         | 
    
        data/lib/version.rb
    CHANGED
    
    
    
        data/lib/web_api/modules.rb
    CHANGED
    
    | @@ -5,46 +5,50 @@ end | |
| 5 5 |  | 
| 6 6 | 
             
            module SendGridWebApi::Modules
         | 
| 7 7 | 
             
              def bounces
         | 
| 8 | 
            -
                @bounce_instance ||= Bounce.new(@ | 
| 8 | 
            +
                @bounce_instance ||= Bounce.new(@api_key)
         | 
| 9 9 | 
             
              end
         | 
| 10 10 |  | 
| 11 11 | 
             
              def blocks
         | 
| 12 | 
            -
                @block_instance ||= Block.new(@ | 
| 12 | 
            +
                @block_instance ||= Block.new(@api_key)
         | 
| 13 13 | 
             
              end
         | 
| 14 14 |  | 
| 15 15 | 
             
              def spam
         | 
| 16 | 
            -
                @spam_instance ||= Spam.new(@ | 
| 16 | 
            +
                @spam_instance ||= Spam.new(@api_key)
         | 
| 17 17 | 
             
              end
         | 
| 18 18 |  | 
| 19 19 | 
             
              def invalid_emails
         | 
| 20 | 
            -
                @invalid_email_instance ||= InvalidEmail.new(@ | 
| 20 | 
            +
                @invalid_email_instance ||= InvalidEmail.new(@api_key)
         | 
| 21 21 | 
             
              end
         | 
| 22 22 |  | 
| 23 23 | 
             
              def unsubscribes
         | 
| 24 | 
            -
                @unsubscribe_instance ||= Unsubscribe.new(@ | 
| 24 | 
            +
                @unsubscribe_instance ||= Unsubscribe.new(@api_key)
         | 
| 25 25 | 
             
              end
         | 
| 26 26 |  | 
| 27 27 | 
             
              def parse_email
         | 
| 28 | 
            -
                @parse_email_instance ||= ParseEmail.new(@ | 
| 28 | 
            +
                @parse_email_instance ||= ParseEmail.new(@api_key)
         | 
| 29 29 | 
             
              end
         | 
| 30 30 |  | 
| 31 31 | 
             
              def event_notification
         | 
| 32 | 
            -
                @event_notification_instance ||= EventNotification.new(@ | 
| 32 | 
            +
                @event_notification_instance ||= EventNotification.new(@api_key)
         | 
| 33 33 | 
             
              end
         | 
| 34 34 |  | 
| 35 35 | 
             
              def stats
         | 
| 36 | 
            -
                @stats_instance ||= Stats.new(@ | 
| 36 | 
            +
                @stats_instance ||= Stats.new(@api_key)
         | 
| 37 37 | 
             
              end
         | 
| 38 38 |  | 
| 39 39 | 
             
              def profile
         | 
| 40 | 
            -
                @profile_instance ||= Profile.new(@ | 
| 40 | 
            +
                @profile_instance ||= Profile.new(@api_key)
         | 
| 41 41 | 
             
              end
         | 
| 42 42 |  | 
| 43 43 | 
             
              def mail
         | 
| 44 | 
            -
                @mail_instance ||= Mail.new(@ | 
| 44 | 
            +
                @mail_instance ||= Mail.new(@api_key)
         | 
| 45 45 | 
             
              end
         | 
| 46 46 |  | 
| 47 47 | 
             
              def sub_user
         | 
| 48 | 
            -
                @sub_user ||= SendGridWebApi::SubUser.new(@ | 
| 48 | 
            +
                @sub_user ||= SendGridWebApi::SubUser.new(@api_key)
         | 
| 49 | 
            +
              end
         | 
| 50 | 
            +
             | 
| 51 | 
            +
              def apikey
         | 
| 52 | 
            +
                @apikey ||= SendGridWebApi::ApiKey.new(@api_key)
         | 
| 49 53 | 
             
              end
         | 
| 50 54 | 
             
            end
         | 
    
        data/sendgrid_webapi.gemspec
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            # -*- encoding: utf-8 -*-
         | 
| 2 2 | 
             
            $:.push File.expand_path("../lib", __FILE__)
         | 
| 3 | 
            -
            require  | 
| 3 | 
            +
            require "version"
         | 
| 4 4 |  | 
| 5 5 | 
             
            Gem::Specification.new do |s|
         | 
| 6 6 | 
             
              s.name        = "sendgrid_webapi"
         | 
| @@ -8,9 +8,10 @@ Gem::Specification.new do |s| | |
| 8 8 | 
             
              s.platform    = Gem::Platform::RUBY
         | 
| 9 9 | 
             
              s.authors     = ["kylejginavan", "chebyte"]
         | 
| 10 10 | 
             
              s.email       = ["kylejginavan@gmail.com", "maurotorres@gmail.com"]
         | 
| 11 | 
            -
              s.homepage    = "https://github.com/kylejginavan/ | 
| 11 | 
            +
              s.homepage    = "https://github.com/kylejginavan/sendgrid_webapi"
         | 
| 12 12 | 
             
              s.summary     = %q{SendGrid WEB API gem fo Rails}
         | 
| 13 13 | 
             
              s.description = %q{Gem for access to SendGrid WEB API from rails}
         | 
| 14 | 
            +
              s.license     = "MIT"
         | 
| 14 15 |  | 
| 15 16 | 
             
              s.rubyforge_project = "sendgrid_webapi"
         | 
| 16 17 |  | 
| @@ -19,12 +20,12 @@ Gem::Specification.new do |s| | |
| 19 20 | 
             
              s.executables   = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
         | 
| 20 21 | 
             
              s.require_paths = ["lib"]
         | 
| 21 22 |  | 
| 22 | 
            -
              s. | 
| 23 | 
            -
              s. | 
| 24 | 
            -
              s. | 
| 23 | 
            +
              s.add_dependency "faraday",          "~> 1.0"
         | 
| 24 | 
            +
              s.add_dependency "faraday_middleware",  "~> 1.0"
         | 
| 25 | 
            +
              s.add_dependency "json", "~> 2.0"
         | 
| 25 26 |  | 
| 26 | 
            -
              s. | 
| 27 | 
            -
              s. | 
| 28 | 
            -
              s. | 
| 29 | 
            -
              
         | 
| 27 | 
            +
              s.add_development_dependency "rspec", "~> 3.4"
         | 
| 28 | 
            +
              s.add_development_dependency "webmock", "~> 3.12"
         | 
| 29 | 
            +
              s.add_development_dependency "vcr", "~> 6.0"
         | 
| 30 | 
            +
              s.add_development_dependency "rspec_junit_formatter",   "~> 0.3", ">= 0.3.0"
         | 
| 30 31 | 
             
            end
         | 
| @@ -2,7 +2,7 @@ | |
| 2 2 | 
             
            http_interactions:
         | 
| 3 3 | 
             
            - request:
         | 
| 4 4 | 
             
                method: get
         | 
| 5 | 
            -
                uri: https://api.sendgrid.com/api/blocks.delete.json? | 
| 5 | 
            +
                uri: https://api.sendgrid.com/api/blocks.delete.json?email=test@example.com
         | 
| 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://api.sendgrid.com/api/bounces.delete.json? | 
| 5 | 
            +
                uri: https://api.sendgrid.com/api/bounces.delete.json?email=test@example.com
         | 
| 6 6 | 
             
                body:
         | 
| 7 7 | 
             
                  encoding: US-ASCII
         | 
| 8 8 | 
             
                  string: ''
         | 
    
        data/spec/cassettes/client/_modules/_event_notification/should_set_event_notification_url.yml
    CHANGED
    
    | @@ -2,7 +2,7 @@ | |
| 2 2 | 
             
            http_interactions:
         | 
| 3 3 | 
             
            - request:
         | 
| 4 4 | 
             
                method: get
         | 
| 5 | 
            -
                uri: https://api.sendgrid.com/api/eventposturl.set.json? | 
| 5 | 
            +
                uri: https://api.sendgrid.com/api/eventposturl.set.json?url=http://www.yourposturlhere.com
         | 
| 6 6 | 
             
                body:
         | 
| 7 7 | 
             
                  encoding: US-ASCII
         | 
| 8 8 | 
             
                  string: ''
         | 
    
        data/spec/cassettes/client/_modules/_invalid_email/should_try_delete_not_existing_invalid_emails.yml
    CHANGED
    
    | @@ -2,7 +2,7 @@ | |
| 2 2 | 
             
            http_interactions:
         | 
| 3 3 | 
             
            - request:
         | 
| 4 4 | 
             
                method: get
         | 
| 5 | 
            -
                uri: https://api.sendgrid.com/api/invalidemails.delete.json? | 
| 5 | 
            +
                uri: https://api.sendgrid.com/api/invalidemails.delete.json?email=test@example.com
         | 
| 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://api.sendgrid.com/api/parse.delete.json? | 
| 5 | 
            +
                uri: https://api.sendgrid.com/api/parse.delete.json?hostname=www.example.com
         | 
| 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:51:54 GMT
         | 
| 47 47 | 
             
            - request:
         | 
| 48 48 | 
             
                method: get
         | 
| 49 | 
            -
                uri: https://api.sendgrid.com/api/parse.get.json | 
| 49 | 
            +
                uri: https://api.sendgrid.com/api/parse.get.json
         | 
| 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://api.sendgrid.com/api/parse.set.json? | 
| 5 | 
            +
                uri: https://api.sendgrid.com/api/parse.set.json?hostname=www.example.com&spam_check=1&url=www.mydomain.com/parse.php
         | 
| 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://api.sendgrid.com/api/profile.set.json? | 
| 5 | 
            +
                uri: https://api.sendgrid.com/api/profile.set.json?first_name=test
         | 
| 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:52:35 GMT
         | 
| 47 47 | 
             
            - request:
         | 
| 48 48 | 
             
                method: get
         | 
| 49 | 
            -
                uri: https://api.sendgrid.com/api/profile.get.json | 
| 49 | 
            +
                uri: https://api.sendgrid.com/api/profile.get.json
         | 
| 50 50 | 
             
                body:
         | 
| 51 51 | 
             
                  encoding: US-ASCII
         | 
| 52 52 | 
             
                  string: ''
         | 
| @@ -91,7 +91,7 @@ http_interactions: | |
| 91 91 | 
             
              recorded_at: Fri, 17 Jan 2014 01:52:36 GMT
         | 
| 92 92 | 
             
            - request:
         | 
| 93 93 | 
             
                method: get
         | 
| 94 | 
            -
                uri: https://api.sendgrid.com/api/profile.set.json? | 
| 94 | 
            +
                uri: https://api.sendgrid.com/api/profile.set.json?first_name=Reseller
         | 
| 95 95 | 
             
                body:
         | 
| 96 96 | 
             
                  encoding: US-ASCII
         | 
| 97 97 | 
             
                  string: ''
         | 
| @@ -2,7 +2,7 @@ | |
| 2 2 | 
             
            http_interactions:
         | 
| 3 3 | 
             
            - request:
         | 
| 4 4 | 
             
                method: get
         | 
| 5 | 
            -
                uri: https://api.sendgrid.com/api/spamreports.delete.json? | 
| 5 | 
            +
                uri: https://api.sendgrid.com/api/spamreports.delete.json?email=test@example.com
         | 
| 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://api.sendgrid.com/api/unsubscribes.add.json? | 
| 5 | 
            +
                uri: https://api.sendgrid.com/api/unsubscribes.add.json?email=test@example.com
         | 
| 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://api.sendgrid.com/api/unsubscribes.delete.json? | 
| 5 | 
            +
                uri: https://api.sendgrid.com/api/unsubscribes.delete.json?email=test@example.com
         | 
| 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://api.sendgrid.com/api/unsubscribes.delete.json? | 
| 5 | 
            +
                uri: https://api.sendgrid.com/api/unsubscribes.delete.json?email=test@example.com
         | 
| 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=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 6 | 
             
                body:
         | 
| 7 7 | 
             
                  encoding: US-ASCII
         | 
| 8 8 | 
             
                  string: ''
         | 
| @@ -46,7 +46,7 @@ http_interactions: | |
| 46 46 | 
             
              recorded_at: Fri, 17 Jan 2014 02:05:33 GMT
         | 
| 47 47 | 
             
            - request:
         | 
| 48 48 | 
             
                method: get
         | 
| 49 | 
            -
                uri: https://sendgrid.com/apiv2/customer.enable.json? | 
| 49 | 
            +
                uri: https://sendgrid.com/apiv2/customer.enable.json?user=test-6
         | 
| 50 50 | 
             
                body:
         | 
| 51 51 | 
             
                  encoding: US-ASCII
         | 
| 52 52 | 
             
                  string: ''
         | 
| @@ -90,7 +90,7 @@ http_interactions: | |
| 90 90 | 
             
              recorded_at: Fri, 17 Jan 2014 02:05:35 GMT
         | 
| 91 91 | 
             
            - request:
         | 
| 92 92 | 
             
                method: get
         | 
| 93 | 
            -
                uri: https://sendgrid.com/apiv2/customer.sendip.json? | 
| 93 | 
            +
                uri: https://sendgrid.com/apiv2/customer.sendip.json?ip%5B0%5D=192.254.126.178&set=specify&task=append&user=test-6
         | 
| 94 94 | 
             
                body:
         | 
| 95 95 | 
             
                  encoding: US-ASCII
         | 
| 96 96 | 
             
                  string: ''
         | 
| @@ -134,7 +134,7 @@ http_interactions: | |
| 134 134 | 
             
              recorded_at: Fri, 17 Jan 2014 02:05:37 GMT
         | 
| 135 135 | 
             
            - request:
         | 
| 136 136 | 
             
                method: get
         | 
| 137 | 
            -
                uri: https://sendgrid.com/apiv2/customer.apps.json? | 
| 137 | 
            +
                uri: https://sendgrid.com/apiv2/customer.apps.json?name=opentrack&task=activate&user=test-6
         | 
| 138 138 | 
             
                body:
         | 
| 139 139 | 
             
                  encoding: US-ASCII
         | 
| 140 140 | 
             
                  string: ''
         | 
| @@ -178,7 +178,7 @@ http_interactions: | |
| 178 178 | 
             
              recorded_at: Fri, 17 Jan 2014 02:05:39 GMT
         | 
| 179 179 | 
             
            - request:
         | 
| 180 180 | 
             
                method: get
         | 
| 181 | 
            -
                uri: https://sendgrid.com/apiv2/customer.apps.json? | 
| 181 | 
            +
                uri: https://sendgrid.com/apiv2/customer.apps.json?name=clicktrack&task=activate&user=test-6
         | 
| 182 182 | 
             
                body:
         | 
| 183 183 | 
             
                  encoding: US-ASCII
         | 
| 184 184 | 
             
                  string: ''
         | 
| @@ -266,7 +266,7 @@ http_interactions: | |
| 266 266 | 
             
              recorded_at: Fri, 17 Jan 2014 02:05:43 GMT
         | 
| 267 267 | 
             
            - request:
         | 
| 268 268 | 
             
                method: get
         | 
| 269 | 
            -
                uri: https://sendgrid.com/apiv2/customer.auth.json? | 
| 269 | 
            +
                uri: https://sendgrid.com/apiv2/customer.auth.json?password=somepass&user=test-6
         | 
| 270 270 | 
             
                body:
         | 
| 271 271 | 
             
                  encoding: US-ASCII
         | 
| 272 272 | 
             
                  string: ''
         |