Skip to content

Commit

Permalink
Remove use of not existing set_asset function in README
Browse files Browse the repository at this point in the history
  • Loading branch information
simongeorges committed Jan 4, 2013
1 parent 61fbd23 commit 0680597
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,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' => basename($file->uri), '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 0680597

Please sign in to comment.