Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6901ee9

Browse files
committed
fix Account.create terms of service acceptance
The Zencoder api requires that 'terms_of_service' be '1' as a string inorder for it to be accepted.
1 parent356f165 commit6901ee9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎zencoder/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
fromcoreimportZencoder
22
fromcoreimportZencoderResponseError
33

4+
fromcoreimportAccount

‎zencoder/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,12 @@ def __init__(self, base_url, api_key=None, as_xml=False, timeout=None):
185185
"""
186186
super(Account,self).__init__(base_url,api_key,as_xml,'account',timeout=timeout)
187187

188-
defcreate(self,email,tos=True,options=None):
188+
defcreate(self,email,tos=1,options=None):
189189
"""
190190
Creates an account with Zencoder, no API Key necessary.
191191
"""
192192
data= {'email':email,
193-
'terms_of_service':int(tos)}
193+
'terms_of_service':str(tos)}
194194
ifoptions:
195195
data.update(options)
196196

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp