File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ The third argument is the **request parameters** if needed. It can either be a J
96
96
#### Example Job List Request
97
97
98
98
$request = new ZencoderRequest(
99
- 'https://app.zencoder/api/jobs',
99
+ 'https://app.zencoder.com /api/jobs',
100
100
'93h630j1dsyshjef620qlkavnmzui3'
101
101
);
102
102
@@ -111,7 +111,7 @@ The third argument is the **request parameters** if needed. It can either be a J
111
111
#### Example Account Creation Request
112
112
113
113
$request = new ZencoderRequest(
114
- 'https://app.zencoder/api/account',
114
+ 'https://app.zencoder.com /api/account',
115
115
false, // API key isn't needed for new account creation
116
116
array(
117
117
"terms_of_service" => "1",
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ class ZencoderRequest {
112
112
var $ raw_results ;
113
113
var $ results ;
114
114
115
- function ZencoderRequest ($ url , $ api_key = "" , $ params = "" ) {
115
+ function ZencoderRequest ($ url , $ api_key = "" , $ params = "" , $ options = "" ) {
116
116
117
117
// Add api_key to url if supplied
118
118
if ($ api_key ) {
@@ -209,6 +209,11 @@ function ZencoderCURL($url, $json, $options = array()) {
209
209
210
210
// Check for cURL error
211
211
if (curl_errno ($ ch )) {
212
+ if (curl) {
213
+
214
+ } else {
215
+
216
+ }
212
217
$ this ->error = 'cURL connection error ( ' .curl_errno ($ ch ).'): ' .htmlspecialchars (curl_error ($ ch )).' <a href="http://www.google.com/search?q= ' .urlencode ("curl error " .curl_error ($ ch )).'">Search</a> ' ;
213
218
$ this ->connected = false ;
214
219
} else {
You can’t perform that action at this time.
0 commit comments