Skip to content

Commit 7b10fbb

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

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines 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)