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

Commit087d07d

Browse files
author
Mark Costello
committed
First commit of report structure
1 parent52b4e64 commit087d07d

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
@@ -202,6 +202,9 @@ def __init__(self, api_key=None, api_version=None, as_xml=False, timeout=None, t
202202
self.job=Job(*args,**kwargs)
203203
self.account=Account(*args,**kwargs)
204204
self.output=Output(*args,**kwargs)
205+
self.report=None
206+
ifapi_version=='v2':
207+
self.report=Report(*args,**kwargs)
205208

206209
classResponse(object):
207210
"""
@@ -366,3 +369,21 @@ def delete(self, job_id):
366369
"""
367370
returnself.cancel(job_id)
368371

372+
classReport(HTTPBackend):
373+
def__init__(self,*args,**kwargs):
374+
"""
375+
Contains all API methods relating to Outputs.
376+
"""
377+
kwargs['resource_name']='reports'
378+
super(Report,self).__init__(*args,**kwargs)
379+
380+
defdetails(self,start_date=None,end_date=None,grouping=None):
381+
data= {}
382+
ifstart_date:
383+
data['from']=start_date
384+
ifto:
385+
data['to']=end_date
386+
ifgrouping:
387+
data['grouping']=grouping
388+
url=self.base_url+'/reports/minutes'
389+
self.get(url,data)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp