Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add details method to Output object. #9

Merged
merged 2 commits into from

2 participants

@kenzic

I added a details method to Output object.

@schworer schworer merged commit b1736cf into zencoder:master
@schworer schworer referenced this pull request
Closed

added progress to job api #10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 23, 2012
  1. @kenzic
Commits on Apr 10, 2012
  1. @kenzic

    adding progress to Job api

    kenzic authored
This page is out of date. Refresh to see the latest.
Showing with 12 additions and 0 deletions.
  1. +12 −0 zencoder/core.py
View
12 zencoder/core.py
@@ -236,6 +236,14 @@ def progress(self, output_id):
return self.get(self.base_url + '/%s/progress' % str(output_id),
data=data)
+ def details(self, output_id):
+ """
+ Gets the given output id's details
+ """
+ data = {'api_key': self.api_key}
+ return self.get(self.base_url + '/%s' % str(output_id),
+ data=data)
+
class Job(HTTPBackend):
"""
Contains all API methods relating to transcoding Jobs.
@@ -281,6 +289,10 @@ def details(self, job_id):
data = {'api_key': self.api_key}
return self.get(self.base_url + '/%s' % str(job_id), data=data)
+ def progress(self, job_id):
+ data = {'api_key': self.api_key}
+ return self.get(self.base_url + '/%s/progress' % str(job_id), data=data)
+
def resubmit(self, job_id):
"""
Resubmits a job
Something went wrong with that request. Please try again.