Skip to content

Commit

Permalink
Merge pull request #10 from simongeorges/master
Browse files Browse the repository at this point in the history
Remove use of non-existing set_asset function in README
  • Loading branch information
sebest committed May 7, 2014
2 parents bd41c58 + c7505f2 commit c83ee12
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ reference and provided as helpers to ease the Dailymotion Cloud API integration.
--------------------------

This method manages files uploads to the Dailymotion Cloud upload servers. Information pertinent
to the API media creation processus (especially the media_set_asset method) will be returned as
a `dict`.
to the API media creation processus will be returned as a `dict`.

Arguments:

Expand All @@ -52,8 +51,11 @@ Example:

# source asset upload example
$file = $cloudkey->file->upload_file('path/to/video.mov');
$media = $cloudkey->media->create();
$cloudkey->media->set_asset(array('id' => $media->id, 'asset_name' => 'source', 'url' => $file->url));
# The list of encoding assets that we want
$assets = array('mp4_h264_aac', 'mp4_h264_aac_hq', 'jpeg_thumbnail_medium', 'jpeg_thumbnail_source');
# Metadata
$meta = array('title' => 'My video', 'author' => 'Author');
$media = $cloudkey->media->create(array('assets_names' => $assets, 'meta' => $meta, 'url' => $file->url));

`media.get_embed_url(id)`
-------------------------
Expand Down

0 comments on commit c83ee12

Please sign in to comment.