lumberg 1.0.1 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +1 -1
- data/README.md +184 -70
- data/Rakefile +3 -1
- data/lib/lumberg/config.rb +19 -0
- data/lib/lumberg/cpanel/addon_domain.rb +50 -0
- data/lib/lumberg/cpanel/backups.rb +16 -0
- data/lib/lumberg/cpanel/base.rb +56 -0
- data/lib/lumberg/cpanel/box_trapper.rb +18 -0
- data/lib/lumberg/cpanel/branding.rb +89 -0
- data/lib/lumberg/cpanel/contact.rb +38 -0
- data/lib/lumberg/cpanel/cron.rb +89 -0
- data/lib/lumberg/cpanel/dns_lookup.rb +23 -0
- data/lib/lumberg/cpanel/domain_keys.rb +37 -0
- data/lib/lumberg/cpanel/domain_lookup.rb +71 -0
- data/lib/lumberg/cpanel/email.rb +522 -0
- data/lib/lumberg/cpanel/file_manager.rb +146 -0
- data/lib/lumberg/cpanel/ftp.rb +101 -0
- data/lib/lumberg/cpanel/gpg.rb +36 -0
- data/lib/lumberg/cpanel/locale.rb +15 -0
- data/lib/lumberg/cpanel/mime.rb +34 -0
- data/lib/lumberg/cpanel/mysql.rb +66 -0
- data/lib/lumberg/cpanel/mysql_db.rb +190 -0
- data/lib/lumberg/cpanel/net.rb +28 -0
- data/lib/lumberg/cpanel/park.rb +58 -0
- data/lib/lumberg/cpanel/password.rb +52 -0
- data/lib/lumberg/cpanel/password_strength.rb +63 -0
- data/lib/lumberg/cpanel/random_data.rb +25 -0
- data/lib/lumberg/cpanel/redirect.rb +44 -0
- data/lib/lumberg/cpanel/ssl.rb +220 -0
- data/lib/lumberg/cpanel/sub_domain.rb +61 -0
- data/lib/lumberg/cpanel/support.rb +29 -0
- data/lib/lumberg/cpanel/zone_edit.rb +134 -0
- data/lib/lumberg/cpanel.rb +32 -0
- data/lib/lumberg/format_whm.rb +162 -0
- data/lib/lumberg/version.rb +1 -1
- data/lib/lumberg/whm/account.rb +29 -106
- data/lib/lumberg/whm/base.rb +3 -7
- data/lib/lumberg/whm/cert.rb +88 -0
- data/lib/lumberg/whm/dns.rb +49 -77
- data/lib/lumberg/whm/reseller.rb +25 -118
- data/lib/lumberg/whm/server.rb +163 -222
- data/lib/lumberg/whm/transfer_tool.rb +165 -0
- data/lib/lumberg/whm.rb +11 -9
- data/lib/lumberg/whostmgr/base.rb +13 -0
- data/lib/lumberg/whostmgr/ssl.rb +57 -0
- data/lib/lumberg/whostmgr.rb +6 -0
- data/lib/lumberg.rb +35 -8
- data/spec/config_spec.rb +28 -0
- data/spec/cpanel/addon_domain_spec.rb +84 -0
- data/spec/cpanel/backups_spec.rb +22 -0
- data/spec/cpanel/base_spec.rb +128 -0
- data/spec/cpanel/box_trapper_spec.rb +22 -0
- data/spec/cpanel/branding_spec.rb +46 -0
- data/spec/cpanel/contact_spec.rb +50 -0
- data/spec/cpanel/cron_spec.rb +161 -0
- data/spec/cpanel/dns_lookup_spec.rb +22 -0
- data/spec/cpanel/domain_keys_spec.rb +46 -0
- data/spec/cpanel/domain_lookup_spec.rb +77 -0
- data/spec/cpanel/email_spec.rb +639 -0
- data/spec/cpanel/file_manager_spec.rb +73 -0
- data/spec/cpanel/ftp_spec.rb +71 -0
- data/spec/cpanel/gpg_spec.rb +48 -0
- data/spec/cpanel/locale_spec.rb +23 -0
- data/spec/cpanel/mime_spec.rb +0 -0
- data/spec/cpanel/mysql_db_spec.rb +119 -0
- data/spec/cpanel/mysql_spec.rb +0 -0
- data/spec/cpanel/net_spec.rb +30 -0
- data/spec/cpanel/park_spec.rb +94 -0
- data/spec/cpanel/password_spec.rb +35 -0
- data/spec/cpanel/password_strength_spec.rb +50 -0
- data/spec/cpanel/random_data_spec.rb +24 -0
- data/spec/cpanel/redirect_spec.rb +0 -0
- data/spec/cpanel/ssl_spec.rb +158 -0
- data/spec/cpanel/sub_domain_spec.rb +72 -0
- data/spec/cpanel/support_spec.rb +38 -0
- data/spec/cpanel/zone_edit_spec.rb +0 -0
- data/spec/format_whm_spec.rb +53 -0
- data/spec/sample_certs/cpanel.crt +28 -0
- data/spec/sample_certs/cpanel.key +28 -0
- data/spec/sample_certs/main.crt +27 -0
- data/spec/sample_certs/sample.crt +26 -0
- data/spec/sample_certs/sample.key +27 -0
- data/spec/spec_helper.rb +10 -3
- data/spec/support/cpanel_matchers.rb +17 -0
- data/spec/vcr_cassettes/cpanel/addon_domain/add.yml +77 -0
- data/spec/vcr_cassettes/cpanel/addon_domain/list.yml +77 -0
- data/spec/vcr_cassettes/cpanel/addon_domain/remove.yml +77 -0
- data/spec/vcr_cassettes/cpanel/backups/list.yml +40 -0
- data/spec/vcr_cassettes/cpanel/box_trapper/list.yml +40 -0
- data/spec/vcr_cassettes/cpanel/branding/list_icons.yml +40 -0
- data/spec/vcr_cassettes/cpanel/branding/list_image_types.yml +40 -0
- data/spec/vcr_cassettes/cpanel/branding/list_object_types.yml +40 -0
- data/spec/vcr_cassettes/cpanel/branding/list_pkgs.yml +40 -0
- data/spec/vcr_cassettes/cpanel/branding/list_sprites.yml +40 -0
- data/spec/vcr_cassettes/cpanel/contact/show.yml +40 -0
- data/spec/vcr_cassettes/cpanel/contact/update.yml +40 -0
- data/spec/vcr_cassettes/cpanel/cron/add.yml +77 -0
- data/spec/vcr_cassettes/cpanel/cron/edit.yml +114 -0
- data/spec/vcr_cassettes/cpanel/cron/email.yml +77 -0
- data/spec/vcr_cassettes/cpanel/cron/list.yml +77 -0
- data/spec/vcr_cassettes/cpanel/cron/remove.yml +151 -0
- data/spec/vcr_cassettes/cpanel/cron/set_email.yml +77 -0
- data/spec/vcr_cassettes/cpanel/dns_lookup/name_to_ip.yml +40 -0
- data/spec/vcr_cassettes/cpanel/domain_keys/add.yml +40 -0
- data/spec/vcr_cassettes/cpanel/domain_keys/available.yml +40 -0
- data/spec/vcr_cassettes/cpanel/domain_keys/installed.yml +40 -0
- data/spec/vcr_cassettes/cpanel/domain_keys/remove.yml +40 -0
- data/spec/vcr_cassettes/cpanel/domain_lookup/count.yml +40 -0
- data/spec/vcr_cassettes/cpanel/domain_lookup/docroot.yml +40 -0
- data/spec/vcr_cassettes/cpanel/domain_lookup/docroots.yml +40 -0
- data/spec/vcr_cassettes/cpanel/domain_lookup/document_root.yml +40 -0
- data/spec/vcr_cassettes/cpanel/domain_lookup/document_roots.yml +40 -0
- data/spec/vcr_cassettes/cpanel/domain_lookup/list.yml +40 -0
- data/spec/vcr_cassettes/cpanel/email/acceptable_encodings.yml +40 -0
- data/spec/vcr_cassettes/cpanel/email/accounts.yml +188 -0
- data/spec/vcr_cassettes/cpanel/email/add_account.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/add_filter.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/add_forwarder.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/add_mailing_list.yml +73 -0
- data/spec/vcr_cassettes/cpanel/email/add_mx.yml +40 -0
- data/spec/vcr_cassettes/cpanel/email/change_mx.yml +40 -0
- data/spec/vcr_cassettes/cpanel/email/change_password.yml +43 -0
- data/spec/vcr_cassettes/cpanel/email/check_local_delivery_local.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/check_local_delivery_remote.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/default_address.yml +40 -0
- data/spec/vcr_cassettes/cpanel/email/delete_mx.yml +40 -0
- data/spec/vcr_cassettes/cpanel/email/disk_usage.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/domains.yml +40 -0
- data/spec/vcr_cassettes/cpanel/email/domains_with_aliases.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/edit_quota.yml +112 -0
- data/spec/vcr_cassettes/cpanel/email/filters.yml +114 -0
- data/spec/vcr_cassettes/cpanel/email/forwarders.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/mail_dir.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/mail_dirs.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/mailing_lists.yml +73 -0
- data/spec/vcr_cassettes/cpanel/email/main_discard.yml +40 -0
- data/spec/vcr_cassettes/cpanel/email/mx.yml +40 -0
- data/spec/vcr_cassettes/cpanel/email/remove.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/set_default_address.yml +43 -0
- data/spec/vcr_cassettes/cpanel/email/set_mail_delivery_local.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/set_mail_delivery_remote.yml +77 -0
- data/spec/vcr_cassettes/cpanel/email/set_mx_type.yml +40 -0
- data/spec/vcr_cassettes/cpanel/file_manager/disk_usage.yml +38 -0
- data/spec/vcr_cassettes/cpanel/file_manager/list.yml +38 -0
- data/spec/vcr_cassettes/cpanel/file_manager/operate.yml +77 -0
- data/spec/vcr_cassettes/cpanel/file_manager/show.yml +40 -0
- data/spec/vcr_cassettes/cpanel/file_manager/stat.yml +38 -0
- data/spec/vcr_cassettes/cpanel/ftp/addftp.yml +43 -0
- data/spec/vcr_cassettes/cpanel/ftp/delftp.yml +43 -0
- data/spec/vcr_cassettes/cpanel/ftp/listftp.yml +43 -0
- data/spec/vcr_cassettes/cpanel/ftp/listftpsessions.yml +43 -0
- data/spec/vcr_cassettes/cpanel/ftp/listftpwithdisk.yml +95 -0
- data/spec/vcr_cassettes/cpanel/ftp/passwd.yml +43 -0
- data/spec/vcr_cassettes/cpanel/ftp/setquota.yml +43 -0
- data/spec/vcr_cassettes/cpanel/gpg/count.yml +40 -0
- data/spec/vcr_cassettes/cpanel/gpg/count_private.yml +40 -0
- data/spec/vcr_cassettes/cpanel/gpg/list.yml +40 -0
- data/spec/vcr_cassettes/cpanel/gpg/list_private.yml +40 -0
- data/spec/vcr_cassettes/cpanel/locale/show.yml +40 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/add_db.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/add_host.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/add_user.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/add_user_db.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/check_db.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/del_db.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/del_host.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/del_user.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/del_user_db.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/init_cache.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/number_of_dbs.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/repair_db.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/update_privs.yml +42 -0
- data/spec/vcr_cassettes/cpanel/net/query_hostname.yml +40 -0
- data/spec/vcr_cassettes/cpanel/net/traceroute.yml +40 -0
- data/spec/vcr_cassettes/cpanel/park/add.yml +77 -0
- data/spec/vcr_cassettes/cpanel/park/list.yml +77 -0
- data/spec/vcr_cassettes/cpanel/park/list_addon_domains.yml +77 -0
- data/spec/vcr_cassettes/cpanel/park/remove.yml +77 -0
- data/spec/vcr_cassettes/cpanel/password/digest_authentication.yml +77 -0
- data/spec/vcr_cassettes/cpanel/password/modify.yml +77 -0
- data/spec/vcr_cassettes/cpanel/password_strength/all_required_strengths.yml +43 -0
- data/spec/vcr_cassettes/cpanel/password_strength/required_strength.yml +43 -0
- data/spec/vcr_cassettes/cpanel/password_strength/strength.yml +83 -0
- data/spec/vcr_cassettes/cpanel/random_data/show.yml +40 -0
- data/spec/vcr_cassettes/cpanel/ssl/fetchcabundle.yml +40 -0
- data/spec/vcr_cassettes/cpanel/ssl/gencrt.yml +43 -0
- data/spec/vcr_cassettes/cpanel/ssl/gencsr.yml +43 -0
- data/spec/vcr_cassettes/cpanel/ssl/genkey.yml +40 -0
- data/spec/vcr_cassettes/cpanel/ssl/installssl.yml +40 -0
- data/spec/vcr_cassettes/cpanel/ssl/listcrts.yml +40 -0
- data/spec/vcr_cassettes/cpanel/ssl/listcsrs.yml +40 -0
- data/spec/vcr_cassettes/cpanel/ssl/listkeys.yml +40 -0
- data/spec/vcr_cassettes/cpanel/ssl/listsslitems.yml +40 -0
- data/spec/vcr_cassettes/cpanel/ssl/remove.yml +43 -0
- data/spec/vcr_cassettes/cpanel/ssl/showcrt.yml +38 -0
- data/spec/vcr_cassettes/cpanel/ssl/showcsr.yml +38 -0
- data/spec/vcr_cassettes/cpanel/ssl/showkey.yml +38 -0
- data/spec/vcr_cassettes/cpanel/ssl/uploadcrt.yml +40 -0
- data/spec/vcr_cassettes/cpanel/sub_domain/add.yml +77 -0
- data/spec/vcr_cassettes/cpanel/sub_domain/list.yml +77 -0
- data/spec/vcr_cassettes/cpanel/sub_domain/remove.yml +77 -0
- data/spec/vcr_cassettes/cpanel/support/contactable.yml +40 -0
- data/spec/vcr_cassettes/whm/account/accountsummary.yml +41 -29
- data/spec/vcr_cassettes/whm/account/changepackage.yml +73 -43
- data/spec/vcr_cassettes/whm/account/createacct.yml +101 -31
- data/spec/vcr_cassettes/whm/account/domainuserdata.yml +43 -29
- data/spec/vcr_cassettes/whm/account/editquota.yml +78 -57
- data/spec/vcr_cassettes/whm/account/limitbw.yml +79 -57
- data/spec/vcr_cassettes/whm/account/listaccts.yml +195 -100
- data/spec/vcr_cassettes/whm/account/listsuspended.yml +41 -29
- data/spec/vcr_cassettes/whm/account/modifyacct.yml +61 -42
- data/spec/vcr_cassettes/whm/account/myprivs.yml +41 -29
- data/spec/vcr_cassettes/whm/account/passwd.yml +44 -29
- data/spec/vcr_cassettes/whm/account/removeacct.yml +134 -57
- data/spec/vcr_cassettes/whm/account/restoreaccount.yml +310 -135
- data/spec/vcr_cassettes/whm/account/setsiteip.yml +166 -127
- data/spec/vcr_cassettes/whm/account/suspend.yml +75 -43
- data/spec/vcr_cassettes/whm/account/unsuspend.yml +46 -29
- data/spec/vcr_cassettes/whm/cert/fetch_ssl_vhosts.yml +44 -0
- data/spec/vcr_cassettes/whm/cert/fetchsslinfo.yml +38 -0
- data/spec/vcr_cassettes/whm/cert/generatessl.yml +94 -0
- data/spec/vcr_cassettes/whm/cert/installssl.yml +38 -0
- data/spec/vcr_cassettes/whm/cert/listcrts.yml +38 -0
- data/spec/vcr_cassettes/whm/dns/adddns.yml +61 -43
- data/spec/vcr_cassettes/whm/dns/addzonerecord.yml +42 -29
- data/spec/vcr_cassettes/whm/dns/dumpzone.yml +44 -29
- data/spec/vcr_cassettes/whm/dns/editzonerecord.yml +61 -43
- data/spec/vcr_cassettes/whm/dns/getzonerecord.yml +60 -43
- data/spec/vcr_cassettes/whm/dns/killdns.yml +42 -29
- data/spec/vcr_cassettes/whm/dns/listmxs.yml +23 -15
- data/spec/vcr_cassettes/whm/dns/listzones.yml +22 -15
- data/spec/vcr_cassettes/whm/dns/lookupnsip.yml +40 -29
- data/spec/vcr_cassettes/whm/dns/removezonerecord.yml +61 -43
- data/spec/vcr_cassettes/whm/dns/resetzone.yml +42 -29
- data/spec/vcr_cassettes/whm/dns/resolvedomainname.yml +40 -29
- data/spec/vcr_cassettes/whm/dns/savemxs.yml +23 -15
- data/spec/vcr_cassettes/whm/reseller/acctcounts.yml +41 -29
- data/spec/vcr_cassettes/whm/reseller/listacls.yml +22 -15
- data/spec/vcr_cassettes/whm/reseller/listresellers.yml +22 -15
- data/spec/vcr_cassettes/whm/reseller/resellerstats.yml +42 -29
- data/spec/vcr_cassettes/whm/reseller/saveacllist.yml +76 -57
- data/spec/vcr_cassettes/whm/reseller/setacls.yml +40 -29
- data/spec/vcr_cassettes/whm/reseller/setresellerips.yml +42 -28
- data/spec/vcr_cassettes/whm/reseller/setresellerlimits.yml +41 -29
- data/spec/vcr_cassettes/whm/reseller/setresellermainip.yml +59 -43
- data/spec/vcr_cassettes/whm/reseller/setresellernameservers.yml +58 -43
- data/spec/vcr_cassettes/whm/reseller/setresellerpackagelimit.yml +61 -43
- data/spec/vcr_cassettes/whm/reseller/setupreseller.yml +41 -29
- data/spec/vcr_cassettes/whm/reseller/suspendreseller.yml +75 -44
- data/spec/vcr_cassettes/whm/reseller/terminatereseller.yml +83 -46
- data/spec/vcr_cassettes/whm/reseller/unsetupreseller.yml +41 -29
- data/spec/vcr_cassettes/whm/reseller/unsuspendreseller.yml +46 -29
- data/spec/vcr_cassettes/whm/server/addip.yml +24 -15
- data/spec/vcr_cassettes/whm/server/applist.yml +22 -15
- data/spec/vcr_cassettes/whm/server/delip.yml +23 -15
- data/spec/vcr_cassettes/whm/server/disk_usage.yml +45 -0
- data/spec/vcr_cassettes/whm/server/edit_hook.yml +44 -0
- data/spec/vcr_cassettes/whm/server/gethostname.yml +22 -15
- data/spec/vcr_cassettes/whm/server/getlanglist.yml +22 -15
- data/spec/vcr_cassettes/whm/server/gettweaksetting.yml +44 -0
- data/spec/vcr_cassettes/whm/server/list_hooks.yml +44 -0
- data/spec/vcr_cassettes/whm/server/listips.yml +22 -15
- data/spec/vcr_cassettes/whm/server/loadavg.yml +26 -19
- data/spec/vcr_cassettes/whm/server/lookup_nameserver_ip.yml +44 -0
- data/spec/vcr_cassettes/whm/server/my_function.yml +59 -43
- data/spec/vcr_cassettes/whm/server/nvget.yml +22 -15
- data/spec/vcr_cassettes/whm/server/nvset.yml +22 -15
- data/spec/vcr_cassettes/whm/server/reboot.yml +22 -15
- data/spec/vcr_cassettes/whm/server/sethostname.yml +24 -15
- data/spec/vcr_cassettes/whm/server/setresolvers.yml +23 -15
- data/spec/vcr_cassettes/whm/server/settweaksetting.yml +44 -0
- data/spec/vcr_cassettes/whm/server/showbw.yml +22 -15
- data/spec/vcr_cassettes/whm/server/systemloadavg.yml +40 -29
- data/spec/vcr_cassettes/whm/server/themes.yml +38 -0
- data/spec/vcr_cassettes/whm/server/version.yml +22 -15
- data/spec/vcr_cassettes/whm/transfer_tool/check.yml +44 -0
- data/spec/vcr_cassettes/whm/transfer_tool/create.yml +72 -0
- data/spec/vcr_cassettes/whm/transfer_tool/enqueue.yml +44 -0
- data/spec/vcr_cassettes/whm/transfer_tool/pause.yml +44 -0
- data/spec/vcr_cassettes/whm/transfer_tool/show_log.yml +44 -0
- data/spec/vcr_cassettes/whm/transfer_tool/start.yml +44 -0
- data/spec/vcr_cassettes/whm/transfer_tool/status.yml +44 -0
- data/spec/vcr_cassettes/whm/transfer_tool/validate_user.yml +44 -0
- data/spec/vcr_cassettes/whostmgr/ssl/create.yml +219 -0
- data/spec/vcr_cassettes/whostmgr/ssl/remove.yml +172 -0
- data/spec/vcr_cassettes/whostmgr/ssl/remove_data.yml +179 -0
- data/spec/whm/account_spec.rb +90 -249
- data/spec/whm/base_spec.rb +3 -7
- data/spec/whm/cert_spec.rb +110 -0
- data/spec/whm/dns_spec.rb +37 -155
- data/spec/whm/reseller_spec.rb +46 -114
- data/spec/whm/server_spec.rb +142 -156
- data/spec/whm/transfer_tool_spec.rb +172 -0
- data/spec/whm/whm_spec.rb +8 -8
- data/spec/whostmgr/ssl_spec.rb +55 -0
- metadata +528 -108
- data/.gitignore +0 -10
- data/.rspec +0 -2
- data/.rvmrc +0 -49
- data/.travis.yml +0 -11
- data/lib/lumberg/whm/args.rb +0 -113
- data/lib/net_http_hacked.rb +0 -42
- data/lumberg.gemspec +0 -28
- data/spec/vcr_cassettes/whm/server/response_type.yml +0 -85
- data/spec/whm/args_spec.rb +0 -179
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
recorded_with: VCR 2.0.1
|
3
|
+
http_interactions:
|
4
|
+
- request:
|
5
|
+
method: get
|
6
|
+
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=fetchcharmaps&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg
|
7
|
+
body:
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*"
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.7
|
14
|
+
Authorization:
|
15
|
+
- WHM root:iscool
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Wed, 15 May 2013 03:15:38 GMT
|
23
|
+
Connection:
|
24
|
+
- Keep-Alive
|
25
|
+
Content-Length:
|
26
|
+
- "4741"
|
27
|
+
Server:
|
28
|
+
- cpsrvd/11.36.0.4
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset="utf-8"
|
31
|
+
Keep-Alive:
|
32
|
+
- timeout=70, max=200
|
33
|
+
X-Keep-Alive-Count:
|
34
|
+
- "1"
|
35
|
+
body:
|
36
|
+
string: |
|
37
|
+
{"cpanelresult":{"func":"fetchcharmaps","module":"Email","apiversion":2,"data":[{"map":"ansi_x3.110-1983"},{"map":"ansi_x3.4-1968"},{"map":"armscii-8"},{"map":"ascii"},{"map":"asmo_449"},{"map":"big5"},{"map":"big5-eten"},{"map":"big5-hkscs"},{"map":"bs_4730"},{"map":"bs_viewdata"},{"map":"cp10007"},{"map":"cp1125"},{"map":"cp1250"},{"map":"cp1251"},{"map":"cp1252"},{"map":"cp1253"},{"map":"cp1254"},{"map":"cp1255"},{"map":"cp1256"},{"map":"cp1257"},{"map":"cp1258"},{"map":"cp737"},{"map":"cp775"},{"map":"cp936"},{"map":"cp949"},{"map":"csa_z243.4-1985-1"},{"map":"csa_z243.4-1985-2"},{"map":"csa_z243.4-1985-gr"},{"map":"csn_369103"},{"map":"cwi"},{"map":"dec-mcs"},{"map":"din_66003"},{"map":"ds_2089"},{"map":"ebcdic-at-de"},{"map":"ebcdic-at-de-a"},{"map":"ebcdic-ca-fr"},{"map":"ebcdic-dk-no"},{"map":"ebcdic-dk-no-a"},{"map":"ebcdic-es"},{"map":"ebcdic-es-a"},{"map":"ebcdic-es-s"},{"map":"ebcdic-fi-se"},{"map":"ebcdic-fi-se-a"},{"map":"ebcdic-fr"},{"map":"ebcdic-is-friss"},{"map":"ebcdic-it"},{"map":"ebcdic-pt"},{"map":"ebcdic-uk"},{"map":"ebcdic-us"},{"map":"ecma-cyrillic"},{"map":"es"},{"map":"es2"},{"map":"euc-cn"},{"map":"euc-jisx0213"},{"map":"euc-jp"},{"map":"euc-jp-ms"},{"map":"euc-kr"},{"map":"euc-tw"},{"map":"gb18030"},{"map":"gb2312"},{"map":"gb_1988-80"},{"map":"gbk"},{"map":"georgian-academy"},{"map":"georgian-ps"},{"map":"gost_19768-74"},{"map":"greek-ccitt"},{"map":"greek7"},{"map":"greek7-old"},{"map":"gsm03.38"},{"map":"hp-roman8"},{"map":"hz"},{"map":"hz-gb-2312"},{"map":"ibm037"},{"map":"ibm038"},{"map":"ibm1004"},{"map":"ibm1026"},{"map":"ibm1047"},{"map":"ibm1124"},{"map":"ibm1129"},{"map":"ibm1132"},{"map":"ibm1133"},{"map":"ibm1160"},{"map":"ibm1161"},{"map":"ibm1162"},{"map":"ibm1163"},{"map":"ibm1164"},{"map":"ibm256"},{"map":"ibm273"},{"map":"ibm274"},{"map":"ibm275"},{"map":"ibm277"},{"map":"ibm278"},{"map":"ibm280"},{"map":"ibm281"},{"map":"ibm284"},{"map":"ibm285"},{"map":"ibm290"},{"map":"ibm297"},{"map":"ibm420"},{"map":"ibm423"},{"map":"ibm424"},{"map":"ibm437"},{"map":"ibm500"},{"map":"ibm850"},{"map":"ibm851"},{"map":"ibm852"},{"map":"ibm855"},{"map":"ibm856"},{"map":"ibm857"},{"map":"ibm860"},{"map":"ibm861"},{"map":"ibm862"},{"map":"ibm863"},{"map":"ibm864"},{"map":"ibm865"},{"map":"ibm866"},{"map":"ibm866nav"},{"map":"ibm868"},{"map":"ibm869"},{"map":"ibm870"},{"map":"ibm871"},{"map":"ibm874"},{"map":"ibm875"},{"map":"ibm880"},{"map":"ibm891"},{"map":"ibm903"},{"map":"ibm904"},{"map":"ibm905"},{"map":"ibm918"},{"map":"ibm922"},{"map":"iec_p27-1"},{"map":"inis"},{"map":"inis-8"},{"map":"inis-cyrillic"},{"map":"invariant"},{"map":"isiri-3342"},{"map":"iso-8859-1"},{"map":"iso-8859-10"},{"map":"iso-8859-11"},{"map":"iso-8859-13"},{"map":"iso-8859-14"},{"map":"iso-8859-15"},{"map":"iso-8859-16"},{"map":"iso-8859-2"},{"map":"iso-8859-3"},{"map":"iso-8859-4"},{"map":"iso-8859-5"},{"map":"iso-8859-6"},{"map":"iso-8859-7"},{"map":"iso-8859-8"},{"map":"iso-8859-9"},{"map":"iso-ir-197"},{"map":"iso-ir-209"},{"map":"iso-ir-90"},{"map":"iso_10367-box"},{"map":"iso_10646"},{"map":"iso_11548-1"},{"map":"iso_2033-1983"},{"map":"iso_5427"},{"map":"iso_5427-ext"},{"map":"iso_5428"},{"map":"iso_646.basic"},{"map":"iso_646.irv"},{"map":"iso_6937"},{"map":"iso_6937-2-25"},{"map":"iso_6937-2-add"},{"map":"iso_8859-1,gl"},{"map":"iso_8859-supp"},{"map":"it"},{"map":"jis_c6220-1969-jp"},{"map":"jis_c6220-1969-ro"},{"map":"jis_c6229-1984-a"},{"map":"jis_c6229-1984-b"},{"map":"jis_c6229-1984-b-add"},{"map":"jis_c6229-1984-hand"},{"map":"jis_c6229-1984-hand-add"},{"map":"jis_c6229-1984-kana"},{"map":"jis_x0201"},{"map":"johab"},{"map":"jus_i.b1.002"},{"map":"jus_i.b1.003-mac"},{"map":"jus_i.b1.003-serb"},{"map":"koi-8"},{"map":"koi8-r"},{"map":"koi8-t"},{"map":"koi8-u"},{"map":"ks_c_5601"},{"map":"ks_c_5601-1987"},{"map":"ksc5636"},{"map":"latin-greek"},{"map":"latin-greek-1"},{"map":"mac-cyrillic"},{"map":"mac-is"},{"map":"mac-sami"},{"map":"mac-uk"},{"map":"macintosh"},{"map":"mik"},{"map":"msz_7795.3"},{"map":"nats-dano"},{"map":"nats-dano-add"},{"map":"nats-sefi"},{"map":"nats-sefi-add"},{"map":"nc_nc00-10"},{"map":"nextstep"},{"map":"nf_z_62-010"},{"map":"nf_z_62-010_1973"},{"map":"ns_4551-1"},{"map":"ns_4551-2"},{"map":"pt"},{"map":"pt154"},{"map":"pt2"},{"map":"rk1048"},{"map":"sami"},{"map":"sami-ws2"},{"map":"sen_850200_b"},{"map":"sen_850200_c"},{"map":"shift_jis"},{"map":"shift_jisx0213"},{"map":"t.101-g2"},{"map":"t.61-7bit"},{"map":"t.61-8bit"},{"map":"tcvn5712-1"},{"map":"tis-620"},{"map":"tscii"},{"map":"unicode-1-1-utf-7"},{"map":"us-ascii"},{"map":"utf-7"},{"map":"utf-8"},{"map":"utf-8-strict"},{"map":"videotex-suppl"},{"map":"viscii"},{"map":"windows-1251"},{"map":"windows-1252"},{"map":"windows-31j"}],"event":{"result":1}}}
|
38
|
+
|
39
|
+
http_version:
|
40
|
+
recorded_at: Wed, 15 May 2013 03:10:57 GMT
|
@@ -0,0 +1,188 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=listpopswithdisk&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg
|
6
|
+
body:
|
7
|
+
string: ""
|
8
|
+
headers:
|
9
|
+
User-Agent:
|
10
|
+
- Faraday v0.8.7
|
11
|
+
Accept:
|
12
|
+
- "*/*"
|
13
|
+
Authorization:
|
14
|
+
- WHM root:iscool
|
15
|
+
response:
|
16
|
+
status:
|
17
|
+
code: 200
|
18
|
+
message: OK
|
19
|
+
headers:
|
20
|
+
Content-Type:
|
21
|
+
- text/plain; charset="utf-8"
|
22
|
+
X-Keep-Alive-Count:
|
23
|
+
- "1"
|
24
|
+
Keep-Alive:
|
25
|
+
- timeout=70, max=200
|
26
|
+
Connection:
|
27
|
+
- Keep-Alive
|
28
|
+
Content-Length:
|
29
|
+
- "2214"
|
30
|
+
Date:
|
31
|
+
- Fri, 03 May 2013 16:47:39 GMT
|
32
|
+
Server:
|
33
|
+
- cpsrvd/11.32.6.3
|
34
|
+
body:
|
35
|
+
string: |
|
36
|
+
{"cpanelresult":{"apiversion":2,"data":[{"domain":"lumberg-test.com","user":"account-test","mtime":"1367588811","diskused":0,"_diskquota":null,"email":"account-test@lumberg-test.com","diskusedpercent20":0,"diskusedpercent":0,"diskquota":"unlimited","humandiskused":"None","login":"account-test@lumberg-test.com","_diskused":"0","txtdiskquota":"unlimited","humandiskquota":"None"},{"domain":"lumberg-test.com","user":"disk-usage-test","mtime":"1367588811","diskused":0,"_diskquota":null,"email":"disk-usage-test@lumberg-test.com","diskusedpercent20":0,"diskusedpercent":0,"diskquota":"unlimited","humandiskused":"None","login":"disk-usage-test@lumberg-test.com","_diskused":"0","txtdiskquota":"unlimited","humandiskquota":"None"},{"domain":"lumberg-test.com","user":"filters-test","mtime":"1367588811","diskused":0,"_diskquota":null,"email":"filters-test@lumberg-test.com","diskusedpercent20":0,"diskusedpercent":0,"diskquota":"unlimited","humandiskused":"None","login":"filters-test@lumberg-test.com","_diskused":"0","txtdiskquota":"unlimited","humandiskquota":"None"},{"domain":"lumberg-test.com","user":"mail-dir-test","mtime":"1367588811","diskused":0,"_diskquota":null,"email":"mail-dir-test@lumberg-test.com","diskusedpercent20":0,"diskusedpercent":0,"diskquota":"unlimited","humandiskused":"None","login":"mail-dir-test@lumberg-test.com","_diskused":"0","txtdiskquota":"unlimited","humandiskquota":"None"},{"domain":"lumberg-test.com","user":"mail-dirs-test","mtime":"1367588811","diskused":0,"_diskquota":null,"email":"mail-dirs-test@lumberg-test.com","diskusedpercent20":0,"diskusedpercent":0,"diskquota":"unlimited","humandiskused":"None","login":"mail-dirs-test@lumberg-test.com","_diskused":"0","txtdiskquota":"unlimited","humandiskquota":"None"},{"domain":"lumberg-test.com","user":"test-account","mtime":"1367588811","diskused":0,"_diskquota":null,"email":"test-account@lumberg-test.com","diskusedpercent20":0,"diskusedpercent":0,"diskquota":"unlimited","humandiskused":"None","login":"test-account@lumberg-test.com","_diskused":"0","txtdiskquota":"unlimited","humandiskquota":"None"}],"postevent":{"result":1},"func":"listpopswithdisk","module":"Email","preevent":{"result":1},"event":{"result":1}}}
|
37
|
+
|
38
|
+
http_version:
|
39
|
+
recorded_at: Fri, 03 May 2013 16:47:40 GMT
|
40
|
+
- request:
|
41
|
+
method: get
|
42
|
+
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=listpops&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg
|
43
|
+
body:
|
44
|
+
string: ""
|
45
|
+
headers:
|
46
|
+
User-Agent:
|
47
|
+
- Faraday v0.8.7
|
48
|
+
Accept:
|
49
|
+
- "*/*"
|
50
|
+
Authorization:
|
51
|
+
- WHM root:iscool
|
52
|
+
response:
|
53
|
+
status:
|
54
|
+
code: 200
|
55
|
+
message: OK
|
56
|
+
headers:
|
57
|
+
Content-Type:
|
58
|
+
- text/plain; charset="utf-8"
|
59
|
+
X-Keep-Alive-Count:
|
60
|
+
- "1"
|
61
|
+
Keep-Alive:
|
62
|
+
- timeout=70, max=200
|
63
|
+
Connection:
|
64
|
+
- Keep-Alive
|
65
|
+
Content-Length:
|
66
|
+
- "695"
|
67
|
+
Date:
|
68
|
+
- Fri, 03 May 2013 16:47:40 GMT
|
69
|
+
Server:
|
70
|
+
- cpsrvd/11.32.6.3
|
71
|
+
body:
|
72
|
+
string: |
|
73
|
+
{"cpanelresult":{"event":{"result":1},"apiversion":2,"preevent":{"result":1},"data":[{"login":"filters-test@lumberg-test.com","email":"filters-test@lumberg-test.com"},{"login":"disk-usage-test@lumberg-test.com","email":"disk-usage-test@lumberg-test.com"},{"login":"account-test@lumberg-test.com","email":"account-test@lumberg-test.com"},{"login":"test-account@lumberg-test.com","email":"test-account@lumberg-test.com"},{"login":"mail-dir-test@lumberg-test.com","email":"mail-dir-test@lumberg-test.com"},{"login":"mail-dirs-test@lumberg-test.com","email":"mail-dirs-test@lumberg-test.com"},{"login":"Main Account","email":"lumberg"}],"func":"listpops","postevent":{"result":1},"module":"Email"}}
|
74
|
+
|
75
|
+
http_version:
|
76
|
+
recorded_at: Fri, 03 May 2013 16:47:41 GMT
|
77
|
+
- request:
|
78
|
+
method: get
|
79
|
+
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=listpopswithimage&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg
|
80
|
+
body:
|
81
|
+
string: ""
|
82
|
+
headers:
|
83
|
+
User-Agent:
|
84
|
+
- Faraday v0.8.7
|
85
|
+
Accept:
|
86
|
+
- "*/*"
|
87
|
+
Authorization:
|
88
|
+
- WHM root:iscool
|
89
|
+
response:
|
90
|
+
status:
|
91
|
+
code: 200
|
92
|
+
message: OK
|
93
|
+
headers:
|
94
|
+
Content-Type:
|
95
|
+
- text/plain; charset="utf-8"
|
96
|
+
X-Keep-Alive-Count:
|
97
|
+
- "1"
|
98
|
+
Keep-Alive:
|
99
|
+
- timeout=70, max=200
|
100
|
+
Connection:
|
101
|
+
- Keep-Alive
|
102
|
+
Content-Length:
|
103
|
+
- "739"
|
104
|
+
Date:
|
105
|
+
- Fri, 03 May 2013 16:47:42 GMT
|
106
|
+
Server:
|
107
|
+
- cpsrvd/11.32.6.3
|
108
|
+
body:
|
109
|
+
string: |
|
110
|
+
{"cpanelresult":{"event":{"result":1},"module":"Email","data":[{"login":"disk-usage-test@lumberg-test.com","email":"disk-usage-test@lumberg-test.com"},{"login":"account-test@lumberg-test.com","email":"account-test@lumberg-test.com"},{"login":"mail-dirs-test@lumberg-test.com","email":"mail-dirs-test@lumberg-test.com"},{"login":"mail-dir-test@lumberg-test.com","email":"mail-dir-test@lumberg-test.com"},{"login":"filters-test@lumberg-test.com","email":"filters-test@lumberg-test.com"},{"login":"test-account@lumberg-test.com","email":"test-account@lumberg-test.com"},{"login":"<img src=\"/frontend/sa2/images/mainacct.jpg\">","email":"lumberg"}],"preevent":{"result":1},"func":"listpopswithimage","postevent":{"result":1},"apiversion":2}}
|
111
|
+
|
112
|
+
http_version:
|
113
|
+
recorded_at: Fri, 03 May 2013 16:47:42 GMT
|
114
|
+
- request:
|
115
|
+
method: get
|
116
|
+
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=addpop&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg&domain=lumberg-test.com&email=test-account&password=sauce"a=0
|
117
|
+
body:
|
118
|
+
string: ""
|
119
|
+
headers:
|
120
|
+
User-Agent:
|
121
|
+
- Faraday v0.8.7
|
122
|
+
Accept:
|
123
|
+
- "*/*"
|
124
|
+
Authorization:
|
125
|
+
- WHM root:iscool
|
126
|
+
response:
|
127
|
+
status:
|
128
|
+
code: 200
|
129
|
+
message: OK
|
130
|
+
headers:
|
131
|
+
Content-Type:
|
132
|
+
- text/plain; charset="utf-8"
|
133
|
+
X-Keep-Alive-Count:
|
134
|
+
- "1"
|
135
|
+
Keep-Alive:
|
136
|
+
- timeout=70, max=200
|
137
|
+
Connection:
|
138
|
+
- Keep-Alive
|
139
|
+
Content-Length:
|
140
|
+
- "296"
|
141
|
+
Date:
|
142
|
+
- Fri, 03 May 2013 16:47:42 GMT
|
143
|
+
Server:
|
144
|
+
- cpsrvd/11.32.6.3
|
145
|
+
body:
|
146
|
+
string: |
|
147
|
+
{"cpanelresult":{"data":[{"reason":"The account test-account@lumberg-test.com already exists!","result":0}],"func":"addpop","preevent":{"result":1},"event":{"result":1},"error":"The account test-account@lumberg-test.com already exists!","postevent":{"result":1},"module":"Email","apiversion":2}}
|
148
|
+
|
149
|
+
http_version:
|
150
|
+
recorded_at: Fri, 03 May 2013 16:47:43 GMT
|
151
|
+
- request:
|
152
|
+
method: get
|
153
|
+
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=listpopssingle&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg
|
154
|
+
body:
|
155
|
+
string: ""
|
156
|
+
headers:
|
157
|
+
User-Agent:
|
158
|
+
- Faraday v0.8.7
|
159
|
+
Accept:
|
160
|
+
- "*/*"
|
161
|
+
Authorization:
|
162
|
+
- WHM root:iscool
|
163
|
+
response:
|
164
|
+
status:
|
165
|
+
code: 200
|
166
|
+
message: OK
|
167
|
+
headers:
|
168
|
+
Content-Type:
|
169
|
+
- text/plain; charset="utf-8"
|
170
|
+
X-Keep-Alive-Count:
|
171
|
+
- "1"
|
172
|
+
Keep-Alive:
|
173
|
+
- timeout=70, max=200
|
174
|
+
Connection:
|
175
|
+
- Keep-Alive
|
176
|
+
Content-Length:
|
177
|
+
- "658"
|
178
|
+
Date:
|
179
|
+
- Fri, 03 May 2013 16:47:43 GMT
|
180
|
+
Server:
|
181
|
+
- cpsrvd/11.32.6.3
|
182
|
+
body:
|
183
|
+
string: |
|
184
|
+
{"cpanelresult":{"preevent":{"result":1},"event":{"result":1},"apiversion":2,"data":[{"login":"mail-dirs-test@lumberg-test.com","email":"mail-dirs-test@lumberg-test.com"},{"login":"account-test@lumberg-test.com","email":"account-test@lumberg-test.com"},{"login":"mail-dir-test@lumberg-test.com","email":"mail-dir-test@lumberg-test.com"},{"login":"filters-test@lumberg-test.com","email":"filters-test@lumberg-test.com"},{"login":"test-account@lumberg-test.com","email":"test-account@lumberg-test.com"},{"login":"disk-usage-test@lumberg-test.com","email":"disk-usage-test@lumberg-test.com"}],"postevent":{"result":1},"module":"Email","func":"listpopssingle"}}
|
185
|
+
|
186
|
+
http_version:
|
187
|
+
recorded_at: Fri, 03 May 2013 16:47:43 GMT
|
188
|
+
recorded_with: VCR 2.0.1
|
@@ -0,0 +1,77 @@
|
|
1
|
+
---
|
2
|
+
recorded_with: VCR 2.0.1
|
3
|
+
http_interactions:
|
4
|
+
- request:
|
5
|
+
method: get
|
6
|
+
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=addpop&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg&domain=lumberg-test.com&email=account-test&password=magicpants"a=0
|
7
|
+
body:
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*"
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.7
|
14
|
+
Authorization:
|
15
|
+
- WHM root:iscool
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Wed, 15 May 2013 03:15:33 GMT
|
23
|
+
Connection:
|
24
|
+
- Keep-Alive
|
25
|
+
Content-Length:
|
26
|
+
- "247"
|
27
|
+
Server:
|
28
|
+
- cpsrvd/11.36.0.4
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset="utf-8"
|
31
|
+
Keep-Alive:
|
32
|
+
- timeout=70, max=200
|
33
|
+
X-Keep-Alive-Count:
|
34
|
+
- "1"
|
35
|
+
body:
|
36
|
+
string: |
|
37
|
+
{"cpanelresult":{"event":{"result":1},"error":"The account account-test@lumberg-test.com already exists!","apiversion":2,"func":"addpop","data":[{"reason":"The account account-test@lumberg-test.com already exists!","result":0}],"module":"Email"}}
|
38
|
+
|
39
|
+
http_version:
|
40
|
+
recorded_at: Wed, 15 May 2013 03:10:52 GMT
|
41
|
+
- request:
|
42
|
+
method: get
|
43
|
+
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=listpopswithdisk&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg
|
44
|
+
body:
|
45
|
+
string: ""
|
46
|
+
headers:
|
47
|
+
Accept:
|
48
|
+
- "*/*"
|
49
|
+
User-Agent:
|
50
|
+
- Faraday v0.8.7
|
51
|
+
Authorization:
|
52
|
+
- WHM root:iscool
|
53
|
+
response:
|
54
|
+
status:
|
55
|
+
code: 200
|
56
|
+
message: OK
|
57
|
+
headers:
|
58
|
+
Date:
|
59
|
+
- Wed, 15 May 2013 03:15:33 GMT
|
60
|
+
Connection:
|
61
|
+
- Keep-Alive
|
62
|
+
Content-Length:
|
63
|
+
- "563"
|
64
|
+
Server:
|
65
|
+
- cpsrvd/11.36.0.4
|
66
|
+
Content-Type:
|
67
|
+
- application/json; charset="utf-8"
|
68
|
+
Keep-Alive:
|
69
|
+
- timeout=70, max=200
|
70
|
+
X-Keep-Alive-Count:
|
71
|
+
- "1"
|
72
|
+
body:
|
73
|
+
string: |
|
74
|
+
{"cpanelresult":{"event":{"result":1},"apiversion":2,"func":"listpopswithdisk","data":[{"login":"account-test@lumberg-test.com","humandiskused":"None","diskusedpercent":0,"mtime":"1368587691","txtdiskquota":"unlimited","diskused":0,"domain":"lumberg-test.com","_diskused":"0","diskusedpercent20":0,"_diskquota":"0","diskquota":"unlimited","humandiskquota":"None","email":"account-test@lumberg-test.com","user":"account-test"}],"paginate":{"current_page":null,"total_results":null,"total_pages":null,"start_result":null,"results_per_page":null},"module":"Email"}}
|
75
|
+
|
76
|
+
http_version:
|
77
|
+
recorded_at: Wed, 15 May 2013 03:10:53 GMT
|
@@ -0,0 +1,77 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=addpop&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg&domain=lumberg-test.com&email=filters-test&password=abcdefg"a=0
|
6
|
+
body:
|
7
|
+
string: ""
|
8
|
+
headers:
|
9
|
+
User-Agent:
|
10
|
+
- Faraday v0.8.7
|
11
|
+
Accept:
|
12
|
+
- "*/*"
|
13
|
+
Authorization:
|
14
|
+
- WHM root:iscool
|
15
|
+
response:
|
16
|
+
status:
|
17
|
+
code: 200
|
18
|
+
message: OK
|
19
|
+
headers:
|
20
|
+
Content-Type:
|
21
|
+
- text/plain; charset="utf-8"
|
22
|
+
X-Keep-Alive-Count:
|
23
|
+
- "1"
|
24
|
+
Keep-Alive:
|
25
|
+
- timeout=70, max=200
|
26
|
+
Connection:
|
27
|
+
- Keep-Alive
|
28
|
+
Content-Length:
|
29
|
+
- "296"
|
30
|
+
Date:
|
31
|
+
- Fri, 03 May 2013 16:48:00 GMT
|
32
|
+
Server:
|
33
|
+
- cpsrvd/11.32.6.3
|
34
|
+
body:
|
35
|
+
string: |
|
36
|
+
{"cpanelresult":{"apiversion":2,"module":"Email","preevent":{"result":1},"func":"addpop","data":[{"result":0,"reason":"The account filters-test@lumberg-test.com already exists!"}],"error":"The account filters-test@lumberg-test.com already exists!","postevent":{"result":1},"event":{"result":1}}}
|
37
|
+
|
38
|
+
http_version:
|
39
|
+
recorded_at: Fri, 03 May 2013 16:48:01 GMT
|
40
|
+
- request:
|
41
|
+
method: get
|
42
|
+
uri: https://myhost.com:2087/json-api/cpanel?account=filters-test@lumberg-test.com&action1=fail&cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=storefilter&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg&filtername=fail%20filter&match1=is&opt1=and&part1=$header_from:&val1=hi
|
43
|
+
body:
|
44
|
+
string: ""
|
45
|
+
headers:
|
46
|
+
User-Agent:
|
47
|
+
- Faraday v0.8.7
|
48
|
+
Accept:
|
49
|
+
- "*/*"
|
50
|
+
Authorization:
|
51
|
+
- WHM root:iscool
|
52
|
+
response:
|
53
|
+
status:
|
54
|
+
code: 200
|
55
|
+
message: OK
|
56
|
+
headers:
|
57
|
+
Content-Type:
|
58
|
+
- text/plain; charset="utf-8"
|
59
|
+
X-Keep-Alive-Count:
|
60
|
+
- "1"
|
61
|
+
Keep-Alive:
|
62
|
+
- timeout=70, max=200
|
63
|
+
Connection:
|
64
|
+
- Keep-Alive
|
65
|
+
Content-Length:
|
66
|
+
- "237"
|
67
|
+
Date:
|
68
|
+
- Fri, 03 May 2013 16:48:01 GMT
|
69
|
+
Server:
|
70
|
+
- cpsrvd/11.32.6.3
|
71
|
+
body:
|
72
|
+
string: |
|
73
|
+
{"cpanelresult":{"preevent":{"result":1},"event":{"result":1},"func":"storefilter","data":[{"error":0,"ok":1,"result":"Filter Saved.","account":"filters-test@lumberg-test.com"}],"postevent":{"result":1},"module":"Email","apiversion":2}}
|
74
|
+
|
75
|
+
http_version:
|
76
|
+
recorded_at: Fri, 03 May 2013 16:48:01 GMT
|
77
|
+
recorded_with: VCR 2.0.1
|
@@ -0,0 +1,77 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=addforward&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg&domain=lumberg-test.com&email=fwd-test&fwdemail=foo@bar.com&fwdopt=fwd
|
6
|
+
body:
|
7
|
+
string: ""
|
8
|
+
headers:
|
9
|
+
User-Agent:
|
10
|
+
- Faraday v0.8.7
|
11
|
+
Accept:
|
12
|
+
- "*/*"
|
13
|
+
Authorization:
|
14
|
+
- WHM root:iscool
|
15
|
+
response:
|
16
|
+
status:
|
17
|
+
code: 200
|
18
|
+
message: OK
|
19
|
+
headers:
|
20
|
+
Content-Type:
|
21
|
+
- text/plain; charset="utf-8"
|
22
|
+
X-Keep-Alive-Count:
|
23
|
+
- "1"
|
24
|
+
Keep-Alive:
|
25
|
+
- timeout=70, max=200
|
26
|
+
Connection:
|
27
|
+
- Keep-Alive
|
28
|
+
Content-Length:
|
29
|
+
- "240"
|
30
|
+
Date:
|
31
|
+
- Fri, 03 May 2013 16:47:35 GMT
|
32
|
+
Server:
|
33
|
+
- cpsrvd/11.32.6.3
|
34
|
+
body:
|
35
|
+
string: |
|
36
|
+
{"cpanelresult":{"func":"addforward","postevent":{"result":1},"module":"Email","apiversion":2,"event":{"result":1},"preevent":{"result":1},"data":[{"email":"fwd-test@lumberg-test.com","forward":"foo@bar.com","domain":"lumberg-test.com"}]}}
|
37
|
+
|
38
|
+
http_version:
|
39
|
+
recorded_at: Fri, 03 May 2013 16:47:35 GMT
|
40
|
+
- request:
|
41
|
+
method: get
|
42
|
+
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=listforwards&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg
|
43
|
+
body:
|
44
|
+
string: ""
|
45
|
+
headers:
|
46
|
+
User-Agent:
|
47
|
+
- Faraday v0.8.7
|
48
|
+
Accept:
|
49
|
+
- "*/*"
|
50
|
+
Authorization:
|
51
|
+
- WHM root:iscool
|
52
|
+
response:
|
53
|
+
status:
|
54
|
+
code: 200
|
55
|
+
message: OK
|
56
|
+
headers:
|
57
|
+
Content-Type:
|
58
|
+
- text/plain; charset="utf-8"
|
59
|
+
X-Keep-Alive-Count:
|
60
|
+
- "1"
|
61
|
+
Keep-Alive:
|
62
|
+
- timeout=70, max=200
|
63
|
+
Connection:
|
64
|
+
- Keep-Alive
|
65
|
+
Content-Length:
|
66
|
+
- "761"
|
67
|
+
Date:
|
68
|
+
- Fri, 03 May 2013 16:47:35 GMT
|
69
|
+
Server:
|
70
|
+
- cpsrvd/11.32.6.3
|
71
|
+
body:
|
72
|
+
string: |
|
73
|
+
{"cpanelresult":{"data":[{"html_forward":"foo@bar.com","uri_forward":"foo%40bar.com","html_dest":"alias-test@lumberg-test.com","forward":"foo@bar.com","uri_dest":"alias-test%40lumberg-test.com","dest":"alias-test@lumberg-test.com"},{"html_forward":"foo@bar.com","uri_forward":"foo%40bar.com","html_dest":"fwd-test@lumberg-test.com","forward":"foo@bar.com","uri_dest":"fwd-test%40lumberg-test.com","dest":"fwd-test@lumberg-test.com"},{"html_forward":"foo@bar.com","uri_forward":"foo%40bar.com","html_dest":"test-fwd@lumberg-test.com","forward":"foo@bar.com","uri_dest":"test-fwd%40lumberg-test.com","dest":"test-fwd@lumberg-test.com"}],"postevent":{"result":1},"event":{"result":1},"func":"listforwards","preevent":{"result":1},"module":"Email","apiversion":2}}
|
74
|
+
|
75
|
+
http_version:
|
76
|
+
recorded_at: Fri, 03 May 2013 16:47:36 GMT
|
77
|
+
recorded_with: VCR 2.0.1
|
@@ -0,0 +1,73 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://myhost.com:2087/json-api/cpanel?arg-0=add-test&arg-1=s3cr3t5&arg-2=lumberg-test.com&cpanel_jsonapi_apiversion=1&cpanel_jsonapi_func=addlist&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg
|
6
|
+
body:
|
7
|
+
string: ""
|
8
|
+
headers:
|
9
|
+
User-Agent:
|
10
|
+
- Faraday v0.8.7
|
11
|
+
Accept:
|
12
|
+
- "*/*"
|
13
|
+
Authorization:
|
14
|
+
- WHM root:iscool
|
15
|
+
response:
|
16
|
+
status:
|
17
|
+
code: 200
|
18
|
+
message: OK
|
19
|
+
headers:
|
20
|
+
Content-Type:
|
21
|
+
- text/plain; charset="utf-8"
|
22
|
+
X-Keep-Alive-Count:
|
23
|
+
- "1"
|
24
|
+
Keep-Alive:
|
25
|
+
- timeout=70, max=200
|
26
|
+
Connection:
|
27
|
+
- Keep-Alive
|
28
|
+
Content-Length:
|
29
|
+
- "567"
|
30
|
+
Date:
|
31
|
+
- Fri, 03 May 2013 16:47:33 GMT
|
32
|
+
Server:
|
33
|
+
- cpsrvd/11.32.6.3
|
34
|
+
body:
|
35
|
+
string: "{\"apiversion\":\"1\",\"type\":\"event\",\"module\":\"Email\",\"func\":\"addlist\",\"source\":\"module\",\"data\":{\"result\":\"Creating an email list creates multiple email forwarders and one is being used already.<br />\\nA forwarder already exists for add-test-admin@lumberg-test.com.<br /><br />\\nYou must delete this forwarder before creating the list add-test.\\n\"},\"event\":{\"result\":1},\"preevent\":{\"result\":1},\"postevent\":{\"result\":1},\"error\":\"The requested mailing list address, add-test@lumberg-test.com, conflicts with the forwarder add-test-admin@lumberg-test.com@lumberg-test.com.\"}"
|
36
|
+
http_version:
|
37
|
+
recorded_at: Fri, 03 May 2013 16:47:34 GMT
|
38
|
+
- request:
|
39
|
+
method: get
|
40
|
+
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=listlists&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg
|
41
|
+
body:
|
42
|
+
string: ""
|
43
|
+
headers:
|
44
|
+
User-Agent:
|
45
|
+
- Faraday v0.8.7
|
46
|
+
Accept:
|
47
|
+
- "*/*"
|
48
|
+
Authorization:
|
49
|
+
- WHM root:iscool
|
50
|
+
response:
|
51
|
+
status:
|
52
|
+
code: 200
|
53
|
+
message: OK
|
54
|
+
headers:
|
55
|
+
Content-Type:
|
56
|
+
- text/plain; charset="utf-8"
|
57
|
+
X-Keep-Alive-Count:
|
58
|
+
- "1"
|
59
|
+
Keep-Alive:
|
60
|
+
- timeout=70, max=200
|
61
|
+
Connection:
|
62
|
+
- Keep-Alive
|
63
|
+
Content-Length:
|
64
|
+
- "463"
|
65
|
+
Date:
|
66
|
+
- Fri, 03 May 2013 16:47:33 GMT
|
67
|
+
Server:
|
68
|
+
- cpsrvd/11.32.6.3
|
69
|
+
body:
|
70
|
+
string: "{\"cpanelresult\":{\"event\":{\"result\":1},\"preevent\":{\"result\":1},\"postevent\":{\"result\":1},\"data\":[{\"diskused\":\"21542\",\"humandiskused\":\"21.04\xC2\xA0KB\",\"listid\":\"add-test_lumberg-test.com\",\"list\":\"add-test@lumberg-test.com\",\"desthost\":\"mail.lumberg-test.com\"},{\"diskused\":\"21548\",\"humandiskused\":\"21.04\xC2\xA0KB\",\"listid\":\"test-list_lumberg-test.com\",\"list\":\"test-list@lumberg-test.com\",\"desthost\":\"mail.lumberg-test.com\"}],\"func\":\"listlists\",\"apiversion\":2,\"module\":\"Email\"}}\n"
|
71
|
+
http_version:
|
72
|
+
recorded_at: Fri, 03 May 2013 16:47:34 GMT
|
73
|
+
recorded_with: VCR 2.0.1
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
recorded_with: VCR 2.0.1
|
3
|
+
http_interactions:
|
4
|
+
- request:
|
5
|
+
method: get
|
6
|
+
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=addmx&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg&domain=lumberg-test.com&exchange=mail.lumberg-test.com&preference=2
|
7
|
+
body:
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
Authorization:
|
15
|
+
- WHM root:iscool
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
X-Keep-Alive-Count:
|
22
|
+
- "1"
|
23
|
+
Date:
|
24
|
+
- Fri, 24 May 2013 17:40:26 GMT
|
25
|
+
Content-Length:
|
26
|
+
- "474"
|
27
|
+
Connection:
|
28
|
+
- Keep-Alive
|
29
|
+
Keep-Alive:
|
30
|
+
- timeout=70, max=200
|
31
|
+
Content-Type:
|
32
|
+
- text/plain; charset="utf-8"
|
33
|
+
Server:
|
34
|
+
- cpsrvd/11.32.6.4
|
35
|
+
body:
|
36
|
+
string: |
|
37
|
+
{"cpanelresult":{"module":"Email","apiversion":2,"func":"addmx","data":[{"status":1,"statusmsg":"Reusing existing entry on line matched new entry and new priority: 29:\nNo dns changes are required","results":"Reusing existing entry on line matched new entry and new priority: 29:\nNo dns changes are required","checkmx":{"local":1,"isprimary":1,"remote":0,"warnings":[],"secondary":0,"issecondary":0,"changed":1,"detected":"local","mxcheck":"auto"}}],"event":{"result":1}}}
|
38
|
+
|
39
|
+
http_version:
|
40
|
+
recorded_at: Fri, 24 May 2013 17:40:26 GMT
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
recorded_with: VCR 2.0.1
|
3
|
+
http_interactions:
|
4
|
+
- request:
|
5
|
+
method: get
|
6
|
+
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=addmx&cpanel_jsonapi_module=Email&cpanel_jsonapi_user=lumberg&domain=lumberg-test.com&exchange=mail.lumberg-test.com&oldpreference=2&preference=1
|
7
|
+
body:
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- WHM root:iscool
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.7
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Connection:
|
22
|
+
- Keep-Alive
|
23
|
+
Content-Length:
|
24
|
+
- "474"
|
25
|
+
Date:
|
26
|
+
- Fri, 24 May 2013 17:40:44 GMT
|
27
|
+
Content-Type:
|
28
|
+
- text/plain; charset="utf-8"
|
29
|
+
Server:
|
30
|
+
- cpsrvd/11.32.6.4
|
31
|
+
Keep-Alive:
|
32
|
+
- timeout=70, max=200
|
33
|
+
X-Keep-Alive-Count:
|
34
|
+
- "1"
|
35
|
+
body:
|
36
|
+
string: |
|
37
|
+
{"cpanelresult":{"apiversion":2,"func":"addmx","module":"Email","data":[{"checkmx":{"remote":0,"isprimary":1,"local":1,"warnings":[],"detected":"local","issecondary":0,"secondary":0,"mxcheck":"auto","changed":1},"status":1,"statusmsg":"Reusing existing entry on line matched new entry and new priority: 28:\nNo dns changes are required","results":"Reusing existing entry on line matched new entry and new priority: 28:\nNo dns changes are required"}],"event":{"result":1}}}
|
38
|
+
|
39
|
+
http_version:
|
40
|
+
recorded_at: Fri, 24 May 2013 17:40:44 GMT
|