shotstack 0.0.9 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +17 -0
  3. data/lib/shotstack.rb +31 -15
  4. data/lib/shotstack/api/endpoints_api.rb +149 -0
  5. data/lib/shotstack/api_client.rb +142 -74
  6. data/lib/shotstack/api_error.rb +38 -5
  7. data/lib/shotstack/configuration.rb +93 -5
  8. data/lib/shotstack/models/asset.rb +17 -0
  9. data/lib/shotstack/models/audio_asset.rb +251 -0
  10. data/lib/shotstack/models/clip.rb +395 -0
  11. data/lib/shotstack/models/edit.rb +121 -42
  12. data/lib/shotstack/models/font.rb +213 -0
  13. data/lib/shotstack/models/html_asset.rb +319 -0
  14. data/lib/shotstack/models/image_asset.rb +231 -0
  15. data/lib/shotstack/models/luma_asset.rb +241 -0
  16. data/lib/shotstack/models/offset.rb +266 -0
  17. data/lib/shotstack/models/output.rb +207 -46
  18. data/lib/shotstack/models/poster.rb +213 -0
  19. data/lib/shotstack/models/queued_response.rb +121 -49
  20. data/lib/shotstack/models/queued_response_data.rb +116 -46
  21. data/lib/shotstack/models/render_response.rb +121 -49
  22. data/lib/shotstack/models/render_response_data.rb +193 -69
  23. data/lib/shotstack/models/soundtrack.rb +152 -42
  24. data/lib/shotstack/models/thumbnail.rb +228 -0
  25. data/lib/shotstack/models/timeline.rb +124 -45
  26. data/lib/shotstack/models/title_asset.rb +354 -0
  27. data/lib/shotstack/models/track.rb +100 -34
  28. data/lib/shotstack/models/transition.rb +132 -43
  29. data/lib/shotstack/models/video_asset.rb +251 -0
  30. data/lib/shotstack/version.rb +13 -1
  31. data/shotstack.gemspec +23 -16
  32. metadata +37 -150
  33. data/lib/shotstack/api/render_api.rb +0 -137
  34. data/lib/shotstack/models/clips.rb +0 -147
  35. data/lib/shotstack/models/image_clip.rb +0 -216
  36. data/lib/shotstack/models/image_clip_options.rb +0 -175
  37. data/lib/shotstack/models/title_clip.rb +0 -216
  38. data/lib/shotstack/models/title_clip_options.rb +0 -194
  39. data/lib/shotstack/models/video_clip.rb +0 -216
  40. data/lib/shotstack/models/video_clip_options.rb +0 -185
  41. data/tags +0 -306
@@ -1,3 +1,15 @@
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 check https://shotstack.io
5
+
6
+ The version of the OpenAPI document: v1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.1
10
+
11
+ =end
12
+
1
13
  module Shotstack
2
- VERSION = "0.0.9"
14
+ VERSION = '0.1.2'
3
15
  end
@@ -1,4 +1,17 @@
1
1
  # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #Shotstack
5
+
6
+ #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 check https://shotstack.io
7
+
8
+ The version of the OpenAPI document: v1
9
+
10
+ Generated by: https://openapi-generator.tech
11
+ OpenAPI Generator version: 4.2.1
12
+
13
+ =end
14
+
2
15
  $:.push File.expand_path("../lib", __FILE__)
3
16
  require "shotstack/version"
4
17
 
@@ -6,26 +19,20 @@ Gem::Specification.new do |s|
6
19
  s.name = "shotstack"
7
20
  s.version = Shotstack::VERSION
8
21
  s.platform = Gem::Platform::RUBY
9
- s.authors = [""]
22
+ s.authors = ["OpenAPI-Generator"]
10
23
  s.email = [""]
11
- s.homepage = ""
12
- s.summary = ""
13
- s.description = ""
14
- s.license = ""
15
-
24
+ s.homepage = "https://openapi-generator.tech"
25
+ s.summary = "Shotstack Ruby Gem"
26
+ s.description = "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 check https://shotstack.io"
27
+ s.license = "Unlicense"
28
+ s.required_ruby_version = ">= 1.9"
16
29
 
17
- s.add_runtime_dependency 'typhoeus', '~> 0.2', '>= 0.2.1'
18
- s.add_runtime_dependency 'json', '~> 1.4', '>= 1.4.6'
30
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
+ s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
19
32
 
