Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit7b10fbb

Browse files
author
Michael Christopher
committed
Updating job create example to use arrays
1 parent9793df6 commit7b10fbb

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)

[8]ページ先頭

©2009-2025 Movatter.jp