dnsimple-ruby 1.7.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +3 -9
- data/{CHANGELOG.markdown → CHANGELOG.md} +4 -0
- data/Gemfile +0 -2
- data/LICENSE +1 -1
- data/README.md +5 -0
- data/Rakefile +0 -15
- data/dnsimple-ruby.gemspec +11 -19
- data/lib/dnsimple-ruby.rb +2 -0
- metadata +20 -288
- data/README.markdown +0 -159
- data/bin/dnsimple +0 -4
- data/bin/dnsimple.rb +0 -156
- data/features/README.md +0 -9
- data/features/cli/certificates/purchase_certificate.feature +0 -10
- data/features/cli/contacts/create_contact.feature +0 -10
- data/features/cli/domains/check_domain.feature +0 -10
- data/features/cli/domains/create_domain.feature +0 -10
- data/features/cli/domains/delete_domain.feature +0 -11
- data/features/cli/domains/register_domain.feature +0 -10
- data/features/cli/records/create_ptr_record.feature +0 -11
- data/features/cli/records/create_record.feature +0 -12
- data/features/cli/records/delete_record.feature +0 -14
- data/features/cli/templates/apply_template.feature +0 -11
- data/features/step_definitions/certificate_steps.rb +0 -3
- data/features/step_definitions/cli_steps.rb +0 -8
- data/features/step_definitions/domain_steps.rb +0 -32
- data/features/step_definitions/record_steps.rb +0 -38
- data/features/step_definitions/template_steps.rb +0 -9
- data/features/support/env.rb +0 -19
- data/lib/dnsimple.rb +0 -33
- data/lib/dnsimple/base.rb +0 -10
- data/lib/dnsimple/certificate.rb +0 -140
- data/lib/dnsimple/cli.rb +0 -121
- data/lib/dnsimple/client.rb +0 -128
- data/lib/dnsimple/commands/certificate_describe.rb +0 -34
- data/lib/dnsimple/commands/certificate_list.rb +0 -15
- data/lib/dnsimple/commands/certificate_purchase.rb +0 -17
- data/lib/dnsimple/commands/certificate_submit.rb +0 -17
- data/lib/dnsimple/commands/contact_create.rb +0 -23
- data/lib/dnsimple/commands/contact_delete.rb +0 -14
- data/lib/dnsimple/commands/contact_describe.rb +0 -25
- data/lib/dnsimple/commands/contact_list.rb +0 -13
- data/lib/dnsimple/commands/contact_update.rb +0 -25
- data/lib/dnsimple/commands/domain_apply_template.rb +0 -15
- data/lib/dnsimple/commands/domain_check.rb +0 -11
- data/lib/dnsimple/commands/domain_clear.rb +0 -16
- data/lib/dnsimple/commands/domain_create.rb +0 -16
- data/lib/dnsimple/commands/domain_delete.rb +0 -14
- data/lib/dnsimple/commands/domain_describe.rb +0 -14
- data/lib/dnsimple/commands/domain_list.rb +0 -13
- data/lib/dnsimple/commands/domain_register.rb +0 -33
- data/lib/dnsimple/commands/domain_transfer.rb +0 -21
- data/lib/dnsimple/commands/extended_attribute_list.rb +0 -25
- data/lib/dnsimple/commands/me.rb +0 -18
- data/lib/dnsimple/commands/record_create.rb +0 -18
- data/lib/dnsimple/commands/record_delete.rb +0 -16
- data/lib/dnsimple/commands/record_describe.rb +0 -16
- data/lib/dnsimple/commands/record_list.rb +0 -19
- data/lib/dnsimple/commands/record_update.rb +0 -23
- data/lib/dnsimple/commands/service_add.rb +0 -14
- data/lib/dnsimple/commands/service_describe.rb +0 -12
- data/lib/dnsimple/commands/service_list.rb +0 -14
- data/lib/dnsimple/commands/service_list_applied.rb +0 -16
- data/lib/dnsimple/commands/service_list_available.rb +0 -16
- data/lib/dnsimple/commands/service_remove.rb +0 -14
- data/lib/dnsimple/commands/template_create.rb +0 -14
- data/lib/dnsimple/commands/template_delete.rb +0 -13
- data/lib/dnsimple/commands/template_list.rb +0 -13
- data/lib/dnsimple/commands/template_record_create.rb +0 -18
- data/lib/dnsimple/commands/template_record_delete.rb +0 -16
- data/lib/dnsimple/commands/template_record_list.rb +0 -17
- data/lib/dnsimple/contact.rb +0 -154
- data/lib/dnsimple/domain.rb +0 -217
- data/lib/dnsimple/error.rb +0 -32
- data/lib/dnsimple/extended_attribute.rb +0 -52
- data/lib/dnsimple/record.rb +0 -94
- data/lib/dnsimple/service.rb +0 -42
- data/lib/dnsimple/template.rb +0 -63
- data/lib/dnsimple/template_record.rb +0 -80
- data/lib/dnsimple/transfer_order.rb +0 -34
- data/lib/dnsimple/user.rb +0 -51
- data/lib/dnsimple/version.rb +0 -3
- data/spec/ci/.dnsimple.test +0 -3
- data/spec/commands/certificate_purchase_spec.rb +0 -25
- data/spec/commands/certificate_submit_spec.rb +0 -18
- data/spec/commands/record_create_spec.rb +0 -23
- data/spec/commands/record_list_spec.rb +0 -23
- data/spec/commands/service_add_spec.rb +0 -20
- data/spec/dnsimple/certificate_spec.rb +0 -59
- data/spec/dnsimple/client_spec.rb +0 -154
- data/spec/dnsimple/contact_spec.rb +0 -45
- data/spec/dnsimple/domain_spec.rb +0 -133
- data/spec/dnsimple/extended_attributes_spec.rb +0 -54
- data/spec/dnsimple/record_spec.rb +0 -51
- data/spec/dnsimple/template_spec.rb +0 -31
- data/spec/dnsimple/user_spec.rb +0 -70
- data/spec/files/2fa/error-badtoken.http +0 -22
- data/spec/files/2fa/error-required.http +0 -23
- data/spec/files/2fa/exchange-token.http +0 -25
- data/spec/files/account/user/success.http +0 -19
- data/spec/files/certificates/index/success.http +0 -19
- data/spec/files/certificates/show/notfound.http +0 -17
- data/spec/files/certificates/show/success.http +0 -19
- data/spec/files/contacts/show/notfound.http +0 -17
- data/spec/files/contacts/show/success.http +0 -19
- data/spec/files/domains/auto_renewal_disable/notfound.http +0 -21
- data/spec/files/domains/auto_renewal_disable/success.http +0 -23
- data/spec/files/domains/auto_renewal_enable/notfound.http +0 -21
- data/spec/files/domains/auto_renewal_enable/success.http +0 -23
- data/spec/files/domains/show/notfound.http +0 -17
- data/spec/files/domains/show/success.http +0 -19
- data/spec/files/extended_attributes/ca.http +0 -19
- data/spec/files/extended_attributes/com.http +0 -19
- data/spec/files/extended_attributes/success.http +0 -19
- data/spec/files/records/index/success.http +0 -19
- data/spec/files/records/show/notfound.http +0 -17
- data/spec/files/records/show/success.http +0 -19
- data/spec/files/templates/show/notfound.http +0 -17
- data/spec/files/templates/show/success.http +0 -19
- data/spec/spec_helper.rb +0 -39
- data/spec/support/helpers.rb +0 -15
- data/spec/support/webmock.rb +0 -11
@@ -1,54 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe DNSimple::ExtendedAttribute do
|
4
|
-
|
5
|
-
describe ".find" do
|
6
|
-
before do
|
7
|
-
stub_request(:get, %r[/v1/extended_attributes/com]).
|
8
|
-
to_return(read_fixture("extended_attributes/success.http"))
|
9
|
-
end
|
10
|
-
|
11
|
-
it "builds the correct request" do
|
12
|
-
described_class.find("com")
|
13
|
-
|
14
|
-
expect(WebMock).to have_requested(:get, "https://#{CONFIG['username']}:#{CONFIG['password']}@#{CONFIG['host']}/v1/extended_attributes/com").
|
15
|
-
with(:headers => { 'Accept' => 'application/json' })
|
16
|
-
end
|
17
|
-
|
18
|
-
context "when the TLD has no attributes" do
|
19
|
-
before do
|
20
|
-
stub_request(:get, %r[/v1/extended_attributes/com]).
|
21
|
-
to_return(read_fixture("extended_attributes/com.http"))
|
22
|
-
end
|
23
|
-
|
24
|
-
it "returns an empty list" do
|
25
|
-
result = described_class.find("com")
|
26
|
-
|
27
|
-
expect(result).to eq([])
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
context "when the TLD has attributes" do
|
32
|
-
before do
|
33
|
-
stub_request(:get, %r[/v1/extended_attributes/ca]).
|
34
|
-
to_return(read_fixture("extended_attributes/ca.http"))
|
35
|
-
end
|
36
|
-
|
37
|
-
it "returns the attributes" do
|
38
|
-
result = described_class.find("ca")
|
39
|
-
|
40
|
-
expect(result).to be_a(Array)
|
41
|
-
expect(result.size).to eq(5)
|
42
|
-
|
43
|
-
attribute = result[0]
|
44
|
-
expect(attribute).to be_a(described_class)
|
45
|
-
expect(attribute.name).to eq("cira_legal_type")
|
46
|
-
expect(attribute.description).to eq("Legal type of registrant contact")
|
47
|
-
expect(attribute.required).to be_truthy
|
48
|
-
expect(attribute.options).to be_a(Array)
|
49
|
-
expect(attribute.options.size).to eq(18)
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
end
|
@@ -1,51 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe DNSimple::Record do
|
4
|
-
|
5
|
-
let(:domain) { DNSimple::Domain.new(:name => 'example.com') }
|
6
|
-
|
7
|
-
|
8
|
-
describe ".find" do
|
9
|
-
before do
|
10
|
-
stub_request(:get, %r[/v1/domains/example.com/records/2]).
|
11
|
-
to_return(read_fixture("records/show/success.http"))
|
12
|
-
end
|
13
|
-
|
14
|
-
it "builds the correct request" do
|
15
|
-
described_class.find(domain, "2")
|
16
|
-
|
17
|
-
expect(WebMock).to have_requested(:get, "https://#{CONFIG['username']}:#{CONFIG['password']}@#{CONFIG['host']}/v1/domains/example.com/records/2").
|
18
|
-
with(:headers => { 'Accept' => 'application/json' })
|
19
|
-
end
|
20
|
-
|
21
|
-
context "when the record exists" do
|
22
|
-
it "returns the record" do
|
23
|
-
result = described_class.find(domain, "2")
|
24
|
-
|
25
|
-
expect(result).to be_a(described_class)
|
26
|
-
expect(result.id).to eq(1495)
|
27
|
-
expect(result.domain).to be(domain)
|
28
|
-
expect(result.name).to eq("www")
|
29
|
-
expect(result.content).to eq("1.2.3.4")
|
30
|
-
expect(result.ttl).to eq(3600)
|
31
|
-
expect(result.prio).to be_nil
|
32
|
-
expect(result.record_type).to eq("A")
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
|
38
|
-
describe "#fqdn" do
|
39
|
-
it "joins the name and domain name" do
|
40
|
-
record = described_class.new(:name => 'www', :domain => domain)
|
41
|
-
expect(record.fqdn).to eq("www.#{domain.name}")
|
42
|
-
end
|
43
|
-
|
44
|
-
it "strips a blank name" do
|
45
|
-
record = described_class.new(:name => '', :domain => domain)
|
46
|
-
expect(record.fqdn).to eq(domain.name)
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
end
|
51
|
-
|
@@ -1,31 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe DNSimple::Template do
|
4
|
-
|
5
|
-
describe ".find" do
|
6
|
-
before do
|
7
|
-
stub_request(:get, %r[/v1/templates/google-apps]).
|
8
|
-
to_return(read_fixture("templates/show/success.http"))
|
9
|
-
end
|
10
|
-
|
11
|
-
it "builds the correct request" do
|
12
|
-
described_class.find("google-apps")
|
13
|
-
|
14
|
-
expect(WebMock).to have_requested(:get, "https://#{CONFIG['username']}:#{CONFIG['password']}@#{CONFIG['host']}/v1/templates/google-apps").
|
15
|
-
with(:headers => { 'Accept' => 'application/json' })
|
16
|
-
end
|
17
|
-
|
18
|
-
context "when the template exists" do
|
19
|
-
it "returns the template" do
|
20
|
-
result = described_class.find("google-apps")
|
21
|
-
|
22
|
-
expect(result).to be_a(described_class)
|
23
|
-
expect(result.id).to eq(63)
|
24
|
-
expect(result.name).to eq("Google Apps")
|
25
|
-
expect(result.short_name).to eq("google-apps")
|
26
|
-
expect(result.description).to eq("The Google Mail Servers and Google Apps CNAME records in a single template.")
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
end
|
data/spec/dnsimple/user_spec.rb
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe DNSimple::User do
|
4
|
-
describe ".me" do
|
5
|
-
before do
|
6
|
-
stub_request(:get, %r[/v1/user]).
|
7
|
-
to_return(read_fixture("account/user/success.http"))
|
8
|
-
end
|
9
|
-
|
10
|
-
it "builds the correct request" do
|
11
|
-
described_class.me
|
12
|
-
|
13
|
-
expect(WebMock).to have_requested(:get, "https://#{CONFIG['username']}:#{CONFIG['password']}@#{CONFIG['host']}/v1/user").
|
14
|
-
with(:headers => { 'Accept' => 'application/json' })
|
15
|
-
end
|
16
|
-
|
17
|
-
it "returns the user" do
|
18
|
-
result = described_class.me
|
19
|
-
|
20
|
-
expect(result).to be_a(described_class)
|
21
|
-
expect(result.id).to eq(19)
|
22
|
-
expect(result.email).to eq("example@example.com")
|
23
|
-
expect(result.domain_count).to be_a(Integer)
|
24
|
-
expect(result.domain_limit).to be_a(Integer)
|
25
|
-
expect(result.login_count).to be_a(Integer)
|
26
|
-
expect(result.failed_login_count).to be_a(Integer)
|
27
|
-
expect(result.created_at).to eq("2014-01-15T21:59:04Z")
|
28
|
-
expect(result.updated_at).to be_a(String)
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
describe ".two_factor_exchange_token" do
|
33
|
-
before do
|
34
|
-
stub_request(:get, %r[/v1/user]).
|
35
|
-
to_return(read_fixture("2fa/exchange-token.http"))
|
36
|
-
end
|
37
|
-
|
38
|
-
let(:otp_token) { '1234567' }
|
39
|
-
|
40
|
-
it "builds the correct request" do
|
41
|
-
described_class.two_factor_exchange_token(otp_token)
|
42
|
-
|
43
|
-
expect(WebMock).to have_requested(:get, "https://#{CONFIG['username']}:#{CONFIG['password']}@#{CONFIG['host']}/v1/user").
|
44
|
-
# workaround for https://github.com/bblimke/webmock/issues/276
|
45
|
-
with { |req|
|
46
|
-
# req.headers[DNSimple::Client::HEADER_OTP_TOKEN] == otp_token
|
47
|
-
req.headers["X-Dnsimple-Otp"] == otp_token
|
48
|
-
}
|
49
|
-
end
|
50
|
-
|
51
|
-
it "returns the exchange_token" do
|
52
|
-
result = described_class.two_factor_exchange_token(otp_token)
|
53
|
-
|
54
|
-
expect(result).to eq("0c622716aaa64124219963075bc1c870")
|
55
|
-
end
|
56
|
-
|
57
|
-
context "when the OTP token is invalid" do
|
58
|
-
before do
|
59
|
-
stub_request(:get, %r[/v1/user]).
|
60
|
-
to_return(read_fixture("2fa/error-badtoken.http"))
|
61
|
-
end
|
62
|
-
|
63
|
-
it "raises an AuthenticationFailed" do
|
64
|
-
expect {
|
65
|
-
described_class.two_factor_exchange_token("invalid-token")
|
66
|
-
}.to raise_error(DNSimple::AuthenticationFailed, "Bad OTP token")
|
67
|
-
end
|
68
|
-
end
|
69
|
-
end
|
70
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
HTTP/1.1 401 Unauthorized
|
2
|
-
Server: nginx
|
3
|
-
Date: Fri, 19 Sep 2014 10:20:23 GMT
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding: chunked
|
6
|
-
Connection: close
|
7
|
-
Status: 401 Unauthorized
|
8
|
-
Strict-Transport-Security: max-age=631138519
|
9
|
-
X-Frame-Options: SAMEORIGIN
|
10
|
-
X-XSS-Protection: 1
|
11
|
-
X-Content-Type-Options: nosniff
|
12
|
-
X-UA-Compatible: chrome=1
|
13
|
-
Access-Control-Allow-Origin: *
|
14
|
-
Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
|
15
|
-
Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
|
16
|
-
Cache-Control: no-cache
|
17
|
-
Set-Cookie: user_credentials=f53d51039d1ac35e3398b604cb8eb8b8ecc085b69e76e6a8b41bf9b758380b97be2c65ba3124b1d5f8fc9dbeef9690386bdc5ccd775f0494a1a5a1edb5d98521; path=/; expires=Sat, 19 Sep 2015 10:20:23 -0000; secure
|
18
|
-
Set-Cookie: _dnsimple_session=MEM4ak83V0lDeVV6YnA1L2JPbG90cDExelZ6REF6dTNMR0NLejN1VG85WkphdU9FUDBvRmxUSnhlTGxGdmhOOXhiamtBQW1SYU9NSU9KUlV5SG5lTzlDS2N0dCtuay9mem5vL2ZxUzdFL2VpVDNMS0dwOVQxdWc3QmtYcWpLQXQ1NDE3UmpUeEZiMmwwTVlxdmJZQVU3UDYrbmJ3RnhDODBnZE5MWVJKekY5MFdoN2h0UVFQUmZzY204N1pTS1VpV2FZNWdZVlNENDJ3cThyZUx3U2l2NFN2eWx1UEZSVkNtTXdTUitxZG04VDBmZzErTmtvN1BPMmlRVGdiTW5mTXdVR0Jlb2V1RWxaS0xlU3NpNFlrUzdERDRCNzRRTnFLZ2Q1bS95WXM4M3M9LS1FdGpHYWlKRUlyVmhHYXZic3JIM3lnPT0%3D--8081ac131a8acf29688505a8b2a8224d0fd76ce5; path=/; HttpOnly; secure
|
19
|
-
X-Request-Id: 0567a347-9ea0-46cf-a73b-eb5b60bbe8bb
|
20
|
-
X-Runtime: 0.214109
|
21
|
-
|
22
|
-
{"message":"Bad OTP token"}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
HTTP/1.1 401 Unauthorized
|
2
|
-
Server: nginx
|
3
|
-
Date: Fri, 19 Sep 2014 10:33:42 GMT
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding: chunked
|
6
|
-
Connection: close
|
7
|
-
Status: 401 Unauthorized
|
8
|
-
Strict-Transport-Security: max-age=631138519
|
9
|
-
X-Frame-Options: SAMEORIGIN
|
10
|
-
X-XSS-Protection: 1
|
11
|
-
X-Content-Type-Options: nosniff
|
12
|
-
X-UA-Compatible: chrome=1
|
13
|
-
Access-Control-Allow-Origin: *
|
14
|
-
Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
|
15
|
-
Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
|
16
|
-
X-DNSimple-OTP: required
|
17
|
-
Cache-Control: no-cache
|
18
|
-
Set-Cookie: user_credentials=4ef7ff0d7228ea953f77be4044941c0f7e9c5e308e3b2c778dd175b0dd0d95eb032cef4334c6c3a7023e0e4754e2aea3133f44aa663d760f78997d97bde9336f; path=/; expires=Sat, 19 Sep 2015 10:33:42 -0000; secure
|
19
|
-
Set-Cookie: _dnsimple_session=TXFabkRHZlZyaWQvOEVMc09PU3RCckR4cVBDeXZrczRwOStMbkJiZnRjMWIzV3R1NzdubktHdU1pNlEyVVJ4SDNlODBNcUo0VzN5VmhsdWxTU1dwUUhXbXJhNk1tOUNpWUNUdlZ3NFVJd2cydVFWdFJGT0s4OExZd1NNS0lEeVdYSW0venA1WFpjVnhYN0NzNUlEdFJBS2NnSmY0ZHFJaG5UTitST2prTXBrVmpBYUlFNEkzZVUxeU1kVGN4aXlMMHhRMFI1MlRVNSs2SXpLd0Uyb3VleG5KODh1TEJvdG5rN2tXWGtjeEIxM3AzWmRrc052TmRsdEcvLzdwZ1hvK014OXpKM1N2YkNmaVppbDdMWWRNOXE4cERuU2l4c3lwWmNOYjgxVXlOOUE9LS15aXY1ekg4WTZlMDRtTGIyZ0JFanJRPT0%3D--8c7111719b56998a6343d0b8dc68d5607d6c05bf; path=/; HttpOnly; secure
|
20
|
-
X-Request-Id: 58e56818-4804-4452-b255-0650552a24cc
|
21
|
-
X-Runtime: 0.212325
|
22
|
-
|
23
|
-
{"message":"2FA Authentication failed"}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Server: nginx
|
3
|
-
Date: Fri, 19 Sep 2014 10:59:16 GMT
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding: chunked
|
6
|
-
Connection: close
|
7
|
-
Status: 200 OK
|
8
|
-
Strict-Transport-Security: max-age=631138519
|
9
|
-
X-Frame-Options: SAMEORIGIN
|
10
|
-
X-XSS-Protection: 1
|
11
|
-
X-Content-Type-Options: nosniff
|
12
|
-
X-UA-Compatible: chrome=1
|
13
|
-
Access-Control-Allow-Origin: *
|
14
|
-
Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
|
15
|
-
Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
|
16
|
-
X-DNSimple-OTP-Token: 0c622716aaa64124219963075bc1c870
|
17
|
-
ETag: "8f991ac7debfbe00277cb74b6d41c9a4"
|
18
|
-
Cache-Control: max-age=0, private, must-revalidate
|
19
|
-
Set-Cookie: user_credentials=5a9961782864b9d0601fedf748aaafaa009a8468d6864b5e648b65b0a4c05547d17a07bf162c9610efb422824633563a74e2e2bf58a0d4627bb5ddcb7fe07014; path=/; expires=Sat, 19 Sep 2015 10:59:16 -0000; secure
|
20
|
-
Set-Cookie: _dnsimple_session=OG0rMmJZSHVZWDNuMXd5Rjk4SGxPMU8zRjlrbWkydW44ek00bXRDSkhpUTA3ZkZzUWVsenlXMjcyWk93ZFhCRjZXejdpSTNrZWxqdE9DUFVqckg0YU13cTNFcVJVTnU1VTVTYjRZNHRWdGV3QmpXYlFEUlhRVDRrZHFPZXovMU9pUmhYTG16UXBTbjRoeWtBUVJudytUVmpaU2NFdDFDQlE2QTRFRXBwSEI2V1lCRnJ3Zmx3RUVYWVM0THN1WlIySkJtTkYwRG5CcC9CK2RzeXpMU2hxcWpMTld5OThPSWxmSHpWNXdEUFRFWnFHRktZSktlZkRGNEdIS2llN25aZkhxWTh4Q0w2UUREemNYTDNIMm1yLzQvTU5WUk1RSTgwTE1la3A2Vk1jeXc9LS03dml0dCtLWUx5MFRLa3phRWxNRmt3PT0%3D--6cbcdf7e930eb4343b632553396dfb6ee0ee04e6; path=/; HttpOnly; secure
|
21
|
-
X-Request-Id: 7e658b27-a46f-42bc-acb7-56fc94a5a623
|
22
|
-
X-Runtime: 0.437686
|
23
|
-
Strict-Transport-Security: max-age=315360000
|
24
|
-
|
25
|
-
{"user":{"id":19,"email":"example@example.com","referral_token":"ad932ffb60c295","single_access_token":"hZ1P7jz1V0u6g0MMv0pL","domain_count":2,"domain_limit":10,"login_count":1,"failed_login_count":0,"created_at":"2014-01-15T21:59:04.104Z","updated_at":"2014-09-19T10:59:16.231Z","first_name":null,"last_name":null,"default_contact_id":null}}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Server: nginx/1.4.4
|
3
|
-
Date: Wed, 15 Jan 2014 23:22:55 GMT
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding: chunked
|
6
|
-
Connection: close
|
7
|
-
Status: 200 OK
|
8
|
-
X-DNSimple-API-Version: 1.0.0
|
9
|
-
Access-Control-Allow-Origin: *
|
10
|
-
Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
|
11
|
-
Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
|
12
|
-
X-UA-Compatible: IE=Edge,chrome=1
|
13
|
-
ETag: "95b5414d75f4adff476276f378e1a742"
|
14
|
-
Cache-Control: max-age=0, private, must-revalidate
|
15
|
-
X-Request-Id: 15e68ad6a41c24c727d57cfc1a733de7
|
16
|
-
X-Runtime: 0.022328
|
17
|
-
Strict-Transport-Security: max-age=315360000
|
18
|
-
|
19
|
-
{"user":{"id":19,"email":"example@example.com","referral_token":"ad932ffb60c295","single_access_token":"api-token","default_contact_id":null,"phone":null,"country_code":null,"authy_identifier":null,"authy_verified_at":null,"domain_count":2,"domain_limit":500,"login_count":3,"failed_login_count":0,"unsubscribed_at":null,"created_at":"2014-01-15T21:59:04Z","updated_at":"2014-01-15T23:21:50Z","first_name":null,"last_name":null}}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Server: nginx/1.5.8
|
3
|
-
Date: Tue, 14 Jan 2014 18:37:59 GMT
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding: chunked
|
6
|
-
Connection: close
|
7
|
-
Status: 200 OK
|
8
|
-
X-DNSimple-API-Version: 1.0.0
|
9
|
-
Access-Control-Allow-Origin: *
|
10
|
-
Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
|
11
|
-
Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
|
12
|
-
X-UA-Compatible: IE=Edge,chrome=1
|
13
|
-
ETag: "68c94c6eefc81fd3fc85b068a7c65029"
|
14
|
-
Cache-Control: max-age=0, private, must-revalidate
|
15
|
-
X-Request-Id: f06a7d3fc56223e9db4c14f548c43d7a
|
16
|
-
X-Runtime: 0.046608
|
17
|
-
Strict-Transport-Security: max-age=315360000
|
18
|
-
|
19
|
-
[{"certificate":{"id":4576,"domain_id":79569,"contact_id":11549,"name":"www","state":"cancelled","csr":"-----BEGIN NEW CERTIFICATE REQUEST-----\nRHr2akB4KMba6FMAsvlStnO/2ika16hNx+d3smPNsER+HA==\n-----END NEW CERTIFICATE REQUEST-----\n","ssl_certificate":null,"private_key":"-----BEGIN RSA PRIVATE KEY-----\nUeXbFi7o+nuPfRhpBFQEKwacKFc3Hnc1hH6UsnC0KY25cUif7yz38A==\n-----END RSA PRIVATE KEY-----\n","approver_email":"example@example.com","expires_on":"2014-09-17","created_at":"2013-09-17T21:54:42Z","updated_at":"2013-09-17T22:25:36Z","configured_at":"2013-09-17T22:25:01Z","available_approver_emails":null,"certificate_status":null}},{"certificate":{"id":4578,"domain_id":79569,"contact_id":11549,"name":"www","state":"cancelled","csr":"-----BEGIN NEW CERTIFICATE REQUEST-----\n2iT9OvY4afImf2ZcXnYZGrfXCx4GOxeMDpNcQm0RT3gLGw==\n-----END NEW CERTIFICATE REQUEST-----\n","ssl_certificate":null,"private_key":"-----BEGIN RSA PRIVATE KEY-----\nwDj89yRezuhCL5K1MSVohQyhyESr9Vz93p4r31DZxAmgFbCRE+g=\n-----END RSA PRIVATE KEY-----\n","approver_email":"example@example.com","expires_on":"2014-09-17","created_at":"2013-09-17T22:30:03Z","updated_at":"2013-09-17T22:30:41Z","configured_at":"2013-09-17T22:30:08Z","available_approver_emails":null,"certificate_status":null}}]
|
@@ -1,17 +0,0 @@
|
|
1
|
-
HTTP/1.1 404 Not Found
|
2
|
-
Server: nginx/1.5.8
|
3
|
-
Date: Tue, 14 Jan 2014 18:40:45 GMT
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding: chunked
|
6
|
-
Connection: close
|
7
|
-
Status: 404 Not Found
|
8
|
-
X-DNSimple-API-Version: 1.0.0
|
9
|
-
Access-Control-Allow-Origin: *
|
10
|
-
Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
|
11
|
-
Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
|
12
|
-
X-UA-Compatible: IE=Edge,chrome=1
|
13
|
-
Cache-Control: no-cache
|
14
|
-
X-Request-Id: d38b463c18b96625c085e1ca121a7ffd
|
15
|
-
X-Runtime: 0.034619
|
16
|
-
|
17
|
-
{"error":"Couldn't find Certificate with id=12 [WHERE \"certificates\".\"domain_id\" = 79569]"}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Server: nginx/1.5.8
|
3
|
-
Date: Tue, 14 Jan 2014 18:40:28 GMT
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding: chunked
|
6
|
-
Connection: close
|
7
|
-
Status: 200 OK
|
8
|
-
X-DNSimple-API-Version: 1.0.0
|
9
|
-
Access-Control-Allow-Origin: *
|
10
|
-
Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
|
11
|
-
Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
|
12
|
-
X-UA-Compatible: IE=Edge,chrome=1
|
13
|
-
ETag: "2b76f0ea88c7e95384506ac576d23d01"
|
14
|
-
Cache-Control: max-age=0, private, must-revalidate
|
15
|
-
X-Request-Id: aaf5915a32924165d4f45779689831fa
|
16
|
-
X-Runtime: 0.042263
|
17
|
-
Strict-Transport-Security: max-age=315360000
|
18
|
-
|
19
|
-
{"certificate":{"id":4576,"domain_id":79569,"contact_id":11549,"name":"www","state":"cancelled","csr":"-----BEGIN NEW CERTIFICATE REQUEST-----\nRHr2akB4KMba6FMAsvlStnO/2ika16hNx+d3smPNsER+HA==\n-----END NEW CERTIFICATE REQUEST-----\n","ssl_certificate":"-----BEGIN CERTIFICATE-----\nXwTkw5UCPpaVyUYcwHlvaprOe9ZbwIyEHm2AT1rW+70=\n-----END CERTIFICATE-----\n","private_key":"-----BEGIN RSA PRIVATE KEY-----\nUeXbFi7o+nuPfRhpBFQEKwacKFc3Hnc1hH6UsnC0KY25cUif7yz38A==\n-----END RSA PRIVATE KEY-----\n","approver_email":"example@example.net","expires_on":"2014-09-17","created_at":"2013-09-17T21:54:42Z","updated_at":"2013-09-17T22:25:36Z","configured_at":"2013-09-17T22:25:01Z","available_approver_emails":null,"certificate_status":null}}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
HTTP/1.1 404 Not Found
|
2
|
-
Server: nginx/1.4.4
|
3
|
-
Date: Tue, 14 Jan 2014 18:03:42 GMT
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding: chunked
|
6
|
-
Connection: close
|
7
|
-
Status: 404 Not Found
|
8
|
-
X-DNSimple-API-Version: 1.0.0
|
9
|
-
Access-Control-Allow-Origin: *
|
10
|
-
Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
|
11
|
-
Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
|
12
|
-
X-UA-Compatible: IE=Edge,chrome=1
|
13
|
-
Cache-Control: no-cache
|
14
|
-
X-Request-Id: 06b719043c001f90932f8984c0b5d301
|
15
|
-
X-Runtime: 0.035035
|
16
|
-
|
17
|
-
{"error":"Couldn't find Contact with id=20 [WHERE (user_id = 2 or organization_id in (NULL))]"}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Server: nginx/1.4.4
|
3
|
-
Date: Tue, 14 Jan 2014 18:03:26 GMT
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding: chunked
|
6
|
-
Connection: close
|
7
|
-
Status: 200 OK
|
8
|
-
X-DNSimple-API-Version: 1.0.0
|
9
|
-
Access-Control-Allow-Origin: *
|
10
|
-
Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
|
11
|
-
Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
|
12
|
-
X-UA-Compatible: IE=Edge,chrome=1
|
13
|
-
ETag: "c8da059d309b1de77a7b400c6c8febb0"
|
14
|
-
Cache-Control: max-age=0, private, must-revalidate
|
15
|
-
X-Request-Id: 954fef00cf763b3de6211670a740ebc9
|
16
|
-
X-Runtime: 0.040477
|
17
|
-
Strict-Transport-Security: max-age=315360000
|
18
|
-
|
19
|
-
{"contact":{"id":2,"user_id":2,"label":"Default","first_name":"Simone","last_name":"Carletti","job_title":"Underwater Programmer","organization_name":"DNSimple","email_address":"example@example.com","phone":"+1 111 000000","fax":"+1 222 000000","address1":"Awesome Street","address2":"c/o Someone","city":"Rome","state_province":"RM","postal_code":"00171","country":"IT","created_at":"2013-11-08T17:23:15Z","updated_at":"2013-11-08T17:23:15Z","phone_ext":null}}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
HTTP/1.1 404 Not Found
|
2
|
-
Server: nginx/1.4.7
|
3
|
-
Date: Tue, 01 Jul 2014 16:16:47 GMT
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding: chunked
|
6
|
-
Connection: close
|
7
|
-
Status: 404 Not Found
|
8
|
-
Strict-Transport-Security: max-age=631138519
|
9
|
-
X-Frame-Options: SAMEORIGIN
|
10
|
-
X-XSS-Protection: 1
|
11
|
-
X-Content-Type-Options: nosniff
|
12
|
-
X-UA-Compatible: chrome=1
|
13
|
-
Access-Control-Allow-Origin: *
|
14
|
-
Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
|
15
|
-
Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
|
16
|
-
Content-Security-Policy: default-src 'self'; connect-src 'self'; font-src 'self' data: netdna.bootstrapcdn.com *.edgecastcdn.net; frame-src 'self'; img-src 'self' data: *.nr-data.net; media-src 'self'; object-src 'self'; script-src 'self' data: 'unsafe-inline' 'unsafe-eval' *.getdrip.com *.visualwebsiteoptimizer.com *.doubleclick.net *.pathful.com *.newrelic.com; style-src 'self' data: 'unsafe-inline' 'unsafe-eval' netdna.bootstrapcdn.com cloud.webtype.com cloud.typography.com;
|
17
|
-
Cache-Control: no-cache
|
18
|
-
X-Request-Id: a3258b20-64e8-4a82-aed2-7487b8fbd941
|
19
|
-
X-Runtime: 0.020447
|
20
|
-
|
21
|
-
{"message":"Domain `example.com' not found","error":"Domain `example.com' not found"}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Server: nginx/1.4.7
|
3
|
-
Date: Tue, 01 Jul 2014 16:15:42 GMT
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding: chunked
|
6
|
-
Connection: close
|
7
|
-
Status: 200 OK
|
8
|
-
Strict-Transport-Security: max-age=631138519
|
9
|
-
X-Frame-Options: SAMEORIGIN
|
10
|
-
X-XSS-Protection: 1
|
11
|
-
X-Content-Type-Options: nosniff
|
12
|
-
X-UA-Compatible: chrome=1
|
13
|
-
Access-Control-Allow-Origin: *
|
14
|
-
Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
|
15
|
-
Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
|
16
|
-
Content-Security-Policy: default-src 'self'; connect-src 'self'; font-src 'self' data: netdna.bootstrapcdn.com *.edgecastcdn.net; frame-src 'self'; img-src 'self' data: *.nr-data.net; media-src 'self'; object-src 'self'; script-src 'self' data: 'unsafe-inline' 'unsafe-eval' *.getdrip.com *.visualwebsiteoptimizer.com *.doubleclick.net *.pathful.com *.newrelic.com; style-src 'self' data: 'unsafe-inline' 'unsafe-eval' netdna.bootstrapcdn.com cloud.webtype.com cloud.typography.com;
|
17
|
-
ETag: "bd3e2e772876c2061a4953449963473a"
|
18
|
-
Cache-Control: max-age=0, private, must-revalidate
|
19
|
-
X-Request-Id: 55f7d890-6971-4b50-8ea9-802e3d426de8
|
20
|
-
X-Runtime: 1.005223
|
21
|
-
Strict-Transport-Security: max-age=315360000
|
22
|
-
|
23
|
-
{"domain":{"id":227,"user_id":19,"registrant_id":28,"name":"example-1389823304.com","unicode_name":"example-1389823304.com","token":"api-token","state":"registered","language":null,"lockable":true,"auto_renew":false,"whois_protected":false,"record_count":7,"service_count":0,"expires_on":"2015-01-16","created_at":"2014-01-15T22:01:55.494Z","updated_at":"2014-07-01T16:15:42.350Z","parsed_expiration_date":"2015-01-16T22:56:00.000Z","expires_at":"1/16/2015 10:56:00 PM","name_server_status":null,"private_whois?":false}}
|