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

Commit752b431

Browse files
author
Alex Schworer
committed
Add Inputs endpoint support:
https://app.zencoder.com/docs/api/inputs
1 parentcbc9357 commit752b431

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

‎zencoder/core.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,27 @@ def details(self, output_id):
286286
"""
287287
returnself.get(self.base_url+'/%s'%str(output_id))
288288

289+
classInput(HTTPBackend):
290+
""" Returns information regarding inputs """
291+
def__init__(self,*args,**kwargs):
292+
"""
293+
Contains all API methods relating to Inputs.
294+
"""
295+
kwargs['resource_name']='inputs'
296+
super(Output,self).__init__(*args,**kwargs)
297+
298+
defprogress(self,input_id):
299+
"""
300+
Gets the given input id's progress.
301+
"""
302+
returnself.get(self.base_url+'/%s/progress'%str(input_id))
303+
304+
defdetails(self,input_id):
305+
"""
306+
Gets the given input id's details
307+
"""
308+
returnself.get(self.base_url+'/%s'%str(input))
309+
289310
classJob(HTTPBackend):
290311
"""
291312
Contains all API methods relating to transcoding Jobs.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp