Skip to content

Commit baf5990

Browse files
committed
Release v1.6.0 - See README.md for details
1 parent a90a14d commit baf5990

File tree

9 files changed

+59
-6
lines changed

9 files changed

+59
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## [1.6.0] - 2017-07-07
5+
### Added
6+
- Compatability with Xolphin REST Api v1.6.0
7+
- Certificate Requests: Support for the new CNAME and FILE validation strings for Comodo DCV
8+
49
## [1.5.0] - 2017-03-09
510
### Added
611
- Compatability with Xolphin REST Api v1.5.0
@@ -10,4 +15,4 @@ All notable changes to this project will be documented in this file.
1015
- Certificate Requests: A new field 'brandValidation' is added, which is used to indicate if the request is being held for review due to specific brand names
1116

1217
### Fixed
13-
- Ability to upload files
18+
- Ability to upload files

examples/Request_create_EE.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import xolphin
2+
client = xolphin.Client('youremail@domain.com', 'YourPassword', True);
3+
4+
ccr = client.request().create_ee()
5+
6+
ccr.csr = """-----BEGIN CERTIFICATE REQUEST-----
7+
MIICuDCCAaACADB0MQswCQYDVQQGEwJOTDEWMBQGA1UEAxMNd3d3LnNzbGRldi5u
8+
bDEWMBQGA1UEBxMNSGVlcmh1Z293YWFyZDEQMA4GA1UEChMHWG9scGhpbjEWMBQG
9+
A1UECBMNTm9vcmQtSG9sbGFuZDELMAkGA1UECxMCSVQwggEiMA0GCSqGSIb3DQEB
10+
AQUAA4IBDwAwggEKAoIBAQDkTFMNKhWObiUH1xDeRcqYiROKvJZEI7njDlQbXeVC
11+
qSaBSBClJD98OSgE0+arnVyJ5Fnjkovgb9aC8HbWYbiD1tbWD+hKC1wPODEvknl7
12+
jfRpO36cIglIhftHn5p0k+f86uS2Nz1yr+5qwAEQ7C0UQZxMuBbzK6Uv8m0TbAVV
13+
CQ+i+uJfuXSsAT8LZbyoJsu50ZySG3uEhCSISh1cS/t/M2INHbXfzGA3GWH2FXCZ
14+
Qd9eLSBAVEanIr3TlRpNU3f0IDwJpm56BVTNtNL7GI2NilfUF9oSo9PSlPbAkPsN
15+
BrVdOiZgiOEO74rXE8fjA5Zm8uic6MyFRo4FuTUBWubrAgMBAAGgADANBgkqhkiG
16+
9w0BAQsFAAOCAQEAHuB6643oI7oPw5SbFQAcfTfQbyRTXNqwYOO8YRcCkDIu7aX9
17+
pupGvf+cSa5IDcZ6Dz22/Khp5rYlcutAtEN7d8MNBwBlcVzbWL+DuTU5ZWAxcRi4
18+
nmiw/C+RxFF+WsUcjwb+dNrTYkz03t7voMg/0NS7RRU/oTu8heDDcH+Ffam1bZJQ
19+
zi21dz/AsjG9Jc6GJqZs0ImEwCQlBhJYnXPj3FB8U/mzSWSfq502fdtmQrvIgHmI
20+
RLuxVO9QX0YLQ0ew1x2z+eFfBsfSI1+DkF4+5TrfJP6jQyHBR+VDdGYBO2d8rBw7
21+
ITIJC9tt2F4GjaPAI1xY9eoq/QfZxzNoNufMuw==
22+
-----END CERTIFICATE REQUEST-----"""
23+
ccr.approver_first_name = 'FirstName'
24+
ccr.approver_last_name = 'LastName'
25+
ccr.approver_phone = '+12345678901'
26+
ccr.approver_email = 'email@domain.com'
27+
ccr.subject_alternative_names.append('test1.domain.com')
28+
ccr.subject_alternative_names.append('test2.domain.com')
29+
ccr.dcvType = 'DNS'
30+
31+
#print(ccr.toDict());
32+
33+
request = client.request().send_ee(ccr)
34+
35+
print(vars(request))

examples/__init__.py

Whitespace-only changes.

examples/get_request.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import xolphin
2+
client = xolphin.Client('youremail@domain.com', 'YourPassword')
3+
4+
request = client.request().get(123456789)
5+
#print(request.id)
6+
7+
for vald in request.validations:
8+
print(vald)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def read(*paths):
1212

1313
setup(
1414
name='xolphin-api',
15-
version='1.5.0',
15+
version='1.6.0',
1616
author='Xolphin',
1717
author_email='info@xolphin.com',
1818
license='MIT',

xolphin/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from __future__ import absolute_import
55

66
__author__ = 'Xolphin'
7-
__version__ = '1.5.0'
7+
__version__ = '1.6.0'
88

99
from .client import Client
1010
#from .errors import TwinglyException

xolphin/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
class Client(object):
2020
BASE_URL = 'https://api.xolphin.com/v1/'
2121
BASE_URL_TEST = 'https://test-api.xolphin.com/v1/'
22-
VERSION = '1.5.0'
22+
VERSION = '1.6.0'
2323

2424
def __init__(self, username, password, test = False):
2525

xolphin/endpoint/certificate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def all(self):
1515
if not result.is_error():
1616
certificates = result.certificates
1717
while result.page < result.pages:
18-
result = Requests(self.client.get('certificates', {'page': result.page + 1}))
18+
result = Certificates(self.client.get('certificates', {'page': result.page + 1}))
1919
if result.is_error():
2020
break
2121
certificates = certificates + result.certificates
@@ -39,4 +39,4 @@ def cancel(self, id, reason, revoke=False):
3939
return Req(self.client.post('certificates/%d/cancel' % id, {
4040
'reason': reason,
4141
'revoke': revoke
42-
}))
42+
}))

xolphin/responses/request_validation_domain.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ def __init__(self, data):
88
if 'statusMessage' in data: self.status_message = data['statusMessage']
99
if 'md5' in data: self.md5 = data['md5']
1010
if 'sha1' in data: self.sha1 = data['sha1']
11+
12+
if 'dnsRecord' in data: self.dnsRecord = data['dnsRecord']
13+
if 'dnsCnameValue' in data: self.dnsCnameValue = data['dnsCnameValue']
14+
if 'fileLocation' in data: self.fileLocation = data['fileLocation']
15+
if 'fileContents' in data: self.fileContents = data['fileContents']

0 commit comments

Comments
 (0)