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

Appearance settings

Commit e1de913

Browse filesBrowse files
committed
Fixed .com in example
1 parent f605603 commit e1de913
Copy full SHA for e1de913

File tree

Expand file treeCollapse file tree

2 files changed

+8
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+8
-3
lines changed

‎README.markdown

Copy file name to clipboardExpand all lines: README.markdown
+2-2Lines 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

Copy file name to clipboardExpand all lines: Zencoder.php
+6-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.