Clarify/clarify-php

View on GitHub
examples/delete.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

// Don't forget to rename credentials-dist.php to credentials.php and insert your API key
require __DIR__ . '/credentials.php';
require __DIR__.'/../vendor/autoload.php';

$bundle = new \Clarify\Bundle($apikey);

$results = $bundle->index();
$item = $results['_links']['items'][0];

echo $item['href'] . "\n";

$bundle->delete($item['href']);
$bundle->load($item['href']);

echo $bundle->getStatusCode() . "\n";