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

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