+
+
+
+ BitmovinApiSdk\Apis\Streams\Live\LiveApi::delete
+ Delete Stream
+
+
+ Signature
+
+ public function delete(string
+ $streamId )
+
+
+ Parameters
+
+ $streamId
+ —
+ string
+
+
+ Errors/Exceptions
+
+ -
+
+ BitmovinApiException
+
+
+
+
+
+
+
Build
-
Tue, 05 Sep 2023 11:01:11 +0000
+
Tue, 19 Sep 2023 14:05:31 +0000
VCS Info
tag:
diff --git a/src/Apis/Streams/Live/LiveApi.php b/src/Apis/Streams/Live/LiveApi.php
index 650767bed..85808f340 100644
--- a/src/Apis/Streams/Live/LiveApi.php
+++ b/src/Apis/Streams/Live/LiveApi.php
@@ -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
*
diff --git a/src/Apis/Streams/Video/VideoApi.php b/src/Apis/Streams/Video/VideoApi.php
index c90437c40..872f22b78 100644
--- a/src/Apis/Streams/Video/VideoApi.php
+++ b/src/Apis/Streams/Video/VideoApi.php
@@ -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
*
diff --git a/src/Common/Middleware/CustomApiHeaders.php b/src/Common/Middleware/CustomApiHeaders.php
index c23e2438c..eba31b904 100644
--- a/src/Common/Middleware/CustomApiHeaders.php
+++ b/src/Common/Middleware/CustomApiHeaders.php
@@ -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) {