Skip to content

Commit e1de913

Browse files
committed
Fixed .com in example
1 parent f605603 commit e1de913

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

README.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ The third argument is the **request parameters** if needed. It can either be a J
9696
#### Example Job List Request
9797

9898
$request = new ZencoderRequest(
99-
'https://app.zencoder/api/jobs',
99+
'https://app.zencoder.com/api/jobs',
100100
'93h630j1dsyshjef620qlkavnmzui3'
101101
);
102102

@@ -111,7 +111,7 @@ The third argument is the **request parameters** if needed. It can either be a J
111111
#### Example Account Creation Request
112112

113113
$request = new ZencoderRequest(
114-
'https://app.zencoder/api/account',
114+
'https://app.zencoder.com/api/account',
115115
false, // API key isn't needed for new account creation
116116
array(
117117
"terms_of_service" => "1",

Zencoder.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class ZencoderRequest {
112112
var $raw_results;
113113
var $results;
114114

115-
function ZencoderRequest($url, $api_key = "", $params = "") {
115+
function ZencoderRequest($url, $api_key = "", $params = "", $options = "") {
116116

117117
// Add api_key to url if supplied
118118
if($api_key) {
@@ -209,6 +209,11 @@ function ZencoderCURL($url, $json, $options = array()) {
209209

210210
// Check for cURL error
211211
if (curl_errno($ch)) {
212+
if (curl) {
213+
214+
} else {
215+
216+
}
212217
$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>';
213218
$this->connected = false;
214219
} else {

0 commit comments

Comments
 (0)