shotstack 0.1.11 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shotstack/api/edit_api.rb +1 -1
- data/lib/shotstack/api/serve_api.rb +1 -1
- data/lib/shotstack/api_client.rb +1 -1
- data/lib/shotstack/api_error.rb +1 -1
- data/lib/shotstack/configuration.rb +1 -1
- data/lib/shotstack/models/asset.rb +42 -11
- data/lib/shotstack/models/asset_render_response.rb +1 -1
- data/lib/shotstack/models/asset_response.rb +1 -1
- data/lib/shotstack/models/asset_response_attributes.rb +1 -1
- data/lib/shotstack/models/asset_response_data.rb +1 -1
- data/lib/shotstack/models/audio_asset.rb +2 -3
- data/lib/shotstack/models/clip.rb +1 -2
- data/lib/shotstack/models/crop.rb +1 -1
- data/lib/shotstack/models/destinations.rb +256 -0
- data/lib/shotstack/models/edit.rb +3 -3
- data/lib/shotstack/models/flip_transformation.rb +1 -1
- data/lib/shotstack/models/font.rb +1 -1
- data/lib/shotstack/models/html_asset.rb +4 -5
- data/lib/shotstack/models/image_asset.rb +2 -3
- data/lib/shotstack/models/luma_asset.rb +2 -3
- data/lib/shotstack/models/merge_field.rb +2 -2
- data/lib/shotstack/models/mux_destination.rb +236 -0
- data/lib/shotstack/models/mux_destination_options.rb +244 -0
- data/lib/shotstack/models/offset.rb +1 -1
- data/lib/shotstack/models/output.rb +1 -2
- data/lib/shotstack/models/poster.rb +1 -1
- data/lib/shotstack/models/probe_response.rb +1 -1
- data/lib/shotstack/models/queued_response.rb +1 -1
- data/lib/shotstack/models/queued_response_data.rb +1 -1
- data/lib/shotstack/models/range.rb +1 -1
- data/lib/shotstack/models/render_response.rb +1 -1
- data/lib/shotstack/models/render_response_data.rb +1 -1
- data/lib/shotstack/models/rotate_transformation.rb +1 -1
- data/lib/shotstack/models/shotstack_destination.rb +2 -3
- data/lib/shotstack/models/size.rb +1 -1
- data/lib/shotstack/models/skew_transformation.rb +1 -1
- data/lib/shotstack/models/soundtrack.rb +1 -1
- data/lib/shotstack/models/thumbnail.rb +1 -1
- data/lib/shotstack/models/timeline.rb +2 -2
- data/lib/shotstack/models/title_asset.rb +2 -3
- data/lib/shotstack/models/track.rb +1 -1
- data/lib/shotstack/models/transformation.rb +1 -1
- data/lib/shotstack/models/transition.rb +1 -1
- data/lib/shotstack/models/video_asset.rb +2 -3
- data/lib/shotstack/version.rb +2 -2
- data/lib/shotstack.rb +5 -2
- data/shotstack.gemspec +1 -1
- metadata +8 -7
- data/lib/shotstack/api/endpoints_api.rb +0 -158
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#Shotstack
|
3
3
|
|
4
|
-
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.
|
4
|
+
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: <b>https://api.shotstack.io/{version}</b> The Serve API base URL is: <b>https://api.shotstack.io/serve/{version}</b>
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
@@ -12,11 +12,10 @@ OpenAPI Generator version: 5.4.0
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
|
-
require_relative 'destinations'
|
16
15
|
|
17
16
|
module Shotstack
|
18
17
|
# Send rendered assets to the Shotstack hosting and CDN service. This destination is enabled by default.
|
19
|
-
class ShotstackDestination
|
18
|
+
class ShotstackDestination
|
20
19
|
# The destination to send rendered assets to - set to `shotstack` for Shotstack hosting and CDN.
|
21
20
|
attr_accessor :provider
|
22
21
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#Shotstack
|
3
3
|
|
4
|
-
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.
|
4
|
+
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: <b>https://api.shotstack.io/{version}</b> The Serve API base URL is: <b>https://api.shotstack.io/serve/{version}</b>
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#Shotstack
|
3
3
|
|
4
|
-
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.
|
4
|
+
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: <b>https://api.shotstack.io/{version}</b> The Serve API base URL is: <b>https://api.shotstack.io/serve/{version}</b>
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#Shotstack
|
3
3
|
|
4
|
-
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.
|
4
|
+
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: <b>https://api.shotstack.io/{version}</b> The Serve API base URL is: <b>https://api.shotstack.io/serve/{version}</b>
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#Shotstack
|
3
3
|
|
4
|
-
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.
|
4
|
+
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: <b>https://api.shotstack.io/{version}</b> The Serve API base URL is: <b>https://api.shotstack.io/serve/{version}</b>
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#Shotstack
|
3
3
|
|
4
|
-
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.
|
4
|
+
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: <b>https://api.shotstack.io/{version}</b> The Serve API base URL is: <b>https://api.shotstack.io/serve/{version}</b>
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
@@ -27,7 +27,7 @@ module Shotstack
|
|
27
27
|
# A timeline consists of an array of tracks, each track containing clips. Tracks are layered on top of each other in the same order they are added to the array with the top most track layered over the top of those below it. Ensure that a track containing titles is the top most track so that it is displayed above videos and images.
|
28
28
|
attr_accessor :tracks
|
29
29
|
|
30
|
-
# Disable the caching of ingested source footage and assets. See [caching](https://shotstack.
|
30
|
+
# Disable the caching of ingested source footage and assets. See [caching](https://shotstack.io/docs/guide/architecting-an-application/caching) for more details.
|
31
31
|
attr_accessor :cache
|
32
32
|
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#Shotstack
|
3
3
|
|
4
|
-
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.
|
4
|
+
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: <b>https://api.shotstack.io/{version}</b> The Serve API base URL is: <b>https://api.shotstack.io/serve/{version}</b>
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
@@ -12,11 +12,10 @@ OpenAPI Generator version: 5.4.0
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
|
-
require_relative 'asset'
|
16
15
|
|
17
16
|
module Shotstack
|
18
17
|
# The TitleAsset clip type lets you create video titles from a text string and apply styling and positioning.
|
19
|
-
class TitleAsset
|
18
|
+
class TitleAsset
|
20
19
|
# The type of asset - set to `title` for titles.
|
21
20
|
attr_accessor :type
|
22
21
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#Shotstack
|
3
3
|
|
4
|
-
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.
|
4
|
+
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: <b>https://api.shotstack.io/{version}</b> The Serve API base URL is: <b>https://api.shotstack.io/serve/{version}</b>
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#Shotstack
|
3
3
|
|
4
|
-
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.
|
4
|
+
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: <b>https://api.shotstack.io/{version}</b> The Serve API base URL is: <b>https://api.shotstack.io/serve/{version}</b>
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#Shotstack
|
3
3
|
|
4
|
-
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.
|
4
|
+
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: <b>https://api.shotstack.io/{version}</b> The Serve API base URL is: <b>https://api.shotstack.io/serve/{version}</b>
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#Shotstack
|
3
3
|
|
4
|
-
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.
|
4
|
+
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: <b>https://api.shotstack.io/{version}</b> The Serve API base URL is: <b>https://api.shotstack.io/serve/{version}</b>
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
@@ -12,11 +12,10 @@ OpenAPI Generator version: 5.4.0
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
|
-
require_relative 'asset'
|
16
15
|
|
17
16
|
module Shotstack
|
18
17
|
# The VideoAsset is used to create video sequences from video files. The src must be a publicly accessible URL to a video resource such as an mp4 file.
|
19
|
-
class VideoAsset
|
18
|
+
class VideoAsset
|
20
19
|
# The type of asset - set to `video` for videos.
|
21
20
|
attr_accessor :type
|
22
21
|
|
data/lib/shotstack/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#Shotstack
|
3
3
|
|
4
|
-
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.
|
4
|
+
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: <b>https://api.shotstack.io/{version}</b> The Serve API base URL is: <b>https://api.shotstack.io/serve/{version}</b>
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.4.0
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module Shotstack
|
14
|
-
VERSION = '0.
|
14
|
+
VERSION = '0.2.0'
|
15
15
|
end
|
data/lib/shotstack.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#Shotstack
|
3
3
|
|
4
|
-
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.
|
4
|
+
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: <b>https://api.shotstack.io/{version}</b> The Serve API base URL is: <b>https://api.shotstack.io/serve/{version}</b>
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
@@ -17,6 +17,7 @@ require 'shotstack/version'
|
|
17
17
|
require 'shotstack/configuration'
|
18
18
|
|
19
19
|
# Models
|
20
|
+
require 'shotstack/models/asset'
|
20
21
|
require 'shotstack/models/asset_render_response'
|
21
22
|
require 'shotstack/models/asset_response'
|
22
23
|
require 'shotstack/models/asset_response_attributes'
|
@@ -24,6 +25,7 @@ require 'shotstack/models/asset_response_data'
|
|
24
25
|
require 'shotstack/models/audio_asset'
|
25
26
|
require 'shotstack/models/clip'
|
26
27
|
require 'shotstack/models/crop'
|
28
|
+
require 'shotstack/models/destinations'
|
27
29
|
require 'shotstack/models/edit'
|
28
30
|
require 'shotstack/models/flip_transformation'
|
29
31
|
require 'shotstack/models/font'
|
@@ -31,6 +33,8 @@ require 'shotstack/models/html_asset'
|
|
31
33
|
require 'shotstack/models/image_asset'
|
32
34
|
require 'shotstack/models/luma_asset'
|
33
35
|
require 'shotstack/models/merge_field'
|
36
|
+
require 'shotstack/models/mux_destination'
|
37
|
+
require 'shotstack/models/mux_destination_options'
|
34
38
|
require 'shotstack/models/offset'
|
35
39
|
require 'shotstack/models/output'
|
36
40
|
require 'shotstack/models/poster'
|
@@ -55,7 +59,6 @@ require 'shotstack/models/video_asset'
|
|
55
59
|
|
56
60
|
# APIs
|
57
61
|
require 'shotstack/api/edit_api'
|
58
|
-
require 'shotstack/api/endpoints_api'
|
59
62
|
require 'shotstack/api/serve_api'
|
60
63
|
|
61
64
|
module Shotstack
|
data/shotstack.gemspec
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
=begin
|
4
4
|
#Shotstack
|
5
5
|
|
6
|
-
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.
|
6
|
+
#Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: <b>https://api.shotstack.io/{version}</b> The Serve API base URL is: <b>https://api.shotstack.io/serve/{version}</b>
|
7
7
|
|
8
8
|
The version of the OpenAPI document: v1
|
9
9
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shotstack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shotstack
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03
|
11
|
+
date: 2022-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -67,7 +67,6 @@ files:
|
|
67
67
|
- README.md
|
68
68
|
- lib/shotstack.rb
|
69
69
|
- lib/shotstack/api/edit_api.rb
|
70
|
-
- lib/shotstack/api/endpoints_api.rb
|
71
70
|
- lib/shotstack/api/serve_api.rb
|
72
71
|
- lib/shotstack/api_client.rb
|
73
72
|
- lib/shotstack/api_error.rb
|
@@ -88,6 +87,8 @@ files:
|
|
88
87
|
- lib/shotstack/models/image_asset.rb
|
89
88
|
- lib/shotstack/models/luma_asset.rb
|
90
89
|
- lib/shotstack/models/merge_field.rb
|
90
|
+
- lib/shotstack/models/mux_destination.rb
|
91
|
+
- lib/shotstack/models/mux_destination_options.rb
|
91
92
|
- lib/shotstack/models/offset.rb
|
92
93
|
- lib/shotstack/models/output.rb
|
93
94
|
- lib/shotstack/models/poster.rb
|
@@ -115,7 +116,7 @@ homepage: https://shotstack.io
|
|
115
116
|
licenses:
|
116
117
|
- MIT
|
117
118
|
metadata: {}
|
118
|
-
post_install_message:
|
119
|
+
post_install_message:
|
119
120
|
rdoc_options: []
|
120
121
|
require_paths:
|
121
122
|
- lib
|
@@ -130,8 +131,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
131
|
- !ruby/object:Gem::Version
|
131
132
|
version: '0'
|
132
133
|
requirements: []
|
133
|
-
rubygems_version: 3.0.
|
134
|
-
signing_key:
|
134
|
+
rubygems_version: 3.0.1
|
135
|
+
signing_key:
|
135
136
|
specification_version: 4
|
136
137
|
summary: Shotstack SDK Ruby Gem
|
137
138
|
test_files: []
|
@@ -1,158 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Shotstack
|
3
|
-
|
4
|
-
#The Shotstack API is a video editing service that allows for the automated 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 visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation.
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v1
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.0.0
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'cgi'
|
14
|
-
|
15
|
-
module Shotstack
|
16
|
-
class EndpointsApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
# Get Render Status
|
23
|
-
# Get the rendering status, video url and details of a timeline by ID.
|
24
|
-
# @param id [String] The id of the timeline render task in UUID format
|
25
|
-
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [RenderResponse]
|
27
|
-
def get_render(id, opts = {})
|
28
|
-
data, _status_code, _headers = get_render_with_http_info(id, opts)
|
29
|
-
data
|
30
|
-
end
|
31
|
-
|
32
|
-
# Get Render Status
|
33
|
-
# Get the rendering status, video url and details of a timeline by ID.
|
34
|
-
# @param id [String] The id of the timeline render task in UUID format
|
35
|
-
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(RenderResponse, Integer, Hash)>] RenderResponse data, response status code and response headers
|
37
|
-
def get_render_with_http_info(id, opts = {})
|
38
|
-
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API: EndpointsApi.get_render ...'
|
40
|
-
end
|
41
|
-
# verify the required parameter 'id' is set
|
42
|
-
if @api_client.config.client_side_validation && id.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling EndpointsApi.get_render"
|
44
|
-
end
|
45
|
-
pattern = Regexp.new(/^[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}$/)
|
46
|
-
if @api_client.config.client_side_validation && id !~ pattern
|
47
|
-
fail ArgumentError, "invalid value for 'id' when calling EndpointsApi.get_render, must conform to the pattern #{pattern}."
|
48
|
-
end
|
49
|
-
|
50
|
-
# resource path
|
51
|
-
local_var_path = '/render/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
52
|
-
|
53
|
-
# query parameters
|
54
|
-
query_params = opts[:query_params] || {}
|
55
|
-
|
56
|
-
# header parameters
|
57
|
-
header_params = opts[:header_params] || {}
|
58
|
-
# HTTP header 'Accept' (if needed)
|
59
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
60
|
-
|
61
|
-
# form parameters
|
62
|
-
form_params = opts[:form_params] || {}
|
63
|
-
|
64
|
-
# http body (model)
|
65
|
-
post_body = opts[:debug_body]
|
66
|
-
|
67
|
-
# return_type
|
68
|
-
return_type = opts[:debug_return_type] || 'RenderResponse'
|
69
|
-
|
70
|
-
# auth_names
|
71
|
-
auth_names = opts[:debug_auth_names] || ['DeveloperKey']
|
72
|
-
|
73
|
-
new_options = opts.merge(
|
74
|
-
:operation => :"EndpointsApi.get_render",
|
75
|
-
:header_params => header_params,
|
76
|
-
:query_params => query_params,
|
77
|
-
:form_params => form_params,
|
78
|
-
:body => post_body,
|
79
|
-
:auth_names => auth_names,
|
80
|
-
:return_type => return_type
|
81
|
-
)
|
82
|
-
|
83
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
84
|
-
if @api_client.config.debugging
|
85
|
-
@api_client.config.logger.debug "API called: EndpointsApi#get_render\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
|
-
end
|
87
|
-
return data, status_code, headers
|
88
|
-
end
|
89
|
-
|
90
|
-
# Render Video
|
91
|
-
# Queue and render the contents of a timeline as a video file.
|
92
|
-
# @param edit [Edit] The video edit specified using JSON.
|
93
|
-
# @param [Hash] opts the optional parameters
|
94
|
-
# @option opts [String] :x_api_queue_id The id of a dedicated queue (enterprise customers only).
|
95
|
-
# @return [QueuedResponse]
|
96
|
-
def post_render(edit, opts = {})
|
97
|
-
data, _status_code, _headers = post_render_with_http_info(edit, opts)
|
98
|
-
data
|
99
|
-
end
|
100
|
-
|
101
|
-
# Render Video
|
102
|
-
# Queue and render the contents of a timeline as a video file.
|
103
|
-
# @param edit [Edit] The video edit specified using JSON.
|
104
|
-
# @param [Hash] opts the optional parameters
|
105
|
-
# @option opts [String] :x_api_queue_id The id of a dedicated queue (enterprise customers only).
|
106
|
-
# @return [Array<(QueuedResponse, Integer, Hash)>] QueuedResponse data, response status code and response headers
|
107
|
-
def post_render_with_http_info(edit, opts = {})
|
108
|
-
if @api_client.config.debugging
|
109
|
-
@api_client.config.logger.debug 'Calling API: EndpointsApi.post_render ...'
|
110
|
-
end
|
111
|
-
# verify the required parameter 'edit' is set
|
112
|
-
if @api_client.config.client_side_validation && edit.nil?
|
113
|
-
fail ArgumentError, "Missing the required parameter 'edit' when calling EndpointsApi.post_render"
|
114
|
-
end
|
115
|
-
# resource path
|
116
|
-
local_var_path = '/render'
|
117
|
-
|
118
|
-
# query parameters
|
119
|
-
query_params = opts[:query_params] || {}
|
120
|
-
|
121
|
-
# header parameters
|
122
|
-
header_params = opts[:header_params] || {}
|
123
|
-
# HTTP header 'Accept' (if needed)
|
124
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
125
|
-
# HTTP header 'Content-Type'
|
126
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
127
|
-
header_params[:'x-api-queue-id'] = opts[:'x_api_queue_id'] if !opts[:'x_api_queue_id'].nil?
|
128
|
-
|
129
|
-
# form parameters
|
130
|
-
form_params = opts[:form_params] || {}
|
131
|
-
|
132
|
-
# http body (model)
|
133
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(edit)
|
134
|
-
|
135
|
-
# return_type
|
136
|
-
return_type = opts[:debug_return_type] || 'QueuedResponse'
|
137
|
-
|
138
|
-
# auth_names
|
139
|
-
auth_names = opts[:debug_auth_names] || ['DeveloperKey']
|
140
|
-
|
141
|
-
new_options = opts.merge(
|
142
|
-
:operation => :"EndpointsApi.post_render",
|
143
|
-
:header_params => header_params,
|
144
|
-
:query_params => query_params,
|
145
|
-
:form_params => form_params,
|
146
|
-
:body => post_body,
|
147
|
-
:auth_names => auth_names,
|
148
|
-
:return_type => return_type
|
149
|
-
)
|
150
|
-
|
151
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
152
|
-
if @api_client.config.debugging
|
153
|
-
@api_client.config.logger.debug "API called: EndpointsApi#post_render\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
154
|
-
end
|
155
|
-
return data, status_code, headers
|
156
|
-
end
|
157
|
-
end
|
158
|
-
end
|