20
- s.add_development_dependency 'rspec', '~> 3.2', '>= 3.2.0'
21
- s.add_development_dependency 'vcr', '~> 2.9', '>= 2.9.3'
22
- s.add_development_dependency 'webmock', '~> 1.6', '>= 1.6.2'
23
- s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
24
- s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
25
- s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
26
- s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.11'
33
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
27
34
 
28
- s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
35
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
29
36
  s.test_files = `find spec/*`.split("\n")
30
37
  s.executables = []
31
38
  s.require_paths = ["lib"]
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.0.9
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
- - ''
7
+ - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-19 00:00:00.000000000 Z
11
+ date: 2020-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -16,181 +16,64 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.2'
19
+ version: '1.0'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.2.1
22
+ version: 1.0.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '0.2'
29
+ version: '1.0'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.2.1
32
+ version: 1.0.1
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: json
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.4'
39
+ version: '2.1'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 1.4.6
42
+ version: 2.1.0
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '1.4'
49
+ version: '2.1'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 1.4.6
52
+ version: 2.1.0
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: rspec
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
57
  - - "~>"
58
58
  - !ruby/object:Gem::Version
59
- version: '3.2'
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: 3.2.0
63
- type: :development
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: '3.2'
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- version: 3.2.0
73
- - !ruby/object:Gem::Dependency
74
- name: vcr
75
- requirement: !ruby/object:Gem::Requirement
76
- requirements:
77
- - - "~>"
78
- - !ruby/object:Gem::Version
79
- version: '2.9'
59
+ version: '3.6'
80
60
  - - ">="
81
61
  - !ruby/object:Gem::Version
82
- version: 2.9.3
62
+ version: 3.6.0
83
63
  type: :development
84
64
  prerelease: false
85
65
  version_requirements: !ruby/object:Gem::Requirement
86
66
  requirements:
87
67
  - - "~>"
88
68
  - !ruby/object:Gem::Version
89
- version: '2.9'
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- version: 2.9.3
93
- - !ruby/object:Gem::Dependency
94
- name: webmock
95
- requirement: !ruby/object:Gem::Requirement
96
- requirements:
97
- - - "~>"
98
- - !ruby/object:Gem::Version
99
- version: '1.6'
69
+ version: '3.6'
100
70
  - - ">="
101
71
  - !ruby/object:Gem::Version
102
- version: 1.6.2
103
- type: :development
104
- prerelease: false
105
- version_requirements: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: '1.6'
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- version: 1.6.2
113
- - !ruby/object:Gem::Dependency
114
- name: autotest
115
- requirement: !ruby/object:Gem::Requirement
116
- requirements:
117
- - - "~>"
118
- - !ruby/object:Gem::Version
119
- version: '4.4'
120
- - - ">="
121
- - !ruby/object:Gem::Version
122
- version: 4.4.6
123
- type: :development
124
- prerelease: false
125
- version_requirements: !ruby/object:Gem::Requirement
126
- requirements:
127
- - - "~>"
128
- - !ruby/object:Gem::Version
129
- version: '4.4'
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- version: 4.4.6
133
- - !ruby/object:Gem::Dependency
134
- name: autotest-rails-pure
135
- requirement: !ruby/object:Gem::Requirement
136
- requirements:
137
- - - "~>"
138
- - !ruby/object:Gem::Version
139
- version: '4.1'
140
- - - ">="
141
- - !ruby/object:Gem::Version
142
- version: 4.1.2
143
- type: :development
144
- prerelease: false
145
- version_requirements: !ruby/object:Gem::Requirement
146
- requirements:
147
- - - "~>"
148
- - !ruby/object:Gem::Version
149
- version: '4.1'
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: 4.1.2
153
- - !ruby/object:Gem::Dependency
154
- name: autotest-growl
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: '0.2'
160
- - - ">="
161
- - !ruby/object:Gem::Version
162
- version: 0.2.16
163
- type: :development
164
- prerelease: false
165
- version_requirements: !ruby/object:Gem::Requirement
166
- requirements:
167
- - - "~>"
168
- - !ruby/object:Gem::Version
169
- version: '0.2'
170
- - - ">="
171
- - !ruby/object:Gem::Version
172
- version: 0.2.16
173
- - !ruby/object:Gem::Dependency
174
- name: autotest-fsevent
175
- requirement: !ruby/object:Gem::Requirement
176
- requirements:
177
- - - "~>"
178
- - !ruby/object:Gem::Version
179
- version: '0.2'
180
- - - ">="
181
- - !ruby/object:Gem::Version
182
- version: 0.2.11
183
- type: :development
184
- prerelease: false
185
- version_requirements: !ruby/object:Gem::Requirement
186
- requirements:
187
- - - "~>"
188
- - !ruby/object:Gem::Version
189
- version: '0.2'
190
- - - ">="
191
- - !ruby/object:Gem::Version
192
- version: 0.2.11
193
- description: ''
72
+ version: 3.6.0
73
+ description: The Shotstack API is a video editing service that allows for the automated
74
+ creation of videos using JSON. You can configure an edit and POST it to the Shotstack
75
+ API which will render your video and provide a file location when complete. For
76
+ more details check https://shotstack.io
194
77
  email:
