Skip to content

Commit

Permalink
Create delete_token.php
Browse files Browse the repository at this point in the history
  • Loading branch information
erikkai authored Jan 21, 2022
1 parent c751aa2 commit ff02595
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions examples/delete_token.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

/* Delete a token using the token ID. */

<?php
require __DIR__ .'/vendor/autoload.php';

$apiKey = 'your API key here';
$apiVideoEndpoint = 'https://ws.api.video';

$httpClient = new \Symfony\Component\HttpClient\Psr18Client();
$client = new ApiVideo\Client\Client(
$apiVideoEndpoint,
$apiKey,
$httpClient
);

$response = $client->uploadTokens()->deleteToken('token ID here');
echo($response);

0 comments on commit ff02595

Please sign in to comment.