Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 940 Bytes

assets.md

File metadata and controls

38 lines (26 loc) · 940 Bytes

Repo / Releases API

Back to the "Repos API" | Back to the navigation

List all assets by release

$assets = $client->api('repo')->releases()->assets()->all('twbs', 'bootstrap', $releaseId);

List one asset

$asset = $client->api('repo')->releases()->assets()->show('twbs', 'bootstrap', $assetId);

Download binary content of asset

$asset = $client->api('repo')->releases()->assets()->show('twbs', 'bootstrap', $assetId, true);

Create an asset

$asset = $client->api('repo')->releases()->assets()->create('twbs', 'bootstrap', $releaseId, $name, $contentType, $content);

Edit an asset

$asset = $client->api('repo')->releases()->assets()->edit('twbs', 'bootstrap', $assetId, array('name' => 'New name'));

Remove an asset

$asset = $client->api('repo')->releases()->assets()->remove('twbs', 'bootstrap', $assetId);