We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent1f2a715 commitf605603Copy full SHA for f605603
Zencoder.php
@@ -21,7 +21,6 @@ class ZencoderJob {
21
22
var$new_job_url ="https://app.zencoder.com/api/jobs";
23
var$new_job_params =array();
24
- var$new_job_json;
25
var$created =false;
26
var$errors =array();
27
@@ -37,7 +36,8 @@ function ZencoderJob($params, $options = array()) {
37
36
$this->update_attributes($params);
38
returntrue;
39
}
40
-
+
+if($options["url"])$this->new_job_url =$options["url"];
41
$this->new_job_params =$params;
42
$this->created =$this->create();
43
@@ -153,7 +153,7 @@ function ZencoderRequest($url, $api_key = "", $params = "") {
153
$this->errors[] =$error;
154
155
}else {
156
-$this->errors[] ="Unknown Error\n\nHTTP Status Code:".$request->status_code."\n"."Raw Results:\n".$request->raw_results;
+$this->errors[] ="Unknown Error\n\nHTTP Status Code:".$request->status_code."\n"."Raw Results:\n".$this->raw_results;
157
158
159