195
78
  - ''
196
79
  executables: []
@@ -199,33 +82,37 @@ extra_rdoc_files: []
199
82
  files:
200
83
  - README.md
201
84
  - lib/shotstack.rb
202
- - lib/shotstack/api/render_api.rb
85
+ - lib/shotstack/api/endpoints_api.rb
203
86
  - lib/shotstack/api_client.rb
204
87
  - lib/shotstack/api_error.rb
205
88
  - lib/shotstack/configuration.rb
206
- - lib/shotstack/models/clips.rb
89
+ - lib/shotstack/models/asset.rb
90
+ - lib/shotstack/models/audio_asset.rb
91
+ - lib/shotstack/models/clip.rb
207
92
  - lib/shotstack/models/edit.rb
208
- - lib/shotstack/models/image_clip.rb
209
- - lib/shotstack/models/image_clip_options.rb
93
+ - lib/shotstack/models/font.rb
94
+ - lib/shotstack/models/html_asset.rb
95
+ - lib/shotstack/models/image_asset.rb
96
+ - lib/shotstack/models/luma_asset.rb
97
+ - lib/shotstack/models/offset.rb
210
98
  - lib/shotstack/models/output.rb
99
+ - lib/shotstack/models/poster.rb
211
100
  - lib/shotstack/models/queued_response.rb
212
101
  - lib/shotstack/models/queued_response_data.rb
213
102
  - lib/shotstack/models/render_response.rb
214
103
  - lib/shotstack/models/render_response_data.rb
215
104
  - lib/shotstack/models/soundtrack.rb
105
+ - lib/shotstack/models/thumbnail.rb
216
106
  - lib/shotstack/models/timeline.rb
217
- - lib/shotstack/models/title_clip.rb
218
- - lib/shotstack/models/title_clip_options.rb
107
+ - lib/shotstack/models/title_asset.rb
219
108
  - lib/shotstack/models/track.rb
220
109
  - lib/shotstack/models/transition.rb
221
- - lib/shotstack/models/video_clip.rb
222
- - lib/shotstack/models/video_clip_options.rb
110
+ - lib/shotstack/models/video_asset.rb
223
111
  - lib/shotstack/version.rb
224
112
  - shotstack.gemspec
225
- - tags
226
- homepage: ''
113
+ homepage: https://openapi-generator.tech
227
114
  licenses:
228
- - ''
115
+ - Unlicense
229
116
  metadata: {}
230
117
  post_install_message:
231
118
  rdoc_options: []
@@ -235,7 +122,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
235
122
  requirements:
236
123
  - - ">="
237
124
  - !ruby/object:Gem::Version
238
- version: '0'
125
+ version: '1.9'
239
126
  required_rubygems_version: !ruby/object:Gem::Requirement
240
127
  requirements:
241
128
  - - ">="
@@ -243,8 +130,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
130
  version: '0'
244
131
  requirements: []
245
132
  rubyforge_project:
246
- rubygems_version: 2.6.14.1
133
+ rubygems_version: 2.7.6
247
134
  signing_key:
248
135
  specification_version: 4
249
- summary: ''
136
+ summary: Shotstack Ruby Gem
250
137
  test_files: []
