mailroute 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +18 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +4 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +87 -0
- data/Guardfile +11 -0
- data/LICENSE.txt +22 -0
- data/README.md +57 -0
- data/Rakefile +42 -0
- data/lib/mailroute.rb +34 -0
- data/lib/mailroute/check_connection.rb +21 -0
- data/lib/mailroute/configuration.rb +24 -0
- data/lib/mailroute/extensions/active_resource/better_connection_error.rb +10 -0
- data/lib/mailroute/extensions/active_resource/formats.rb +19 -0
- data/lib/mailroute/extensions/active_resource/has_many.rb +13 -0
- data/lib/mailroute/extensions/active_resource/has_one.rb +13 -0
- data/lib/mailroute/extensions/active_resource/meta_information.rb +20 -0
- data/lib/mailroute/extensions/active_resource/urls_without_json_extension.rb +29 -0
- data/lib/mailroute/extensions/object.rb +3 -0
- data/lib/mailroute/extensions/relation.rb +59 -0
- data/lib/mailroute/models/admin.rb +21 -0
- data/lib/mailroute/models/base.rb +193 -0
- data/lib/mailroute/models/branding_info.rb +5 -0
- data/lib/mailroute/models/customer.rb +10 -0
- data/lib/mailroute/models/customer_contact.rb +6 -0
- data/lib/mailroute/models/domain.rb +56 -0
- data/lib/mailroute/models/domain_alias.rb +6 -0
- data/lib/mailroute/models/domain_contact.rb +6 -0
- data/lib/mailroute/models/email_account.rb +53 -0
- data/lib/mailroute/models/email_account_contact.rb +6 -0
- data/lib/mailroute/models/mail_server.rb +6 -0
- data/lib/mailroute/models/notification_account_task.rb +24 -0
- data/lib/mailroute/models/notification_domain_task.rb +6 -0
- data/lib/mailroute/models/outbound_server.rb +6 -0
- data/lib/mailroute/models/policy_domain.rb +6 -0
- data/lib/mailroute/models/policy_user.rb +6 -0
- data/lib/mailroute/models/reseller.rb +10 -0
- data/lib/mailroute/models/reseller_contact.rb +6 -0
- data/lib/mailroute/models/wblist.rb +7 -0
- data/lib/mailroute/version.rb +3 -0
- data/mailroute.gemspec +33 -0
- data/spec/lib/check_connection_spec.rb +43 -0
- data/spec/lib/configuration_spec.rb +17 -0
- data/spec/lib/mailroute/models/admin_spec.rb +13 -0
- data/spec/lib/mailroute/models/base_spec.rb +21 -0
- data/spec/lib/mailroute/models/customer_contact_spec.rb +32 -0
- data/spec/lib/mailroute/models/customer_spec.rb +244 -0
- data/spec/lib/mailroute/models/domain_alias_spec.rb +27 -0
- data/spec/lib/mailroute/models/domain_contact_spec.rb +32 -0
- data/spec/lib/mailroute/models/domain_spec.rb +215 -0
- data/spec/lib/mailroute/models/email_account_contact_spec.rb +32 -0
- data/spec/lib/mailroute/models/email_account_spec.rb +123 -0
- data/spec/lib/mailroute/models/mail_server_spec.rb +27 -0
- data/spec/lib/mailroute/models/notification_account_task_spec.rb +36 -0
- data/spec/lib/mailroute/models/notification_domain_task_spec.rb +19 -0
- data/spec/lib/mailroute/models/outbound_server_spec.rb +24 -0
- data/spec/lib/mailroute/models/reseller_contact_spec.rb +32 -0
- data/spec/lib/mailroute/models/reseller_spec.rb +297 -0
- data/spec/lib/mailroute/models/wblist_spec.rb +46 -0
- data/spec/spec_helper.rb +26 -0
- data/spec/support/custom_matchers.rb +5 -0
- data/spec/support/mailroute_configuration_helper.rb +9 -0
- data/spec/vcr_cassettes/Mailroute/_check_connection/when_configured_with_correct_credentials/should_return_true.yml +41 -0
- data/spec/vcr_cassettes/Mailroute/_check_connection/when_configured_with_incorrect_credentials/should_raise_Unauthorized_error.yml +38 -0
- data/spec/vcr_cassettes/Mailroute_Admin/basic_operations/should_perform_basic_read_operations.yml +38 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_admins/should_return_a_list_of_its_admins.yml +41 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_branding_info/should_return_its_branding_info.yml +79 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_contacts/should_return_a_list_of_its_contacts.yml +41 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_create_admin/.yml +80 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_create_admin/should_be_in_the_list_of_the_customer_s_admins.yml +118 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_create_admin/should_have_an_id.yml +80 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_create_contact/.yml +80 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_create_contact/should_have_a_link_to_the_customer.yml +118 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_create_contact/should_save_a_new_contact.yml +118 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_create_contact/should_save_the_attributes.yml +118 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_create_domain/.yml +80 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_create_domain/should_have_a_link_to_the_customer.yml +118 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_create_domain/should_save_a_new_domain.yml +118 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_create_domain/should_save_the_attributes.yml +118 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_create_with_reseller/when_reseller_is_a_reseller_object/should_be_created_with_reseller.yml +118 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_create_with_reseller/when_reseller_is_a_reseller_object/should_have_id.yml +80 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_create_with_reseller/when_reseller_is_referenced_via_id/should_be_created_with_reseller.yml +118 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_create_with_reseller/when_reseller_is_referenced_via_id/should_have_id.yml +80 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_create_with_reseller/when_reseller_is_referenced_via_name/should_be_created_with_reseller.yml +156 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_create_with_reseller/when_reseller_is_referenced_via_name/should_have_id.yml +118 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_delete_admin/when_deleting_an_existing_admin/should_not_be_in_the_list_of_the_customer_s_admins.yml +152 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_delete_admin/when_deleting_an_existing_admin/should_not_delete_all_admins.yml +152 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_delete_admin/when_trying_to_delete_admin_which_do_not_exist/should_not_fail.yml +79 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_domains/should_return_a_list_of_its_domains.yml +79 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_filter/by_name/should_return_cusomers_with_a_given_name.yml +41 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_filter/by_name__startswith/should_return_cusomers_with_names_starting_with_given_prefix.yml +41 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_filter/by_reseller/should_return_all_customers_of_the_given_reseller.yml +41 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_get/id/.yml +41 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_get/name/.yml +41 -0
- data/spec/vcr_cassettes/Mailroute_Customer/_reseller/should_return_the_customer_s_reseller.yml +79 -0
- data/spec/vcr_cassettes/Mailroute_Customer/basic_operations/should_perform_basic_read_operations.yml +41 -0
- data/spec/vcr_cassettes/Mailroute_Customer/total_count/should_return_number_of_customer_which_matches_search_criteria.yml +41 -0
- data/spec/vcr_cassettes/Mailroute_Customer/total_count/should_return_number_of_customer_which_matches_search_criteria3.yml +41 -0
- data/spec/vcr_cassettes/Mailroute_Customer/total_count/should_return_total_count_of_customers.yml +41 -0
- data/spec/vcr_cassettes/Mailroute_CustomerContact/CRUD/should_create_read_update_and_delete_customer_contacts.yml +340 -0
- data/spec/vcr_cassettes/Mailroute_Domain/_create/should_have_an_id.yml +80 -0
- data/spec/vcr_cassettes/Mailroute_Domain/_create/should_save_all_attributes.yml +80 -0
- data/spec/vcr_cassettes/Mailroute_Domain/_domain_aliases/should_return_a_list_of_its_domain_aliases.yml +155 -0
- data/spec/vcr_cassettes/Mailroute_Domain/black_white_list/should_blacklist_and_whitelist_emails.yml +386 -0
- data/spec/vcr_cassettes/Mailroute_Domain/has_a_notification_task/should_have_notification_task.yml +249 -0
- data/spec/vcr_cassettes/Mailroute_Domain/has_a_policy/should_have_policy.yml +79 -0
- data/spec/vcr_cassettes/Mailroute_Domain/has_many_aliases/should_list_create_and_delete_domain_aliases.yml +195 -0
- data/spec/vcr_cassettes/Mailroute_Domain/has_many_contacts/should_list_create_and_delete_contacts.yml +379 -0
- data/spec/vcr_cassettes/Mailroute_Domain/has_many_email_accounts/should_be_possible_to_bulk_create_email_accounts.yml +192 -0
- data/spec/vcr_cassettes/Mailroute_Domain/has_many_email_accounts/should_list_and_create_email_accounts.yml +411 -0
- data/spec/vcr_cassettes/Mailroute_Domain/has_many_mail_servers/should_list_create_and_delete_mail_servers.yml +306 -0
- data/spec/vcr_cassettes/Mailroute_Domain/has_many_outbound_servers/should_list_create_and_delete_outbound_servers.yml +306 -0
- data/spec/vcr_cassettes/Mailroute_Domain/move_to_customer/should_move_domain_to_another_customer.yml +230 -0
- data/spec/vcr_cassettes/Mailroute_DomainAlias/should_be_possible_to_create_read_update_and_delete_domain_aliases.yml +532 -0
- data/spec/vcr_cassettes/Mailroute_DomainContact/CRUD/should_create_read_update_and_delete_domain_contacts.yml +340 -0
- data/spec/vcr_cassettes/Mailroute_EmailAccount/_get/by_id/should_return_an_account.yml +41 -0
- data/spec/vcr_cassettes/Mailroute_EmailAccount/_get/by_localpart_and_domain/should_return_an_account.yml +79 -0
- data/spec/vcr_cassettes/Mailroute_EmailAccount/_get/by_localpart_and_domain_id/should_return_an_account.yml +41 -0
- data/spec/vcr_cassettes/Mailroute_EmailAccount/_get/by_localpart_and_domain_name/should_return_an_account.yml +171 -0
- data/spec/vcr_cassettes/Mailroute_EmailAccount/_set_password/should_set_the_password.yml +78 -0
- data/spec/vcr_cassettes/Mailroute_EmailAccount/black_white_list/should_blacklist_and_whitelist_emails.yml +194 -0
- data/spec/vcr_cassettes/Mailroute_EmailAccount/has_contact/should_have_contact.yml +79 -0
- data/spec/vcr_cassettes/Mailroute_EmailAccount/has_domain/should_have_domain.yml +79 -0
- data/spec/vcr_cassettes/Mailroute_EmailAccount/has_notification_task/should_have_notification_task.yml +79 -0
- data/spec/vcr_cassettes/Mailroute_EmailAccount/has_policy/should_have_policy.yml +79 -0
- data/spec/vcr_cassettes/Mailroute_EmailAccount/should_be_possible_to_create_read_update_and_delete_email_accounts.yml +532 -0
- data/spec/vcr_cassettes/Mailroute_EmailAccountContact/CRUD/should_create_read_update_and_delete_email_account_contacts.yml +302 -0
- data/spec/vcr_cassettes/Mailroute_MailServer/should_be_possible_to_create_read_update_and_delete_mail_servers.yml +532 -0
- data/spec/vcr_cassettes/Mailroute_NotificationAccountTask/RU/should_read_and_update_tasks.yml +116 -0
- data/spec/vcr_cassettes/Mailroute_NotificationAccountTask/priorities/should_change_the_priority_of_a_task.yml +344 -0
- data/spec/vcr_cassettes/Mailroute_NotificationDomainTask/RU/should_read_and_update_tasks.yml +116 -0
- data/spec/vcr_cassettes/Mailroute_OutboundServer/CRUD/should_create_read_update_and_delete_outbound_servers.yml +229 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_admins/should_return_a_list_of_its_admins.yml +77 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_all/should_accept_limit_keyword.yml +39 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_all/should_accept_offset_keyword.yml +75 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_all/should_return_a_list_of_resellers.yml +39 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_bulk_create/should_create_several_resellers.yml +158 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_contacts/should_return_a_list_of_its_contacts.yml +41 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_create/should_create_a_new_reseller.yml +80 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_create_admin/.yml +6718 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_create_admin/should_be_in_the_list_of_the_reseller_s_admins.yml +118 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_create_admin/should_have_an_id.yml +80 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_create_admin/should_have_send_welcome_field_.yml +80 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_create_contact/.yml +80 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_create_contact/address/.yml +80 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_create_contact/city/.yml +80 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_create_contact/email/.yml +80 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_create_contact/should_have_a_link_to_the_reseller.yml +118 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_create_contact/should_save_a_new_contact.yml +118 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_create_contact/should_save_the_attributes.yml +118 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_create_customer/.yml +118 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_create_customer/allow_branding/.yml +118 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_create_customer/name/.yml +118 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_create_customer/should_have_a_link_to_the_reseller.yml +156 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_create_customer/should_save_a_new_contact.yml +118 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_create_customer/should_save_the_attributes.yml +118 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_customers/should_return_a_list_of_its_customers.yml +41 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_delete/should_bulk_delete_a_list_of_resellers.yml +368 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_delete/should_delete_the_reseller.yml +112 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_delete_admin/when_deleting_an_existing_admin/should_not_be_in_the_list_of_the_reseller_s_admins.yml +225 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_delete_admin/when_deleting_an_existing_admin/should_not_delete_all_admins.yml +152 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_delete_admin/when_trying_to_delete_admin_which_do_not_exist/should_not_fail.yml +79 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_filter/should_return_a_list_of_resellers_which_match_the_filter_query.yml +39 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_find/should_raise_error_if_reseller_not_found.yml +37 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_find/should_return_the_reseller.yml +37 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_find/should_return_the_reseller_if_it_exists.yml +39 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_find/should_return_the_reseller_if_it_present.yml +37 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_find/should_return_the_reseller_if_it_preset.yml +73 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_find/should_set_the_name.yml +37 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_limit/should_limit_the_number_of_resellers_returned.yml +79 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_list/should_accept_limit_keyword.yml +39 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_list/should_return_a_list_of_resellers.yml +39 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_offset/should_return_different_pages.yml +75 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_order_by/ascending_order/should_return_ordered_result.yml +41 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_order_by/descending_order/should_return_ordered_result.yml +41 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_save/should_save_the_changes.yml +116 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/_search/should_return_a_list_of_resellers_which_match_the_search_query.yml +41 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/it_should_retrieve_branding_info/branding_info/.yml +75 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/it_should_retrieve_branding_info_/branding_info/.yml +39 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/it_should_retrieve_branding_info_ix_/branding_info/.yml +2605 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/it_should_retrieve_branding_info_x_/branding_info/.yml +37 -0
- data/spec/vcr_cassettes/Mailroute_Reseller/it_should_retrieve_branding_info_xix_/branding_info/.yml +75 -0
- data/spec/vcr_cassettes/Mailroute_ResellerContact/CRUD/should_create_read_update_and_delete_reseller_contacts.yml +340 -0
- data/spec/vcr_cassettes/Mailroute_WBList/WBList/with_domain/should_create_read_and_update_and_delete_wblists.yml +415 -0
- data/spec/vcr_cassettes/Mailroute_WBList/WBList/with_email_account/should_create_read_and_update_and_delete_wblists.yml +267 -0
- data/spec/vcr_cassettes/Valid_Reseller.yml +37 -0
- data/spec/vcr_cassettes/Valid_Reseller_.yml +39 -0
- data/spec/vcr_cassettes/Valid_Reseller_with_Branding_Info.yml +75 -0
- metadata +553 -0
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
recorded_with: VCR 2.4.0
|
3
|
+
http_interactions:
|
4
|
+
- request:
|
5
|
+
method: get
|
6
|
+
uri: https://admin-dev.mailroute.net/api/v1/customer/?name=111testCustomer111cc
|
7
|
+
body:
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- identity
|
14
|
+
Authorization:
|
15
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx/1.2.6
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Vary:
|
28
|
+
- Accept, Cookie
|
29
|
+
- Accept-Encoding
|
30
|
+
Cache-Control:
|
31
|
+
- no-cache
|
32
|
+
Content-Type:
|
33
|
+
- application/json; charset=utf-8
|
34
|
+
Date:
|
35
|
+
- Sat, 16 Mar 2013 16:18:14 GMT
|
36
|
+
Transfer-Encoding:
|
37
|
+
- chunked
|
38
|
+
body:
|
39
|
+
string: "{\"meta\": {\"limit\": 20, \"next\": null, \"offset\": 0, \"previous\": null, \"total_count\": 1}, \"objects\": [{\"absolute_url\": \"/customer/1300/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/84/\", \"created_at\": \"Fri, 26 Oct 2012 04:18:42 -0700\", \"id\": 1300, \"is_full_user_list\": false, \"name\": \"111testCustomer111cc\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/51/\", \"resource_uri\": \"/api/v1/customer/1300/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}]}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sat, 16 Mar 2013 16:18:14 GMT
|
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
recorded_with: VCR 2.4.0
|
3
|
+
http_interactions:
|
4
|
+
- request:
|
5
|
+
method: get
|
6
|
+
uri: https://admin-dev.mailroute.net/api/v1/customer/?name__startswith=A
|
7
|
+
body:
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- identity
|
14
|
+
Authorization:
|
15
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx/1.2.6
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Vary:
|
28
|
+
- Accept, Cookie
|
29
|
+
- Accept-Encoding
|
30
|
+
Cache-Control:
|
31
|
+
- no-cache
|
32
|
+
Content-Type:
|
33
|
+
- application/json; charset=utf-8
|
34
|
+
Date:
|
35
|
+
- Sat, 16 Mar 2013 16:20:21 GMT
|
36
|
+
Transfer-Encoding:
|
37
|
+
- chunked
|
38
|
+
body:
|
39
|
+
string: "{\"meta\": {\"limit\": 20, \"next\": \"/api/v1/customer/?name__startswith=A&limit=20&offset=20\", \"offset\": 0, \"previous\": null, \"total_count\": 98}, \"objects\": [{\"absolute_url\": \"/customer/2099/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/92/\", \"created_at\": \"Wed, 6 Mar 2013 06:46:14 -0800\", \"id\": 2099, \"is_full_user_list\": false, \"name\": \"A Broader View\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/86/\", \"resource_uri\": \"/api/v1/customer/2099/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/2341/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/2135/\", \"created_at\": \"Sat, 16 Mar 2013 08:18:30 -0700\", \"id\": 2341, \"is_full_user_list\": false, \"name\": \"A New Customer\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/4/\", \"resource_uri\": \"/api/v1/customer/2341/\", \"updated_at\": \"Sat, 16 Mar 2013 08:18:30 -0700\"}, {\"absolute_url\": \"/customer/34/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/93/\", \"created_at\": \"Thu, 7 Jun 2012 08:25:54 -0700\", \"id\": 34, \"is_full_user_list\": false, \"name\": \"A&E Tax Service\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/1/\", \"resource_uri\": \"/api/v1/customer/34/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/1838/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/95/\", \"created_at\": \"Wed, 6 Mar 2013 06:39:49 -0800\", \"id\": 1838, \"is_full_user_list\": false, \"name\": \"A2C Consulting\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/86/\", \"resource_uri\": \"/api/v1/customer/1838/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/1286/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/96/\", \"created_at\": \"Thu, 18 Oct 2012 00:59:09 -0700\", \"id\": 1286, \"is_full_user_list\": false, \"name\": \"Aaabor\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/1/\", \"resource_uri\": \"/api/v1/customer/1286/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/13/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/97/\", \"created_at\": \"Thu, 7 Jun 2012 08:24:57 -0700\", \"id\": 13, \"is_full_user_list\": false, \"name\": \"Aaron Cake\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/1/\", \"resource_uri\": \"/api/v1/customer/13/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/15/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/98/\", \"created_at\": \"Thu, 7 Jun 2012 08:25:03 -0700\", \"id\": 15, \"is_full_user_list\": false, \"name\": \"Abaco Insurance\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/1/\", \"resource_uri\": \"/api/v1/customer/15/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/16/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/99/\", \"created_at\": \"Thu, 7 Jun 2012 08:25:04 -0700\", \"id\": 16, \"is_full_user_list\": false, \"name\": \"ABC Law\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/1/\", \"resource_uri\": \"/api/v1/customer/16/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/1865/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/102/\", \"created_at\": \"Wed, 6 Mar 2013 06:40:26 -0800\", \"id\": 1865, \"is_full_user_list\": false, \"name\": \"Access Hardware\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/86/\", \"resource_uri\": \"/api/v1/customer/1865/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/1570/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/103/\", \"created_at\": \"Wed, 30 Jan 2013 05:09:38 -0800\", \"id\": 1570, \"is_full_user_list\": false, \"name\": \"Accountants Edge Software Solutions\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/21/\", \"resource_uri\": \"/api/v1/customer/1570/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/20/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/104/\", \"created_at\": \"Thu, 7 Jun 2012 08:25:21 -0700\", \"id\": 20, \"is_full_user_list\": false, \"name\": \"ACG Los Angeles\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/2/\", \"resource_uri\": \"/api/v1/customer/20/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/1221/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/105/\", \"created_at\": \"Sat, 15 Sep 2012 07:23:30 -0700\", \"id\": 1221, \"is_full_user_list\": false, \"name\": \"ACGLA Conference\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/2/\", \"resource_uri\": \"/api/v1/customer/1221/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/23/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/107/\", \"created_at\": \"Thu, 7 Jun 2012 08:25:35 -0700\", \"id\": 23, \"is_full_user_list\": false, \"name\": \"ACI Insure\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/1/\", \"resource_uri\": \"/api/v1/customer/23/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/1786/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/108/\", \"created_at\": \"Wed, 6 Mar 2013 06:38:39 -0800\", \"id\": 1786, \"is_full_user_list\": false, \"name\": \"Acme Development LLC\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/86/\", \"resource_uri\": \"/api/v1/customer/1786/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/1866/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/109/\", \"created_at\": \"Wed, 6 Mar 2013 06:40:27 -0800\", \"id\": 1866, \"is_full_user_list\": false, \"name\": \"Acme Security\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/86/\", \"resource_uri\": \"/api/v1/customer/1866/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/7/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/111/\", \"created_at\": \"Thu, 7 Jun 2012 08:24:41 -0700\", \"id\": 7, \"is_full_user_list\": false, \"name\": \"ACS Wireless\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/1/\", \"resource_uri\": \"/api/v1/customer/7/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/27/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/112/\", \"created_at\": \"Thu, 7 Jun 2012 08:25:42 -0700\", \"id\": 27, \"is_full_user_list\": false, \"name\": \"ACWA\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/1/\", \"resource_uri\": \"/api/v1/customer/27/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/544/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/113/\", \"created_at\": \"Thu, 7 Jun 2012 09:09:21 -0700\", \"id\": 544, \"is_full_user_list\": false, \"name\": \"Ad Tec, LLC\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/2/\", \"resource_uri\": \"/api/v1/customer/544/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/1830/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/114/\", \"created_at\": \"Wed, 6 Mar 2013 06:39:39 -0800\", \"id\": 1830, \"is_full_user_list\": false, \"name\": \"Adair, Jordan\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/86/\", \"resource_uri\": \"/api/v1/customer/1830/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/1039/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/115/\", \"created_at\": \"Thu, 7 Jun 2012 10:09:35 -0700\", \"id\": 1039, \"is_full_user_list\": false, \"name\": \"Adam Chandler\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/1/\", \"resource_uri\": \"/api/v1/customer/1039/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}]}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sat, 16 Mar 2013 16:20:21 GMT
|
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
recorded_with: VCR 2.4.0
|
3
|
+
http_interactions:
|
4
|
+
- request:
|
5
|
+
method: get
|
6
|
+
uri: https://admin-dev.mailroute.net/api/v1/customer/?reseller=4
|
7
|
+
body:
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- identity
|
14
|
+
Authorization:
|
15
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx/1.2.6
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Vary:
|
28
|
+
- Accept, Cookie
|
29
|
+
- Accept-Encoding
|
30
|
+
Cache-Control:
|
31
|
+
- no-cache
|
32
|
+
Content-Type:
|
33
|
+
- application/json; charset=utf-8
|
34
|
+
Date:
|
35
|
+
- Sat, 16 Mar 2013 16:23:42 GMT
|
36
|
+
Transfer-Encoding:
|
37
|
+
- chunked
|
38
|
+
body:
|
39
|
+
string: "{\"meta\": {\"limit\": 20, \"next\": null, \"offset\": 0, \"previous\": null, \"total_count\": 10}, \"objects\": [{\"absolute_url\": \"/customer/2341/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/2135/\", \"created_at\": \"Sat, 16 Mar 2013 08:18:30 -0700\", \"id\": 2341, \"is_full_user_list\": false, \"name\": \"A New Customer\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/4/\", \"resource_uri\": \"/api/v1/customer/2341/\", \"updated_at\": \"Sat, 16 Mar 2013 08:18:30 -0700\"}, {\"absolute_url\": \"/customer/2348/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/2142/\", \"created_at\": \"Sat, 16 Mar 2013 08:36:13 -0700\", \"id\": 2348, \"is_full_user_list\": false, \"name\": \"dNew Cusxtsdomdewr3r\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/4/\", \"resource_uri\": \"/api/v1/customer/2348/\", \"updated_at\": \"Sat, 16 Mar 2013 08:36:14 -0700\"}, {\"absolute_url\": \"/customer/6/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/1403/\", \"created_at\": \"Thu, 7 Jun 2012 08:24:37 -0700\", \"id\": 6, \"is_full_user_list\": false, \"name\": \"NE Ohio Web Services\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/4/\", \"resource_uri\": \"/api/v1/customer/6/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:24 -0700\"}, {\"absolute_url\": \"/customer/2343/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/2137/\", \"created_at\": \"Sat, 16 Mar 2013 08:24:10 -0700\", \"id\": 2343, \"is_full_user_list\": false, \"name\": \"New Cust0mer\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/4/\", \"resource_uri\": \"/api/v1/customer/2343/\", \"updated_at\": \"Sat, 16 Mar 2013 08:24:10 -0700\"}, {\"absolute_url\": \"/customer/2345/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/2139/\", \"created_at\": \"Sat, 16 Mar 2013 08:31:50 -0700\", \"id\": 2345, \"is_full_user_list\": false, \"name\": \"New Custdomewr3r\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/4/\", \"resource_uri\": \"/api/v1/customer/2345/\", \"updated_at\": \"Sat, 16 Mar 2013 08:31:51 -0700\"}, {\"absolute_url\": \"/customer/2344/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/2138/\", \"created_at\": \"Sat, 16 Mar 2013 08:31:02 -0700\", \"id\": 2344, \"is_full_user_list\": false, \"name\": \"New Custom3r\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/4/\", \"resource_uri\": \"/api/v1/customer/2344/\", \"updated_at\": \"Sat, 16 Mar 2013 08:31:02 -0700\"}, {\"absolute_url\": \"/customer/2340/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/2134/\", \"created_at\": \"Sat, 16 Mar 2013 08:13:29 -0700\", \"id\": 2340, \"is_full_user_list\": false, \"name\": \"New Customer\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/4/\", \"resource_uri\": \"/api/v1/customer/2340/\", \"updated_at\": \"Sat, 16 Mar 2013 08:13:29 -0700\"}, {\"absolute_url\": \"/customer/2346/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/2140/\", \"created_at\": \"Sat, 16 Mar 2013 08:33:10 -0700\", \"id\": 2346, \"is_full_user_list\": false, \"name\": \"New Cusxtdomdewr3r\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/4/\", \"resource_uri\": \"/api/v1/customer/2346/\", \"updated_at\": \"Sat, 16 Mar 2013 08:33:10 -0700\"}, {\"absolute_url\": \"/customer/2347/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/2141/\", \"created_at\": \"Sat, 16 Mar 2013 08:33:32 -0700\", \"id\": 2347, \"is_full_user_list\": false, \"name\": \"New Cusxtsdomdewr3r\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/4/\", \"resource_uri\": \"/api/v1/customer/2347/\", \"updated_at\": \"Sat, 16 Mar 2013 08:33:33 -0700\"}, {\"absolute_url\": \"/customer/2342/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/2136/\", \"created_at\": \"Sat, 16 Mar 2013 08:19:52 -0700\", \"id\": 2342, \"is_full_user_list\": false, \"name\": \"The New Customer\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/4/\", \"resource_uri\": \"/api/v1/customer/2342/\", \"updated_at\": \"Sat, 16 Mar 2013 08:19:52 -0700\"}]}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sat, 16 Mar 2013 16:23:43 GMT
|
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
recorded_with: VCR 2.4.0
|
3
|
+
http_interactions:
|
4
|
+
- request:
|
5
|
+
method: get
|
6
|
+
uri: https://admin-dev.mailroute.net/api/v1/customer/1300/
|
7
|
+
body:
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- identity
|
14
|
+
Authorization:
|
15
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx/1.2.6
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Vary:
|
28
|
+
- Accept, Cookie
|
29
|
+
- Accept-Encoding
|
30
|
+
Cache-Control:
|
31
|
+
- no-cache
|
32
|
+
Content-Type:
|
33
|
+
- application/json; charset=utf-8
|
34
|
+
Date:
|
35
|
+
- Sat, 16 Mar 2013 16:11:19 GMT
|
36
|
+
Transfer-Encoding:
|
37
|
+
- chunked
|
38
|
+
body:
|
39
|
+
string: "{\"absolute_url\": \"/customer/1300/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/84/\", \"created_at\": \"Fri, 26 Oct 2012 04:18:42 -0700\", \"id\": 1300, \"is_full_user_list\": false, \"name\": \"111testCustomer111cc\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/51/\", \"resource_uri\": \"/api/v1/customer/1300/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sat, 16 Mar 2013 16:11:19 GMT
|
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
recorded_with: VCR 2.4.0
|
3
|
+
http_interactions:
|
4
|
+
- request:
|
5
|
+
method: get
|
6
|
+
uri: https://admin-dev.mailroute.net/api/v1/customer/1300/
|
7
|
+
body:
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- identity
|
14
|
+
Authorization:
|
15
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx/1.2.6
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Vary:
|
28
|
+
- Accept, Cookie
|
29
|
+
- Accept-Encoding
|
30
|
+
Cache-Control:
|
31
|
+
- no-cache
|
32
|
+
Content-Type:
|
33
|
+
- application/json; charset=utf-8
|
34
|
+
Date:
|
35
|
+
- Sat, 16 Mar 2013 16:11:21 GMT
|
36
|
+
Transfer-Encoding:
|
37
|
+
- chunked
|
38
|
+
body:
|
39
|
+
string: "{\"absolute_url\": \"/customer/1300/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/84/\", \"created_at\": \"Fri, 26 Oct 2012 04:18:42 -0700\", \"id\": 1300, \"is_full_user_list\": false, \"name\": \"111testCustomer111cc\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/51/\", \"resource_uri\": \"/api/v1/customer/1300/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sat, 16 Mar 2013 16:11:21 GMT
|
data/spec/vcr_cassettes/Mailroute_Customer/_reseller/should_return_the_customer_s_reseller.yml
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
---
|
2
|
+
recorded_with: VCR 2.4.0
|
3
|
+
http_interactions:
|
4
|
+
- request:
|
5
|
+
method: get
|
6
|
+
uri: https://admin-dev.mailroute.net/api/v1/customer/2341/
|
7
|
+
body:
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- identity
|
14
|
+
Authorization:
|
15
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx/1.2.6
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Vary:
|
28
|
+
- Accept, Cookie
|
29
|
+
- Accept-Encoding
|
30
|
+
Cache-Control:
|
31
|
+
- no-cache
|
32
|
+
Content-Type:
|
33
|
+
- application/json; charset=utf-8
|
34
|
+
Date:
|
35
|
+
- Sat, 16 Mar 2013 16:29:42 GMT
|
36
|
+
Transfer-Encoding:
|
37
|
+
- chunked
|
38
|
+
body:
|
39
|
+
string: "{\"absolute_url\": \"/customer/2341/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/2135/\", \"created_at\": \"Sat, 16 Mar 2013 08:18:30 -0700\", \"id\": 2341, \"is_full_user_list\": false, \"name\": \"A New Customer\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/4/\", \"resource_uri\": \"/api/v1/customer/2341/\", \"updated_at\": \"Sat, 16 Mar 2013 08:18:30 -0700\"}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sat, 16 Mar 2013 16:29:43 GMT
|
42
|
+
- request:
|
43
|
+
method: get
|
44
|
+
uri: https://admin-dev.mailroute.net/api/v1/reseller/4/
|
45
|
+
body:
|
46
|
+
string: ""
|
47
|
+
headers:
|
48
|
+
Accept:
|
49
|
+
- application/json
|
50
|
+
Accept-Encoding:
|
51
|
+
- identity
|
52
|
+
Authorization:
|
53
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
54
|
+
User-Agent:
|
55
|
+
- Ruby
|
56
|
+
response:
|
57
|
+
status:
|
58
|
+
code: 200
|
59
|
+
message: OK
|
60
|
+
headers:
|
61
|
+
Server:
|
62
|
+
- nginx/1.2.6
|
63
|
+
Connection:
|
64
|
+
- keep-alive
|
65
|
+
Vary:
|
66
|
+
- Accept, Cookie
|
67
|
+
- Accept-Encoding
|
68
|
+
Cache-Control:
|
69
|
+
- no-cache
|
70
|
+
Content-Type:
|
71
|
+
- application/json; charset=utf-8
|
72
|
+
Date:
|
73
|
+
- Sat, 16 Mar 2013 16:29:44 GMT
|
74
|
+
Transfer-Encoding:
|
75
|
+
- chunked
|
76
|
+
body:
|
77
|
+
string: "{\"absolute_url\": \"/reseller/4/\", \"allow_branding\": false, \"allow_customer_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/52/\", \"created_at\": \"Thu, 7 Jun 2012 08:24:36 -0700\", \"id\": 4, \"name\": \"NE Ohio Web Services\", \"resource_uri\": \"/api/v1/reseller/4/\", \"updated_at\": \"Sat, 16 Mar 2013 08:36:14 -0700\"}"
|
78
|
+
http_version:
|
79
|
+
recorded_at: Sat, 16 Mar 2013 16:29:44 GMT
|
data/spec/vcr_cassettes/Mailroute_Customer/basic_operations/should_perform_basic_read_operations.yml
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
recorded_with: VCR 2.4.0
|
3
|
+
http_interactions:
|
4
|
+
- request:
|
5
|
+
method: get
|
6
|
+
uri: https://admin-dev.mailroute.net/api/v1/customer/?limit=3&offset=20&q%5Bname%5D=e
|
7
|
+
body:
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- identity
|
14
|
+
Authorization:
|
15
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx/1.2.1
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Vary:
|
28
|
+
- Accept, Cookie
|
29
|
+
- Accept-Encoding
|
30
|
+
Cache-Control:
|
31
|
+
- no-cache
|
32
|
+
Content-Type:
|
33
|
+
- application/json; charset=utf-8
|
34
|
+
Date:
|
35
|
+
- Sun, 03 Mar 2013 16:09:25 GMT
|
36
|
+
Transfer-Encoding:
|
37
|
+
- chunked
|
38
|
+
body:
|
39
|
+
string: "{\"meta\": {\"limit\": 3, \"next\": \"/api/v1/customer/?q%5Bname%5D=e&limit=3&offset=23\", \"offset\": 20, \"previous\": \"/api/v1/customer/?q%5Bname%5D=e&limit=3&offset=17\", \"total_count\": 1746}, \"objects\": [{\"absolute_url\": \"/customer/1671/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/1647/\", \"created_at\": \"Tue, 26 Feb 2013 04:15:43 -0800\", \"id\": 1671, \"is_full_user_list\": false, \"name\": \"98f8ae40786dca212f63dea8ee2fb0c2\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/4/\", \"resource_uri\": \"/api/v1/customer/1671/\", \"updated_at\": \"Tue, 26 Feb 2013 04:15:43 -0800\"}, {\"absolute_url\": \"/customer/34/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/85/\", \"created_at\": \"Thu, 7 Jun 2012 15:25:54 -0700\", \"id\": 34, \"is_full_user_list\": false, \"name\": \"A&E Tax Service\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/1/\", \"resource_uri\": \"/api/v1/customer/34/\", \"updated_at\": \"Fri, 22 Feb 2013 15:29:20 -0800\"}, {\"absolute_url\": \"/customer/1690/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/1757/\", \"created_at\": \"Tue, 26 Feb 2013 14:43:41 -0800\", \"id\": 1690, \"is_full_user_list\": false, \"name\": \"a30d1cd867ffff56724d2c1cca1e7d91\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/4/\", \"resource_uri\": \"/api/v1/customer/1690/\", \"updated_at\": \"Tue, 26 Feb 2013 14:43:41 -0800\"}]}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sun, 03 Mar 2013 16:09:25 GMT
|
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
recorded_with: VCR 2.4.0
|
3
|
+
http_interactions:
|
4
|
+
- request:
|
5
|
+
method: get
|
6
|
+
uri: https://admin-dev.mailroute.net/api/v1/customer/?q=e
|
7
|
+
body:
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- identity
|
14
|
+
Authorization:
|
15
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx/1.2.6
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Vary:
|
28
|
+
- Accept, Cookie
|
29
|
+
- Accept-Encoding
|
30
|
+
Cache-Control:
|
31
|
+
- no-cache
|
32
|
+
Content-Type:
|
33
|
+
- application/json; charset=utf-8
|
34
|
+
Date:
|
35
|
+
- Sat, 30 Mar 2013 15:51:43 GMT
|
36
|
+
Transfer-Encoding:
|
37
|
+
- chunked
|
38
|
+
body:
|
39
|
+
string: "{\"meta\": {\"limit\": 20, \"next\": \"/api/v1/customer/?q=e&limit=20&offset=20\", \"offset\": 0, \"previous\": null, \"total_count\": 1592}, \"objects\": [{\"absolute_url\": \"/customer/1300/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/84/\", \"created_at\": \"Fri, 26 Oct 2012 04:18:42 -0700\", \"id\": 1300, \"is_full_user_list\": false, \"name\": \"111testCustomer111cc\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/51/\", \"resource_uri\": \"/api/v1/customer/1300/\", \"updated_at\": \"Fri, 29 Mar 2013 11:43:12 -0700\"}, {\"absolute_url\": \"/customer/1220/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/86/\", \"created_at\": \"Thu, 13 Sep 2012 03:35:25 -0700\", \"id\": 1220, \"is_full_user_list\": false, \"name\": \"22DELME2\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/1/\", \"resource_uri\": \"/api/v1/customer/1220/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/1444/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/87/\", \"created_at\": \"Wed, 19 Dec 2012 00:38:48 -0800\", \"id\": 1444, \"is_full_user_list\": false, \"name\": \"233mitchell.com\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/1/\", \"resource_uri\": \"/api/v1/customer/1444/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/2099/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/92/\", \"created_at\": \"Wed, 6 Mar 2013 06:46:14 -0800\", \"id\": 2099, \"is_full_user_list\": false, \"name\": \"A Broader View\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/86/\", \"resource_uri\": \"/api/v1/customer/2099/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/2341/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/2135/\", \"created_at\": \"Sat, 16 Mar 2013 08:18:30 -0700\", \"id\": 2341, \"is_full_user_list\": false, \"name\": \"A New Customer\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/4/\", \"resource_uri\": \"/api/v1/customer/2341/\", \"updated_at\": \"Thu, 21 Mar 2013 12:13:27 -0700\"}, {\"absolute_url\": \"/customer/34/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/93/\", \"created_at\": \"Thu, 7 Jun 2012 08:25:54 -0700\", \"id\": 34, \"is_full_user_list\": false, \"name\": \"A&E Tax Service\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/1/\", \"resource_uri\": \"/api/v1/customer/34/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/1675/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/94/\", \"created_at\": \"Tue, 26 Feb 2013 00:19:57 -0800\", \"id\": 1675, \"is_full_user_list\": false, \"name\": \"a-1sewerkc.com\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/84/\", \"resource_uri\": \"/api/v1/customer/1675/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/13/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/97/\", \"created_at\": \"Thu, 7 Jun 2012 08:24:57 -0700\", \"id\": 13, \"is_full_user_list\": false, \"name\": \"Aaron Cake\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/1/\", \"resource_uri\": \"/api/v1/customer/13/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/15/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/98/\", \"created_at\": \"Thu, 7 Jun 2012 08:25:03 -0700\", \"id\": 15, \"is_full_user_list\": false, \"name\": \"Abaco Insurance\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/1/\", \"resource_uri\": \"/api/v1/customer/15/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/17/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/100/\", \"created_at\": \"Thu, 7 Jun 2012 08:25:16 -0700\", \"id\": 17, \"is_full_user_list\": false, \"name\": \"abernook.com\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/1/\", \"resource_uri\": \"/api/v1/customer/17/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/1865/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/102/\", \"created_at\": \"Wed, 6 Mar 2013 06:40:26 -0800\", \"id\": 1865, \"is_full_user_list\": false, \"name\": \"Access Hardware\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/86/\", \"resource_uri\": \"/api/v1/customer/1865/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/1570/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/103/\", \"created_at\": \"Wed, 30 Jan 2013 05:09:38 -0800\", \"id\": 1570, \"is_full_user_list\": false, \"name\": \"Accountants Edge Software Solutions\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/21/\", \"resource_uri\": \"/api/v1/customer/1570/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/20/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/104/\", \"created_at\": \"Thu, 7 Jun 2012 08:25:21 -0700\", \"id\": 20, \"is_full_user_list\": false, \"name\": \"ACG Los Angeles\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/2/\", \"resource_uri\": \"/api/v1/customer/20/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/1221/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/105/\", \"created_at\": \"Sat, 15 Sep 2012 07:23:30 -0700\", \"id\": 1221, \"is_full_user_list\": false, \"name\": \"ACGLA Conference\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/2/\", \"resource_uri\": \"/api/v1/customer/1221/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/22/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/106/\", \"created_at\": \"Thu, 7 Jun 2012 08:25:24 -0700\", \"id\": 22, \"is_full_user_list\": false, \"name\": \"achoo! ALLERGY & AIR Products, Inc.\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/1/\", \"resource_uri\": \"/api/v1/customer/22/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/23/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/107/\", \"created_at\": \"Thu, 7 Jun 2012 08:25:35 -0700\", \"id\": 23, \"is_full_user_list\": false, \"name\": \"ACI Insure\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/1/\", \"resource_uri\": \"/api/v1/customer/23/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/1786/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/108/\", \"created_at\": \"Wed, 6 Mar 2013 06:38:39 -0800\", \"id\": 1786, \"is_full_user_list\": false, \"name\": \"Acme Development LLC\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/86/\", \"resource_uri\": \"/api/v1/customer/1786/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/1866/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/109/\", \"created_at\": \"Wed, 6 Mar 2013 06:40:27 -0800\", \"id\": 1866, \"is_full_user_list\": false, \"name\": \"Acme Security\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/86/\", \"resource_uri\": \"/api/v1/customer/1866/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/25/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/110/\", \"created_at\": \"Thu, 7 Jun 2012 08:25:40 -0700\", \"id\": 25, \"is_full_user_list\": false, \"name\": \"acorndevelopments.ca\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/1/\", \"resource_uri\": \"/api/v1/customer/25/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}, {\"absolute_url\": \"/customer/7/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/111/\", \"created_at\": \"Thu, 7 Jun 2012 08:24:41 -0700\", \"id\": 7, \"is_full_user_list\": false, \"name\": \"ACS Wireless\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/1/\", \"resource_uri\": \"/api/v1/customer/7/\", \"updated_at\": \"Tue, 12 Mar 2013 20:21:14 -0700\"}]}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sat, 30 Mar 2013 15:51:43 GMT
|
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
recorded_with: VCR 2.4.0
|
3
|
+
http_interactions:
|
4
|
+
- request:
|
5
|
+
method: get
|
6
|
+
uri: https://admin-dev.mailroute.net/api/v1/customer/?q=xdfasdfsdfg
|
7
|
+
body:
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- identity
|
14
|
+
Authorization:
|
15
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx/1.2.6
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Vary:
|
28
|
+
- Accept, Cookie
|
29
|
+
- Accept-Encoding
|
30
|
+
Cache-Control:
|
31
|
+
- no-cache
|
32
|
+
Content-Type:
|
33
|
+
- application/json; charset=utf-8
|
34
|
+
Date:
|
35
|
+
- Sat, 30 Mar 2013 15:51:45 GMT
|
36
|
+
Transfer-Encoding:
|
37
|
+
- chunked
|
38
|
+
body:
|
39
|
+
string: "{\"meta\": {\"limit\": 20, \"next\": null, \"offset\": 0, \"previous\": null, \"total_count\": 0}, \"objects\": []}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sat, 30 Mar 2013 15:51:45 GMT
|
data/spec/vcr_cassettes/Mailroute_Customer/total_count/should_return_total_count_of_customers.yml
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
recorded_with: VCR 2.4.0
|
3
|
+
http_interactions:
|
4
|
+
- request:
|
5
|
+
method: get
|
6
|
+
uri: https://admin-dev.mailroute.net/api/v1/customer/?limit=1
|
7
|
+
body:
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- identity
|
14
|
+
Authorization:
|
15
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx/1.2.6
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Vary:
|
28
|
+
- Accept, Cookie
|
29
|
+
- Accept-Encoding
|
30
|
+
Cache-Control:
|
31
|
+
- no-cache
|
32
|
+
Content-Type:
|
33
|
+
- application/json; charset=utf-8
|
34
|
+
Date:
|
35
|
+
- Sat, 30 Mar 2013 16:01:33 GMT
|
36
|
+
Transfer-Encoding:
|
37
|
+
- chunked
|
38
|
+
body:
|
39
|
+
string: "{\"meta\": {\"limit\": 1, \"next\": \"/api/v1/customer/?limit=1&offset=1\", \"offset\": 0, \"previous\": null, \"total_count\": 2059}, \"objects\": [{\"absolute_url\": \"/customer/1300/\", \"allow_branding\": false, \"branding_info\": \"/api/v1/brandinginfo/84/\", \"created_at\": \"Fri, 26 Oct 2012 04:18:42 -0700\", \"id\": 1300, \"is_full_user_list\": false, \"name\": \"111testCustomer111cc\", \"reported_user_count\": null, \"reseller\": \"/api/v1/reseller/51/\", \"resource_uri\": \"/api/v1/customer/1300/\", \"updated_at\": \"Fri, 29 Mar 2013 11:43:12 -0700\"}]}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sat, 30 Mar 2013 16:01:34 GMT
|