Skip to content

Commit

Permalink
Updated PHP client to v1.173.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Bitmovin OpenApi Bot committed Sep 19, 2023
1 parent fbe439c commit 97b91ca
Show file tree
Hide file tree
Showing 10 changed files with 233 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ To install the API client with composer, add the following to your composer.json
{
"require":
{
"bitmovin/bitmovin-api-sdk-php": "1.172.0"
"bitmovin/bitmovin-api-sdk-php": "1.173.0"
}
}
```
Expand All @@ -49,7 +49,7 @@ Then run `php composer.phar install`

OR

run the following command: `php composer.phar require bitmovin/bitmovin-api-sdk-php:1.172.0`
run the following command: `php composer.phar require bitmovin/bitmovin-api-sdk-php:1.173.0`

## Initialization

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bitmovin/bitmovin-api-sdk-php",
"description": "This is the Bitmovin API SDK for PHP",
"version": "1.172.0",
"version": "1.173.0",
"authors": [
{
"name": "Bitmovin Inc",
Expand Down
3 changes: 3 additions & 0 deletions docs/classes/BitmovinApiSdk_Apis_Streams_Live_LiveApi.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ <h2 id="synopsis">Synopsis</h2>
</li><li>public <span title="BitmovinApiSdk\Apis\Streams\Live\Start\StartApi">StartApi</span> <a href="#members">$start</a>;
</li></ul><ul class="none"><li>// methods</li><li>public void <a title="BitmovinApiSdk\Apis\Streams\Live\LiveApi" href="../classes/BitmovinApiSdk_Apis_Streams_Live_LiveApi/__construct.html">__construct</a>()
</li><li>public <span title="StreamsLiveResponse">StreamsLiveResponse</span> <a title="BitmovinApiSdk\Apis\Streams\Live\LiveApi" href="../classes/BitmovinApiSdk_Apis_Streams_Live_LiveApi/create.html">create</a>()
</li><li>public void <a title="BitmovinApiSdk\Apis\Streams\Live\LiveApi" href="../classes/BitmovinApiSdk_Apis_Streams_Live_LiveApi/delete.html">delete</a>()
</li><li>public <span title="StreamsLiveResponse">StreamsLiveResponse</span> <a title="BitmovinApiSdk\Apis\Streams\Live\LiveApi" href="../classes/BitmovinApiSdk_Apis_Streams_Live_LiveApi/get.html">get</a>()
</li><li>public <span title="StreamsLiveResponsePaginationResponse">StreamsLiveResponsePaginationResponse</span> <a title="BitmovinApiSdk\Apis\Streams\Live\LiveApi" href="../classes/BitmovinApiSdk_Apis_Streams_Live_LiveApi/list.html">list</a>()
</li><li>public <span title="StreamsLiveResponse">StreamsLiveResponse</span> <a title="BitmovinApiSdk\Apis\Streams\Live\LiveApi" href="../classes/BitmovinApiSdk_Apis_Streams_Live_LiveApi/patchStreamsLive.html">patchStreamsLive</a>()
Expand Down Expand Up @@ -94,6 +95,8 @@ <h4>public</h4>
— LiveApi constructor.</li>
<li id="create"><a title="BitmovinApiSdk\Apis\Streams\Live\LiveApi" href="../classes/BitmovinApiSdk_Apis_Streams_Live_LiveApi/create.html">create()</a>
— Create new live stream</li>
<li id="delete"><a title="BitmovinApiSdk\Apis\Streams\Live\LiveApi" href="../classes/BitmovinApiSdk_Apis_Streams_Live_LiveApi/delete.html">delete()</a>
— Delete Stream</li>
<li id="get"><a title="BitmovinApiSdk\Apis\Streams\Live\LiveApi" href="../classes/BitmovinApiSdk_Apis_Streams_Live_LiveApi/get.html">get()</a>
— Get live stream by id</li>
<li id="list"><a title="BitmovinApiSdk\Apis\Streams\Live\LiveApi" href="../classes/BitmovinApiSdk_Apis_Streams_Live_LiveApi/list.html">list()</a>
Expand Down
96 changes: 96 additions & 0 deletions docs/classes/BitmovinApiSdk_Apis_Streams_Live_LiveApi/delete.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html SYSTEM "about:legacy-compat">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>phpDox - BitmovinApiSdk\Apis\Streams\Live\LiveApi::delete</title>
<link rel="stylesheet" type="text/css" href="../../css/style.css" media="screen"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<nav class="topnav">
<ul>
<li>
<div class="logo"><span>/**</span>phpDox</div>
</li>
<li class="separator">
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../namespaces.html">Namespaces</a>
</li>
<li>
<a href="../../interfaces.html">Interfaces</a>
</li>
<li>
<a href="../../classes.html">Classes</a>
</li>
</ul>
</nav>
<div id="mainstage">
<div class="box">
<ul class="breadcrumb">
<li>
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../../classes.html#BitmovinApiSdk_Apis_Streams_Live">BitmovinApiSdk\Apis\Streams\Live</a>
</li>
<li class="separator">
<a title="BitmovinApiSdk\Apis\Streams\Live\LiveApi" href="../../classes/BitmovinApiSdk_Apis_Streams_Live_LiveApi.html">LiveApi</a>
</li>
<li class="separator">delete</li>
</ul>
</div>
<nav class="box">
<ul>
<li>
<a href="#introduction">Introduction</a>
</li>
<li>
<a href="#synopsis">Synopsis</a>
</li>
<li>
<a href="#parameter">Parameter</a>
</li>
<li>
<a href="#throws">Throws</a>
</li>
</ul>
</nav>
<section>
<h1><small>BitmovinApiSdk\Apis\Streams\Live\LiveApi::</small>delete</h1>
<h4>Delete Stream</h4>
<p/>
<ul/>
<h2 id="signature">Signature</h2>
<div class="styled synopsis">
<code>public function delete(string
$streamId )
</code>
</div>
<h2 id="parameterlist">Parameters</h2>
<dl class="styled">
<dt><code>$streamId</code>
string</dt>
<dd/>
</dl>
<h2 id="throws">Errors/Exceptions</h2>
<dl class="styled">
<dt>
<code>
<a title="BitmovinApiSdk\Common\BitmovinApiException" href="../../classes/BitmovinApiSdk_Common_BitmovinApiException.html">BitmovinApiException</a>
</code>
</dt>
<dd/>
</dl>
</section>
</div>
<footer>
<span>Generated using phpDox 0.12.0 - Copyright (C) 2010 - 2023 by Arne Blankerts and Contributors</span>
</footer>
</body>
</html>
3 changes: 3 additions & 0 deletions docs/classes/BitmovinApiSdk_Apis_Streams_Video_VideoApi.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ <h2 id="synopsis">Synopsis</h2>
<div class="synopsis">class VideoApi
{<br/><ul class="none"><li>// methods</li><li>public void <a title="BitmovinApiSdk\Apis\Streams\Video\VideoApi" href="../classes/BitmovinApiSdk_Apis_Streams_Video_VideoApi/__construct.html">__construct</a>()
</li><li>public <span title="StreamsVideoResponse">StreamsVideoResponse</span> <a title="BitmovinApiSdk\Apis\Streams\Video\VideoApi" href="../classes/BitmovinApiSdk_Apis_Streams_Video_VideoApi/create.html">create</a>()
</li><li>public void <a title="BitmovinApiSdk\Apis\Streams\Video\VideoApi" href="../classes/BitmovinApiSdk_Apis_Streams_Video_VideoApi/delete.html">delete</a>()
</li><li>public <span title="StreamsVideoResponse">StreamsVideoResponse</span> <a title="BitmovinApiSdk\Apis\Streams\Video\VideoApi" href="../classes/BitmovinApiSdk_Apis_Streams_Video_VideoApi/get.html">get</a>()
</li><li>public <span title="StreamsVideoResponsePaginationResponse">StreamsVideoResponsePaginationResponse</span> <a title="BitmovinApiSdk\Apis\Streams\Video\VideoApi" href="../classes/BitmovinApiSdk_Apis_Streams_Video_VideoApi/list.html">list</a>()
</li><li>public <span title="StreamsVideoResponse">StreamsVideoResponse</span> <a title="BitmovinApiSdk\Apis\Streams\Video\VideoApi" href="../classes/BitmovinApiSdk_Apis_Streams_Video_VideoApi/patchStreamsVideo.html">patchStreamsVideo</a>()
Expand All @@ -76,6 +77,8 @@ <h4>public</h4>
— VideoApi constructor.</li>
<li id="create"><a title="BitmovinApiSdk\Apis\Streams\Video\VideoApi" href="../classes/BitmovinApiSdk_Apis_Streams_Video_VideoApi/create.html">create()</a>
— Create new Streams video</li>
<li id="delete"><a title="BitmovinApiSdk\Apis\Streams\Video\VideoApi" href="../classes/BitmovinApiSdk_Apis_Streams_Video_VideoApi/delete.html">delete()</a>
— Delete Stream</li>
<li id="get"><a title="BitmovinApiSdk\Apis\Streams\Video\VideoApi" href="../classes/BitmovinApiSdk_Apis_Streams_Video_VideoApi/get.html">get()</a>
— Get Streams video by id</li>
<li id="list"><a title="BitmovinApiSdk\Apis\Streams\Video\VideoApi" href="../classes/BitmovinApiSdk_Apis_Streams_Video_VideoApi/list.html">list()</a>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html SYSTEM "about:legacy-compat">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>phpDox - BitmovinApiSdk\Apis\Streams\Video\VideoApi::delete</title>
<link rel="stylesheet" type="text/css" href="../../css/style.css" media="screen"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<nav class="topnav">
<ul>
<li>
<div class="logo"><span>/**</span>phpDox</div>
</li>
<li class="separator">
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../namespaces.html">Namespaces</a>
</li>
<li>
<a href="../../interfaces.html">Interfaces</a>
</li>
<li>
<a href="../../classes.html">Classes</a>
</li>
</ul>
</nav>
<div id="mainstage">
<div class="box">
<ul class="breadcrumb">
<li>
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../../classes.html#BitmovinApiSdk_Apis_Streams_Video">BitmovinApiSdk\Apis\Streams\Video</a>
</li>
<li class="separator">
<a title="BitmovinApiSdk\Apis\Streams\Video\VideoApi" href="../../classes/BitmovinApiSdk_Apis_Streams_Video_VideoApi.html">VideoApi</a>
</li>
<li class="separator">delete</li>
</ul>
</div>
<nav class="box">
<ul>
<li>
<a href="#introduction">Introduction</a>
</li>
<li>
<a href="#synopsis">Synopsis</a>
</li>
<li>
<a href="#parameter">Parameter</a>
</li>
<li>
<a href="#throws">Throws</a>
</li>
</ul>
</nav>
<section>
<h1><small>BitmovinApiSdk\Apis\Streams\Video\VideoApi::</small>delete</h1>
<h4>Delete Stream</h4>
<p/>
<ul/>
<h2 id="signature">Signature</h2>
<div class="styled synopsis">
<code>public function delete(string
$streamId )
</code>
</div>
<h2 id="parameterlist">Parameters</h2>
<dl class="styled">
<dt><code>$streamId</code>
string</dt>
<dd/>
</dl>
<h2 id="throws">Errors/Exceptions</h2>
<dl class="styled">
<dt>
<code>
<a title="BitmovinApiSdk\Common\BitmovinApiException" href="../../classes/BitmovinApiSdk_Common_BitmovinApiException.html">BitmovinApiException</a>
</code>
</dt>
<dd/>
</dl>
</section>
</div>
<footer>
<span>Generated using phpDox 0.12.0 - Copyright (C) 2010 - 2023 by Arne Blankerts and Contributors</span>
</footer>
</body>
</html>
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h2>Software Documentation</h2>
</div>
<div id="buildinfo">
<h3>Build</h3>
<p>Tue, 05 Sep 2023 11:01:11 +0000</p>
<p>Tue, 19 Sep 2023 14:05:31 +0000</p>
<h3>VCS Info</h3>
<p>
tag: <br/>
Expand Down
15 changes: 15 additions & 0 deletions src/Apis/Streams/Live/LiveApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,21 @@ public function create(\BitmovinApiSdk\Models\StreamsLiveCreateRequest $streamsL
return ObjectMapper::map($response, \BitmovinApiSdk\Models\StreamsLiveResponse::class);
}

/**
* Delete Stream
*
* @param string $streamId
* @throws BitmovinApiException
*/
public function delete(string $streamId)
{
$pathParams = [
'stream_id' => $streamId,
];

$this->httpWrapper->request('DELETE', '/streams/live/{stream_id}', $pathParams, null, null, false);
}

/**
* Get live stream by id
*
Expand Down
15 changes: 15 additions & 0 deletions src/Apis/Streams/Video/VideoApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,21 @@ public function create(\BitmovinApiSdk\Models\StreamsVideoCreateRequest $streams
return ObjectMapper::map($response, \BitmovinApiSdk\Models\StreamsVideoResponse::class);
}

/**
* Delete Stream
*
* @param string $streamId
* @throws BitmovinApiException
*/
public function delete(string $streamId)
{
$pathParams = [
'stream_id' => $streamId,
];

$this->httpWrapper->request('DELETE', '/streams/video/{stream_id}', $pathParams, null, null, false);
}

/**
* Get Streams video by id
*
Expand Down
2 changes: 1 addition & 1 deletion src/Common/Middleware/CustomApiHeaders.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function __construct(string $apiKey, ?string $tenantOrgId)
'Content-Type' => 'application/json',
'X-Api-Key' => $apiKey,
'X-Api-Client' => 'bitmovin-api-sdk-php',
'X-Api-Client-Version' => '1.172.0',
'X-Api-Client-Version' => '1.173.0',
];

if ($tenantOrgId !== null) {
Expand Down

0 comments on commit 97b91ca

Please sign in to comment.