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 7b10fbb

Browse filesBrowse files
author
Michael Christopher
committed
Updating job create example to use arrays
1 parent 9793df6 commit 7b10fbb
Copy full SHA for 7b10fbb

File tree

1 file changed

+10
-10
lines changed
Filter options

1 file changed

+10
-10
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,16 @@ and pass it as the parameters for a new ZencoderJob object. Execute the script o
6060
$zencoder = new Services_Zencoder('93h630j1dsyshjef620qlkavnmzui3');
6161

6262
// New Encoding Job
63-
$encoding_job = $zencoder->jobs->create('
64-
{
65-
"input": "s3://bucket-name/file-name.avi",
66-
"outputs": [
67-
{
68-
"label": "web"
69-
}
70-
]
71-
}
72-
');
63+
$encoding_job = $zencoder->jobs->create(
64+
array(
65+
"input" => "s3://bucket-name/file-name.avi",
66+
"outputs" => array(
67+
array(
68+
"label" => "web"
69+
)
70+
)
71+
)
72+
);
7373

7474
// Success if we got here
7575
echo "w00t! \n\n";

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.