@@ -1,137 +0,0 @@
1
- require "uri"
2
-
3
- module Shotstack
4
- class RenderApi
5
- attr_accessor :api_client
6
-
7
- def initialize(api_client = ApiClient.default)
8
- @api_client = api_client
9
- end
10
-
11
- #
12
- # Render the contents of a timeline as a video file.
13
- # @param edit Edit
14
- # @param [Hash] opts the optional parameters
15
- # @return [QueuedResponse]
16
- def post_render(edit, opts = {})
17
- data, status_code, headers = post_render_with_http_info(edit, opts)
18
- return data
19
- end
20
-
21
- #
22
- # Render the contents of a timeline as a video file.
23
- # @param edit Edit
24
- # @param [Hash] opts the optional parameters
25
- # @return [Array<(QueuedResponse, Fixnum, Hash)>] QueuedResponse data, response status code and response headers
26
- def post_render_with_http_info(edit, opts = {})
27
- if @api_client.config.debugging
28
- @api_client.config.logger.debug "Calling API: RenderApi#post_render ..."
29
- end
30
-
31
- # verify the required parameter 'edit' is set
32
- fail "Missing the required parameter 'edit' when calling post_render" if edit.nil?
33
-
34
- # resource path
35
- path = "/render".sub('{format}','json')
36
-
37
- # query parameters
38
- query_params = {}
39
-
40
- # header parameters
41
- header_params = {}
42
-
43
- # HTTP header 'Accept' (if needed)
44
- _header_accept = ['application/json']
45
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
46
-
47
- # HTTP header 'Content-Type'
48
- _header_content_type = []
49
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
50
-
51
- # form parameters
52
- form_params = {}
53
-
54
- # http body (model)
55
- post_body = @api_client.object_to_http_body(edit)
56
-
57
-
58
- auth_names = ['DeveloperKey']
59
- data, status_code, headers = @api_client.call_api(:POST, path,
60
- :header_params => header_params,
61
- :query_params => query_params,
62
- :form_params => form_params,
63
- :body => post_body,
64
- :auth_names => auth_names,
65
- :return_type => 'QueuedResponse')
66
- if @api_client.config.debugging
67
- @api_client.config.logger.debug "API called: RenderApi#post_render\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
68
- end
69
- return data, status_code, headers
70
- end
71
-
72
- #
73
- # Get the rendering status and details of a timeline by ID.
74
- # @param id The id of the timeline render task in UUID format
75
- # @param [Hash] opts the optional parameters
76
- # @return [RenderResponse]
77
- def get_render(id, opts = {})
78
- data, status_code, headers = get_render_with_http_info(id, opts)
79
- return data
80
- end
81
-
82
- #
83
- # Get the rendering status and details of a timeline by ID.
84
- # @param id The id of the timeline render task in UUID format
85
- # @param [Hash] opts the optional parameters
86
- # @return [Array<(RenderResponse, Fixnum, Hash)>] RenderResponse data, response status code and response headers
87
- def get_render_with_http_info(id, opts = {})
88
- if @api_client.config.debugging
89
- @api_client.config.logger.debug "Calling API: RenderApi#get_render ..."
90
- end
91
-
92
- # verify the required parameter 'id' is set
93
- fail "Missing the required parameter 'id' when calling get_render" if id.nil?
94
-
95
- # resource path
96
- path = "/render/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
97
-
98
- # query parameters
99
- query_params = {}
100
-
101
- # header parameters
102
- header_params = {}
103
-
104
- # HTTP header 'Accept' (if needed)
105
- _header_accept = ['application/json']
106
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
107
-
108
- # HTTP header 'Content-Type'
109
- _header_content_type = []
110
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
111
-
112
- # form parameters
113
- form_params = {}
114
-
115
- # http body (model)
116
- post_body = nil
117
-
118
-
119
- auth_names = ['DeveloperKey']
120
- data, status_code, headers = @api_client.call_api(:GET, path,
121
- :header_params => header_params,
122
- :query_params => query_params,
123
- :form_params => form_params,
124
- :body => post_body,
125
- :auth_names => auth_names,
126
- :return_type => 'RenderResponse')
127
- if @api_client.config.debugging
128
- @api_client.config.logger.debug "API called: RenderApi#get_render\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
129
- end
130
- return data, status_code, headers
131
- end
132
- end
133
- end
134
-
135
-
136
-
137
-