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/email_account/?domain=1198&localpart=2bill
|
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, 23 Mar 2013 19:36:11 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\": \"/user/25396/\", \"aliases\": \"notifications-2bill\", \"change_pwd\": null, \"contact\": null, \"create_opt\": null, \"created_at\": \"Wed, 19 Dec 2012 01:13:49 -0800\", \"domain\": \"/api/v1/domain/1198/\", \"domain_name\": \"mailroute.net\", \"id\": 25396, \"localpart\": \"2bill\", \"notification_task\": \"/api/v1/notification_account_task/28957/\", \"policy\": \"/api/v1/policy_user/28999/\", \"priority\": 8, \"resource_uri\": \"/api/v1/email_account/25396/\", \"updated_at\": \"Wed, 16 Jan 2013 09:08:35 -0800\"}]}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sat, 23 Mar 2013 19:36:11 GMT
|
@@ -0,0 +1,171 @@
|
|
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/email_account/?domain=mailroute.net&localpart=2bill
|
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: 400
|
21
|
+
message: BAD REQUEST
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx/1.2.6
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Vary:
|
28
|
+
- Cookie
|
29
|
+
Content-Type:
|
30
|
+
- text/html; charset=utf-8
|
31
|
+
Date:
|
32
|
+
- Sat, 23 Mar 2013 19:36:35 GMT
|
33
|
+
Transfer-Encoding:
|
34
|
+
- chunked
|
35
|
+
body:
|
36
|
+
string: Invalid resource lookup data provided (mismatched type).
|
37
|
+
http_version:
|
38
|
+
recorded_at: Sat, 23 Mar 2013 19:36:35 GMT
|
39
|
+
- request:
|
40
|
+
method: get
|
41
|
+
uri: https://admin-dev.mailroute.net/api/v1/domain/mailroute.net/
|
42
|
+
body:
|
43
|
+
string: ""
|
44
|
+
headers:
|
45
|
+
Accept:
|
46
|
+
- application/json
|
47
|
+
Accept-Encoding:
|
48
|
+
- identity
|
49
|
+
Authorization:
|
50
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
51
|
+
User-Agent:
|
52
|
+
- Ruby
|
53
|
+
response:
|
54
|
+
status:
|
55
|
+
code: 404
|
56
|
+
message: NOT FOUND
|
57
|
+
headers:
|
58
|
+
Server:
|
59
|
+
- nginx/1.2.6
|
60
|
+
Connection:
|
61
|
+
- keep-alive
|
62
|
+
Vary:
|
63
|
+
- Accept-Encoding
|
64
|
+
- Cookie
|
65
|
+
Content-Type:
|
66
|
+
- text/html; charset=utf-8
|
67
|
+
Date:
|
68
|
+
- Sat, 23 Mar 2013 19:37:48 GMT
|
69
|
+
Transfer-Encoding:
|
70
|
+
- chunked
|
71
|
+
body:
|
72
|
+
string: |-
|
73
|
+
<!doctype html>
|
74
|
+
<title>not found</title>
|
75
|
+
|
76
|
+
<style>
|
77
|
+
body { text-align: center;}
|
78
|
+
h1 { font-size: 50px; }
|
79
|
+
body { font: 20px Constantia, 'Hoefler Text', "Adobe Caslon Pro", Baskerville, Georgia, Times, serif; color: #999; text-shadow: 2px 2px 2px rgba(200, 200, 200, 0.5); }
|
80
|
+
::-moz-selection{ background:#FF5E99; color:#fff; }
|
81
|
+
::selection { background:#FF5E99; color:#fff; }
|
82
|
+
details { display:block; }
|
83
|
+
a { color: rgb(36, 109, 56); text-decoration:none; }
|
84
|
+
a:hover { color: rgb(96, 73, 141) ; text-shadow: 2px 2px 2px rgba(36, 109, 56, 0.5); }
|
85
|
+
span[frown] { transform: rotate(90deg); display:inline-block; color: #bbb; }
|
86
|
+
</style>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
<details>
|
91
|
+
<summary><h1>Not found</h1></summary>
|
92
|
+
<p><span frown>:(</span></p>
|
93
|
+
</details>
|
94
|
+
http_version:
|
95
|
+
recorded_at: Sat, 23 Mar 2013 19:37:48 GMT
|
96
|
+
- request:
|
97
|
+
method: get
|
98
|
+
uri: https://admin-dev.mailroute.net/api/v1/domain/?name=mailroute.net
|
99
|
+
body:
|
100
|
+
string: ""
|
101
|
+
headers:
|
102
|
+
Accept:
|
103
|
+
- application/json
|
104
|
+
Accept-Encoding:
|
105
|
+
- identity
|
106
|
+
Authorization:
|
107
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
108
|
+
User-Agent:
|
109
|
+
- Ruby
|
110
|
+
response:
|
111
|
+
status:
|
112
|
+
code: 200
|
113
|
+
message: OK
|
114
|
+
headers:
|
115
|
+
Server:
|
116
|
+
- nginx/1.2.6
|
117
|
+
Connection:
|
118
|
+
- keep-alive
|
119
|
+
Vary:
|
120
|
+
- Accept, Cookie
|
121
|
+
- Accept-Encoding
|
122
|
+
Cache-Control:
|
123
|
+
- no-cache
|
124
|
+
Content-Type:
|
125
|
+
- application/json; charset=utf-8
|
126
|
+
Date:
|
127
|
+
- Sat, 23 Mar 2013 19:48:32 GMT
|
128
|
+
Transfer-Encoding:
|
129
|
+
- chunked
|
130
|
+
body:
|
131
|
+
string: "{\"meta\": {\"limit\": 20, \"next\": null, \"offset\": 0, \"previous\": null, \"total_count\": 1}, \"objects\": [{\"absolute_url\": \"/domain/1198/\", \"active\": true, \"created_at\": \"Thu, 7 Jun 2012 09:25:51 -0700\", \"customer\": \"/api/v1/customer/642/\", \"deliveryport\": 25, \"hold_email\": false, \"id\": 1198, \"name\": \"mailroute.net\", \"notification_task\": \"/api/v1/notification_domain_task/9931/\", \"outbound_enabled\": true, \"policy\": \"/api/v1/policy_domain/9932/\", \"resource_uri\": \"/api/v1/domain/1198/\", \"updated_at\": \"Tue, 23 Oct 2012 04:24:55 -0700\", \"userlist_complete\": true}]}"
|
132
|
+
http_version:
|
133
|
+
recorded_at: Sat, 23 Mar 2013 19:48:32 GMT
|
134
|
+
- request:
|
135
|
+
method: get
|
136
|
+
uri: https://admin-dev.mailroute.net/api/v1/email_account/?domain=1198&localpart=2bill
|
137
|
+
body:
|
138
|
+
string: ""
|
139
|
+
headers:
|
140
|
+
Accept:
|
141
|
+
- application/json
|
142
|
+
Accept-Encoding:
|
143
|
+
- identity
|
144
|
+
Authorization:
|
145
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
146
|
+
User-Agent:
|
147
|
+
- Ruby
|
148
|
+
response:
|
149
|
+
status:
|
150
|
+
code: 200
|
151
|
+
message: OK
|
152
|
+
headers:
|
153
|
+
Server:
|
154
|
+
- nginx/1.2.6
|
155
|
+
Connection:
|
156
|
+
- keep-alive
|
157
|
+
Vary:
|
158
|
+
- Accept, Cookie
|
159
|
+
- Accept-Encoding
|
160
|
+
Cache-Control:
|
161
|
+
- no-cache
|
162
|
+
Content-Type:
|
163
|
+
- application/json; charset=utf-8
|
164
|
+
Date:
|
165
|
+
- Sat, 23 Mar 2013 19:48:33 GMT
|
166
|
+
Transfer-Encoding:
|
167
|
+
- chunked
|
168
|
+
body:
|
169
|
+
string: "{\"meta\": {\"limit\": 20, \"next\": null, \"offset\": 0, \"previous\": null, \"total_count\": 1}, \"objects\": [{\"absolute_url\": \"/user/25396/\", \"aliases\": \"notifications-2bill\", \"change_pwd\": null, \"contact\": null, \"create_opt\": null, \"created_at\": \"Wed, 19 Dec 2012 01:13:49 -0800\", \"domain\": \"/api/v1/domain/1198/\", \"domain_name\": \"mailroute.net\", \"id\": 25396, \"localpart\": \"2bill\", \"notification_task\": \"/api/v1/notification_account_task/28957/\", \"policy\": \"/api/v1/policy_user/28999/\", \"priority\": 8, \"resource_uri\": \"/api/v1/email_account/25396/\", \"updated_at\": \"Wed, 16 Jan 2013 09:08:35 -0800\"}]}"
|
170
|
+
http_version:
|
171
|
+
recorded_at: Sat, 23 Mar 2013 19:48:33 GMT
|
@@ -0,0 +1,78 @@
|
|
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/email_account/53282/
|
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
|
+
- Thu, 28 Mar 2013 18:49:40 GMT
|
36
|
+
Transfer-Encoding:
|
37
|
+
- chunked
|
38
|
+
body:
|
39
|
+
string: "{\"absolute_url\": \"/user/53282/\", \"aliases\": \"\", \"change_pwd\": null, \"contact\": \"/api/v1/contact_email_account/1654/\", \"create_opt\": null, \"created_at\": \"Sat, 23 Mar 2013 13:07:09 -0700\", \"domain\": \"/api/v1/domain/4555/\", \"domain_name\": \"apapap.example.com\", \"id\": 53282, \"localpart\": \"sales\", \"notification_task\": \"/api/v1/notification_account_task/57820/\", \"policy\": \"/api/v1/policy_user/57887/\", \"priority\": 8, \"resource_uri\": \"/api/v1/email_account/53282/\", \"updated_at\": \"Sat, 23 Mar 2013 13:37:03 -0700\"}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Thu, 28 Mar 2013 18:49:40 GMT
|
42
|
+
- request:
|
43
|
+
method: put
|
44
|
+
uri: https://admin-dev.mailroute.net/api/v1/email_account/53282/
|
45
|
+
body:
|
46
|
+
string: "{\"absolute_url\":\"/user/53282/\",\"aliases\":\"\",\"change_pwd\":null,\"contact\":\"/api/v1/contact_email_account/1654/\",\"create_opt\":null,\"created_at\":\"Sat, 23 Mar 2013 13:07:09 -0700\",\"domain\":\"/api/v1/domain/4555/\",\"domain_name\":\"apapap.example.com\",\"id\":53282,\"localpart\":\"sales\",\"notification_task\":\"/api/v1/notification_account_task/57820/\",\"password\":\"new_password\",\"policy\":\"/api/v1/policy_user/57887/\",\"priority\":8,\"resource_uri\":\"/api/v1/email_account/53282/\",\"updated_at\":\"Sat, 23 Mar 2013 13:37:03 -0700\"}"
|
47
|
+
headers:
|
48
|
+
Accept:
|
49
|
+
- "*/*"
|
50
|
+
Accept-Encoding:
|
51
|
+
- identity
|
52
|
+
Content-Type:
|
53
|
+
- application/json
|
54
|
+
Authorization:
|
55
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
56
|
+
User-Agent:
|
57
|
+
- Ruby
|
58
|
+
response:
|
59
|
+
status:
|
60
|
+
code: 400
|
61
|
+
message: BAD REQUEST
|
62
|
+
headers:
|
63
|
+
Server:
|
64
|
+
- nginx/1.2.6
|
65
|
+
Connection:
|
66
|
+
- keep-alive
|
67
|
+
Vary:
|
68
|
+
- Cookie
|
69
|
+
Content-Type:
|
70
|
+
- application/json; charset=utf-8
|
71
|
+
Date:
|
72
|
+
- Thu, 28 Mar 2013 18:49:45 GMT
|
73
|
+
Transfer-Encoding:
|
74
|
+
- chunked
|
75
|
+
body:
|
76
|
+
string: "{\"email_account\": {\"__all__\": [\"Passwords don`t match\"]}}"
|
77
|
+
http_version:
|
78
|
+
recorded_at: Thu, 28 Mar 2013 18:49:45 GMT
|
@@ -0,0 +1,194 @@
|
|
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/email_account/53282/
|
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, 23 Mar 2013 20:47:18 GMT
|
36
|
+
Transfer-Encoding:
|
37
|
+
- chunked
|
38
|
+
body:
|
39
|
+
string: "{\"absolute_url\": \"/user/53282/\", \"aliases\": \"\", \"change_pwd\": null, \"contact\": \"/api/v1/contact_email_account/1654/\", \"create_opt\": null, \"created_at\": \"Sat, 23 Mar 2013 13:07:09 -0700\", \"domain\": \"/api/v1/domain/4555/\", \"domain_name\": \"apapap.example.com\", \"id\": 53282, \"localpart\": \"sales\", \"notification_task\": \"/api/v1/notification_account_task/57820/\", \"policy\": \"/api/v1/policy_user/57887/\", \"priority\": 8, \"resource_uri\": \"/api/v1/email_account/53282/\", \"updated_at\": \"Sat, 23 Mar 2013 13:37:03 -0700\"}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sat, 23 Mar 2013 20:47:18 GMT
|
42
|
+
- request:
|
43
|
+
method: get
|
44
|
+
uri: https://admin-dev.mailroute.net/api/v1/wblist/?email_account=53282
|
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, 23 Mar 2013 20:47:19 GMT
|
74
|
+
Transfer-Encoding:
|
75
|
+
- chunked
|
76
|
+
body:
|
77
|
+
string: "{\"meta\": {\"limit\": 20, \"next\": null, \"offset\": 0, \"previous\": null, \"total_count\": 0}, \"objects\": []}"
|
78
|
+
http_version:
|
79
|
+
recorded_at: Sat, 23 Mar 2013 20:47:19 GMT
|
80
|
+
- request:
|
81
|
+
method: get
|
82
|
+
uri: https://admin-dev.mailroute.net/api/v1/wblist/?email_account=53282&wb=b
|
83
|
+
body:
|
84
|
+
string: ""
|
85
|
+
headers:
|
86
|
+
Accept:
|
87
|
+
- application/json
|
88
|
+
Accept-Encoding:
|
89
|
+
- identity
|
90
|
+
Authorization:
|
91
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
92
|
+
User-Agent:
|
93
|
+
- Ruby
|
94
|
+
response:
|
95
|
+
status:
|
96
|
+
code: 200
|
97
|
+
message: OK
|
98
|
+
headers:
|
99
|
+
Server:
|
100
|
+
- nginx/1.2.6
|
101
|
+
Connection:
|
102
|
+
- keep-alive
|
103
|
+
Vary:
|
104
|
+
- Accept, Cookie
|
105
|
+
- Accept-Encoding
|
106
|
+
Cache-Control:
|
107
|
+
- no-cache
|
108
|
+
Content-Type:
|
109
|
+
- application/json; charset=utf-8
|
110
|
+
Date:
|
111
|
+
- Sat, 23 Mar 2013 20:47:20 GMT
|
112
|
+
Transfer-Encoding:
|
113
|
+
- chunked
|
114
|
+
body:
|
115
|
+
string: "{\"meta\": {\"limit\": 20, \"next\": null, \"offset\": 0, \"previous\": null, \"total_count\": 0}, \"objects\": []}"
|
116
|
+
http_version:
|
117
|
+
recorded_at: Sat, 23 Mar 2013 20:47:20 GMT
|
118
|
+
- request:
|
119
|
+
method: get
|
120
|
+
uri: https://admin-dev.mailroute.net/api/v1/wblist/?email_account=53282&wb=w
|
121
|
+
body:
|
122
|
+
string: ""
|
123
|
+
headers:
|
124
|
+
Accept:
|
125
|
+
- application/json
|
126
|
+
Accept-Encoding:
|
127
|
+
- identity
|
128
|
+
Authorization:
|
129
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
130
|
+
User-Agent:
|
131
|
+
- Ruby
|
132
|
+
response:
|
133
|
+
status:
|
134
|
+
code: 200
|
135
|
+
message: OK
|
136
|
+
headers:
|
137
|
+
Server:
|
138
|
+
- nginx/1.2.6
|
139
|
+
Connection:
|
140
|
+
- keep-alive
|
141
|
+
Vary:
|
142
|
+
- Accept, Cookie
|
143
|
+
- Accept-Encoding
|
144
|
+
Cache-Control:
|
145
|
+
- no-cache
|
146
|
+
Content-Type:
|
147
|
+
- application/json; charset=utf-8
|
148
|
+
Date:
|
149
|
+
- Sat, 23 Mar 2013 20:47:21 GMT
|
150
|
+
Transfer-Encoding:
|
151
|
+
- chunked
|
152
|
+
body:
|
153
|
+
string: "{\"meta\": {\"limit\": 20, \"next\": null, \"offset\": 0, \"previous\": null, \"total_count\": 0}, \"objects\": []}"
|
154
|
+
http_version:
|
155
|
+
recorded_at: Sat, 23 Mar 2013 20:47:21 GMT
|
156
|
+
- request:
|
157
|
+
method: post
|
158
|
+
uri: https://admin-dev.mailroute.net/api/v1/wblist/
|
159
|
+
body:
|
160
|
+
string: "{\"email\":\"spam@example.org\",\"email_account\":53282,\"wb\":\"b\"}"
|
161
|
+
headers:
|
162
|
+
Accept:
|
163
|
+
- "*/*"
|
164
|
+
Accept-Encoding:
|
165
|
+
- identity
|
166
|
+
Content-Type:
|
167
|
+
- application/json
|
168
|
+
Authorization:
|
169
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
170
|
+
User-Agent:
|
171
|
+
- Ruby
|
172
|
+
response:
|
173
|
+
status:
|
174
|
+
code: 500
|
175
|
+
message: INTERNAL SERVER ERROR
|
176
|
+
headers:
|
177
|
+
Server:
|
178
|
+
- nginx/1.2.6
|
179
|
+
Connection:
|
180
|
+
- keep-alive
|
181
|
+
Vary:
|
182
|
+
- Cookie
|
183
|
+
Content-Type:
|
184
|
+
- application/json; charset=utf-8
|
185
|
+
Date:
|
186
|
+
- Sat, 23 Mar 2013 20:47:23 GMT
|
187
|
+
X-Sentry-Id:
|
188
|
+
- 60a2b9c5813e4d99bf22ebf42e3ea93c$fba6f7d46ad32acdfb60bd7f8e4afb08
|
189
|
+
Transfer-Encoding:
|
190
|
+
- chunked
|
191
|
+
body:
|
192
|
+
string: "{\"error_message\": \"Sorry, this request could not be processed. Please try again later.\"}"
|
193
|
+
http_version:
|
194
|
+
recorded_at: Sat, 23 Mar 2013 20:47:23 GMT
|