Skip to content

Commit ee818ef

Browse files
committed
Sync with latest API changes - HTML asset, reveal, offset, etc...
1 parent e4c19e4 commit ee818ef

23 files changed

+1105
-139
lines changed
Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* DefaultApi
3+
* EndpointsApi
44
* PHP version 5
55
*
66
* @category Class
@@ -10,14 +10,14 @@
1010
*/
1111

1212
/**
13-
* shotstack
13+
* Shotstack
1414
*
15-
* The Shotstack API is a video editing service that allows for the programatic creation of videos using JSON.
15+
* The Shotstack API is a video editing service that allows for the programatic creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details check https://shotstack.io
1616
*
1717
* The version of the OpenAPI document: v1
1818
*
1919
* Generated by: https://openapi-generator.tech
20-
* OpenAPI Generator version: 4.0.0
20+
* OpenAPI Generator version: 4.2.1
2121
*/
2222

2323
/**
@@ -40,14 +40,14 @@
4040
use Shotstack\Client\ObjectSerializer;
4141

4242
/**
43-
* DefaultApi Class Doc Comment
43+
* EndpointsApi Class Doc Comment
4444
*
4545
* @category Class
4646
* @package Shotstack\Client
4747
* @author OpenAPI Generator team
4848
* @link https://openapi-generator.tech
4949
*/
50-
class DefaultApi
50+
class EndpointsApi
5151
{
5252
/**
5353
* @var ClientInterface
@@ -116,7 +116,7 @@ public function getConfig()
116116
}
117117

118118
/**
119-
* Operation gETRenderId
119+
* Operation getRender
120120
*
121121
* @param string $id The id of the timeline render task in UUID format (required)
122122
*
@@ -126,22 +126,22 @@ public function getConfig()
126126
*/
127127
public function getRender($id)
128128
{
129-
list($response) = $this->gETRenderIdWithHttpInfo($id);
129+
list($response) = $this->getRenderWithHttpInfo($id);
130130
return $response;
131131
}
132132

133133
/**
134-
* Operation gETRenderIdWithHttpInfo
134+
* Operation getRenderWithHttpInfo
135135
*
136136
* @param string $id The id of the timeline render task in UUID format (required)
137137
*
138138
* @throws \Shotstack\Client\ApiException on non-2xx response
139139
* @throws \InvalidArgumentException
140140
* @return array of \Shotstack\Client\Model\RenderResponse, HTTP status code, HTTP response headers (array of strings)
141141
*/
142-
public function gETRenderIdWithHttpInfo($id)
142+
public function getRenderWithHttpInfo($id)
143143
{
144-
$request = $this->gETRenderIdRequest($id);
144+
$request = $this->getRenderRequest($id);
145145

146146
try {
147147
$options = $this->createHttpClientOption();
@@ -217,7 +217,7 @@ public function gETRenderIdWithHttpInfo($id)
217217
}
218218

219219
/**
220-
* Operation gETRenderIdAsync
220+
* Operation getRenderAsync
221221
*
222222
*
223223
*
@@ -226,9 +226,9 @@ public function gETRenderIdWithHttpInfo($id)
226226
* @throws \InvalidArgumentException
227227
* @return \GuzzleHttp\Promise\PromiseInterface
228228
*/
229-
public function gETRenderIdAsync($id)
229+
public function getRenderAsync($id)
230230
{
231-
return $this->gETRenderIdAsyncWithHttpInfo($id)
231+
return $this->getRenderAsyncWithHttpInfo($id)
232232
->then(
233233
function ($response) {
234234
return $response[0];
@@ -237,7 +237,7 @@ function ($response) {
237237
}
238238

239239
/**
240-
* Operation gETRenderIdAsyncWithHttpInfo
240+
* Operation getRenderAsyncWithHttpInfo
241241
*
242242
*
243243
*
@@ -246,10 +246,10 @@ function ($response) {
246246
* @throws \InvalidArgumentException
247247
* @return \GuzzleHttp\Promise\PromiseInterface
248248
*/
249-
public function gETRenderIdAsyncWithHttpInfo($id)
249+
public function getRenderAsyncWithHttpInfo($id)
250250
{
251251
$returnType = '\Shotstack\Client\Model\RenderResponse';
252-
$request = $this->gETRenderIdRequest($id);
252+
$request = $this->getRenderRequest($id);
253253

254254
return $this->client
255255
->sendAsync($request, $this->createHttpClientOption())
@@ -286,14 +286,14 @@ function ($exception) {
286286
}
287287

288288
/**
289-
* Create request for operation 'gETRenderId'
289+
* Create request for operation 'getRender'
290290
*
291291
* @param string $id The id of the timeline render task in UUID format (required)
292292
*
293293
* @throws \InvalidArgumentException
294294
* @return \GuzzleHttp\Psr7\Request
295295
*/
296-
protected function gETRenderIdRequest($id)
296+
protected function getRenderRequest($id)
297297
{
298298
// verify the required parameter 'id' is set
299299
if ($id === null || (is_array($id) && count($id) === 0)) {
@@ -302,7 +302,7 @@ protected function gETRenderIdRequest($id)
302302
);
303303
}
304304
if (!preg_match("/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/", $id)) {
305-
throw new \InvalidArgumentException("invalid value for \"id\" when calling DefaultApi.getRender, must conform to the pattern /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.");
305+
throw new \InvalidArgumentException("invalid value for \"id\" when calling EndpointsApi.getRender, must conform to the pattern /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.");
306306
}
307307

308308

@@ -393,7 +393,7 @@ protected function gETRenderIdRequest($id)
393393
}
394394

395395
/**
396-
* Operation pOSTRender
396+
* Operation postRender
397397
*
398398
* @param \Shotstack\Client\Model\Edit $edit edit (required)
399399
*
@@ -403,22 +403,22 @@ protected function gETRenderIdRequest($id)
403403
*/
404404
public function postRender($edit)
405405
{
406-
list($response) = $this->pOSTRenderWithHttpInfo($edit);
406+
list($response) = $this->postRenderWithHttpInfo($edit);
407407
return $response;
408408
}
409409

410410
/**
411-
* Operation pOSTRenderWithHttpInfo
411+
* Operation postRenderWithHttpInfo
412412
*
413413
* @param \Shotstack\Client\Model\Edit $edit (required)
414414
*
415415
* @throws \Shotstack\Client\ApiException on non-2xx response
416416
* @throws \InvalidArgumentException
417417
* @return array of \Shotstack\Client\Model\QueuedResponse, HTTP status code, HTTP response headers (array of strings)
418418
*/
419-
public function pOSTRenderWithHttpInfo($edit)
419+
public function postRenderWithHttpInfo($edit)
420420
{
421-
$request = $this->pOSTRenderRequest($edit);
421+
$request = $this->postRenderRequest($edit);
422422

423423
try {
424424
$options = $this->createHttpClientOption();
@@ -494,7 +494,7 @@ public function pOSTRenderWithHttpInfo($edit)
494494
}
495495

496496
/**
497-
* Operation pOSTRenderAsync
497+
* Operation postRenderAsync
498498
*
499499
*
500500
*
@@ -503,9 +503,9 @@ public function pOSTRenderWithHttpInfo($edit)
503503
* @throws \InvalidArgumentException
504504
* @return \GuzzleHttp\Promise\PromiseInterface
505505
*/
506-
public function pOSTRenderAsync($edit)
506+
public function postRenderAsync($edit)
507507
{
508-
return $this->pOSTRenderAsyncWithHttpInfo($edit)
508+
return $this->postRenderAsyncWithHttpInfo($edit)
509509
->then(
510510
function ($response) {
511511
return $response[0];
@@ -514,7 +514,7 @@ function ($response) {
514514
}
515515

516516
/**
517-
* Operation pOSTRenderAsyncWithHttpInfo
517+
* Operation postRenderAsyncWithHttpInfo
518518
*
519519
*
520520
*
@@ -523,10 +523,10 @@ function ($response) {
523523
* @throws \InvalidArgumentException
524524
* @return \GuzzleHttp\Promise\PromiseInterface
525525
*/
526-
public function pOSTRenderAsyncWithHttpInfo($edit)
526+
public function postRenderAsyncWithHttpInfo($edit)
527527
{
528528
$returnType = '\Shotstack\Client\Model\QueuedResponse';
529-
$request = $this->pOSTRenderRequest($edit);
529+
$request = $this->postRenderRequest($edit);
530530

531531
return $this->client
532532
->sendAsync($request, $this->createHttpClientOption())
@@ -563,14 +563,14 @@ function ($exception) {
563563
}
564564

565565
/**
566-
* Create request for operation 'pOSTRender'
566+
* Create request for operation 'postRender'
567567
*
568568
* @param \Shotstack\Client\Model\Edit $edit (required)
569569
*
570570
* @throws \InvalidArgumentException
571571
* @return \GuzzleHttp\Psr7\Request
572572
*/
573-
protected function pOSTRenderRequest($edit)
573+
protected function postRenderRequest($edit)
574574
{
575575
// verify the required parameter 'edit' is set
576576
if ($edit === null || (is_array($edit) && count($edit) === 0)) {

src/ApiException.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
*/
1111

1212
/**
13-
* shotstack
13+
* Shotstack
1414
*
15-
* The Shotstack API is a video editing service that allows for the programatic creation of videos using JSON.
15+
* The Shotstack API is a video editing service that allows for the programatic creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details check https://shotstack.io
1616
*
1717
* The version of the OpenAPI document: v1
1818
*
1919
* Generated by: https://openapi-generator.tech
20-
* OpenAPI Generator version: 4.0.0
20+
* OpenAPI Generator version: 4.2.1
2121
*/
2222

2323
/**

src/Configuration.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
*/
1111

1212
/**
13-
* shotstack
13+
* Shotstack
1414
*
15-
* The Shotstack API is a video editing service that allows for the programatic creation of videos using JSON.
15+
* The Shotstack API is a video editing service that allows for the programatic creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details check https://shotstack.io
1616
*
1717
* The version of the OpenAPI document: v1
1818
*
1919
* Generated by: https://openapi-generator.tech
20-
* OpenAPI Generator version: 4.0.0
20+
* OpenAPI Generator version: 4.2.1
2121
*/
2222

2323
/**
@@ -81,7 +81,7 @@ class Configuration
8181
*
8282
* @var string
8383
*/
84-
protected $host = 'https://api.shotstack.io/version';
84+
protected $host = 'https://api.shotstack.io/v1';
8585

8686
/**
8787
* User agent of the HTTP request, set to "OpenAPI-Generator/{version}/PHP" by default
@@ -441,7 +441,11 @@ public function getHostSettings()
441441
"variables" => array(
442442
"version" => array(
443443
"description" => "No description provided",
444-
"default_value" => "version",
444+
"default_value" => "v1",
445+
"enum_values" => array(
446+
"v1",
447+
"stage"
448+
)
445449
)
446450
)
447451
)

src/HeaderSelector.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
*/
1111

1212
/**
13-
* shotstack
13+
* Shotstack
1414
*
15-
* The Shotstack API is a video editing service that allows for the programatic creation of videos using JSON.
15+
* The Shotstack API is a video editing service that allows for the programatic creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details check https://shotstack.io
1616
*
1717
* The version of the OpenAPI document: v1
1818
*
1919
* Generated by: https://openapi-generator.tech
20-
* OpenAPI Generator version: 4.0.0
20+
* OpenAPI Generator version: 4.2.1
2121
*/
2222

2323
/**

src/Model/Asset.php

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)