Skip to content

Commit 65b4885

Browse files
author
Bono de Visser
authored
Merge pull request #1 from ByteInternet/add_send_subscriber_agreement_option
Add send_subscriber_agreement function
2 parents 9ba2e06 + eedf67a commit 65b4885

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
File renamed without changes.

xolphin/endpoint/request.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,14 @@ def retry_dcv(self, id, domain, dcv_type, email=''):
4444
'email': email
4545
}))
4646

47+
def send_subscriber_agreement(self, id, email, language='nl'):
48+
return Base(self.client.post('requests/%d/sa' % id, {
49+
'email': email,
50+
'language': language
51+
}))
52+
4753
def schedule_validation_call(self, id, date_time):
4854
return Base(self.client.post('requests/%d/schedule-validation-call' % id, {
4955
'date': date_time.strftime('%Y-%m-%d'),
5056
'time': date_time.strftime('%H:%M')
51-
}))
57+
}))

0 commit comments

Comments
 (0)