mux_ruby 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +79 -0
- data/LICENSE +7 -0
- data/README.md +121 -0
- data/Rakefile +10 -0
- data/docs/AbridgedVideoView.md +18 -0
- data/docs/Asset.md +27 -0
- data/docs/AssetErrors.md +9 -0
- data/docs/AssetMaster.md +9 -0
- data/docs/AssetResponse.md +8 -0
- data/docs/AssetStaticRenditions.md +9 -0
- data/docs/AssetStaticRenditionsFiles.md +13 -0
- data/docs/AssetsApi.md +476 -0
- data/docs/BreakdownValue.md +12 -0
- data/docs/CreateAssetRequest.md +13 -0
- data/docs/CreateLiveStreamRequest.md +9 -0
- data/docs/CreatePlaybackIDRequest.md +8 -0
- data/docs/CreatePlaybackIDResponse.md +8 -0
- data/docs/CreateUploadRequest.md +10 -0
- data/docs/DirectUploadsApi.md +214 -0
- data/docs/Error.md +15 -0
- data/docs/ErrorsApi.md +64 -0
- data/docs/ExportsApi.md +56 -0
- data/docs/FilterValue.md +9 -0
- data/docs/FiltersApi.md +118 -0
- data/docs/GetAssetInputInfoResponse.md +8 -0
- data/docs/GetAssetPlaybackIDResponse.md +8 -0
- data/docs/GetMetricTimeseriesDataResponse.md +10 -0
- data/docs/GetOverallValuesResponse.md +10 -0
- data/docs/InputFile.md +9 -0
- data/docs/InputInfo.md +9 -0
- data/docs/InputSettings.md +10 -0
- data/docs/InputSettingsOverlaySettings.md +14 -0
- data/docs/InputTrack.md +18 -0
- data/docs/Insight.md +13 -0
- data/docs/ListAllMetricValuesResponse.md +10 -0
- data/docs/ListAssetsResponse.md +8 -0
- data/docs/ListBreakdownValuesResponse.md +10 -0
- data/docs/ListErrorsResponse.md +10 -0
- data/docs/ListExportsResponse.md +10 -0
- data/docs/ListFilterValuesResponse.md +10 -0
- data/docs/ListFiltersResponse.md +10 -0
- data/docs/ListFiltersResponseData.md +9 -0
- data/docs/ListInsightsResponse.md +10 -0
- data/docs/ListLiveStreamsResponse.md +8 -0
- data/docs/ListSigningKeysResponse.md +8 -0
- data/docs/ListUploadsResponse.md +8 -0
- data/docs/ListVideoViewsResponse.md +10 -0
- data/docs/LiveStream.md +17 -0
- data/docs/LiveStreamResponse.md +8 -0
- data/docs/LiveStreamsApi.md +420 -0
- data/docs/Metric.md +12 -0
- data/docs/MetricsApi.md +322 -0
- data/docs/OverallValues.md +11 -0
- data/docs/PlaybackID.md +9 -0
- data/docs/PlaybackPolicy.md +7 -0
- data/docs/Score.md +13 -0
- data/docs/SignalLiveStreamCompleteResponse.md +8 -0
- data/docs/SigningKey.md +10 -0
- data/docs/SigningKeyResponse.md +8 -0
- data/docs/Track.md +17 -0
- data/docs/URLSigningKeysApi.md +215 -0
- data/docs/UpdateAssetMP4SupportRequest.md +8 -0
- data/docs/Upload.md +15 -0
- data/docs/UploadError.md +9 -0
- data/docs/UploadResponse.md +8 -0
- data/docs/VideoView.md +117 -0
- data/docs/VideoViewEvent.md +11 -0
- data/docs/VideoViewResponse.md +9 -0
- data/docs/VideoViewsApi.md +126 -0
- data/examples/data/exercise-errors.rb +23 -0
- data/examples/data/exercise-exports.rb +22 -0
- data/examples/data/exercise-filters.rb +29 -0
- data/examples/data/exercise-metrics.rb +52 -0
- data/examples/data/exercise-video-views.rb +30 -0
- data/examples/video/create-live-stream.rb +25 -0
- data/examples/video/exercise-assets.rb +95 -0
- data/examples/video/exercise-live-streams.rb +89 -0
- data/examples/video/exercise-signing-keys.rb +46 -0
- data/examples/video/exercise-uploads.rb +49 -0
- data/examples/video/ingest.rb +37 -0
- data/examples/video/list-everything.rb +48 -0
- data/github-ruby-sdk.png +0 -0
- data/lib/mux_ruby/api/assets_api.rb +507 -0
- data/lib/mux_ruby/api/direct_uploads_api.rb +224 -0
- data/lib/mux_ruby/api/errors_api.rb +69 -0
- data/lib/mux_ruby/api/exports_api.rb +63 -0
- data/lib/mux_ruby/api/filters_api.rb +128 -0
- data/lib/mux_ruby/api/live_streams_api.rb +440 -0
- data/lib/mux_ruby/api/metrics_api.rb +393 -0
- data/lib/mux_ruby/api/url_signing_keys_api.rb +219 -0
- data/lib/mux_ruby/api/video_views_api.rb +140 -0
- data/lib/mux_ruby/api_client.rb +400 -0
- data/lib/mux_ruby/api_error.rb +44 -0
- data/lib/mux_ruby/configuration.rb +244 -0
- data/lib/mux_ruby/models/abridged_video_view.rb +274 -0
- data/lib/mux_ruby/models/asset.rb +409 -0
- data/lib/mux_ruby/models/asset_errors.rb +195 -0
- data/lib/mux_ruby/models/asset_master.rb +193 -0
- data/lib/mux_ruby/models/asset_response.rb +184 -0
- data/lib/mux_ruby/models/asset_static_renditions.rb +232 -0
- data/lib/mux_ruby/models/asset_static_renditions_files.rb +279 -0
- data/lib/mux_ruby/models/breakdown_value.rb +220 -0
- data/lib/mux_ruby/models/create_asset_request.rb +267 -0
- data/lib/mux_ruby/models/create_live_stream_request.rb +195 -0
- data/lib/mux_ruby/models/create_playback_id_request.rb +184 -0
- data/lib/mux_ruby/models/create_playback_id_response.rb +184 -0
- data/lib/mux_ruby/models/create_upload_request.rb +235 -0
- data/lib/mux_ruby/models/error.rb +247 -0
- data/lib/mux_ruby/models/filter_value.rb +193 -0
- data/lib/mux_ruby/models/get_asset_input_info_response.rb +186 -0
- data/lib/mux_ruby/models/get_asset_playback_id_response.rb +184 -0
- data/lib/mux_ruby/models/get_metric_timeseries_data_response.rb +206 -0
- data/lib/mux_ruby/models/get_overall_values_response.rb +204 -0
- data/lib/mux_ruby/models/input_file.rb +195 -0
- data/lib/mux_ruby/models/input_info.rb +193 -0
- data/lib/mux_ruby/models/input_settings.rb +203 -0
- data/lib/mux_ruby/models/input_settings_overlay_settings.rb +238 -0
- data/lib/mux_ruby/models/input_track.rb +274 -0
- data/lib/mux_ruby/models/insight.rb +229 -0
- data/lib/mux_ruby/models/list_all_metric_values_response.rb +206 -0
- data/lib/mux_ruby/models/list_assets_response.rb +186 -0
- data/lib/mux_ruby/models/list_breakdown_values_response.rb +206 -0
- data/lib/mux_ruby/models/list_errors_response.rb +206 -0
- data/lib/mux_ruby/models/list_exports_response.rb +206 -0
- data/lib/mux_ruby/models/list_filter_values_response.rb +206 -0
- data/lib/mux_ruby/models/list_filters_response.rb +204 -0
- data/lib/mux_ruby/models/list_filters_response_data.rb +197 -0
- data/lib/mux_ruby/models/list_insights_response.rb +206 -0
- data/lib/mux_ruby/models/list_live_streams_response.rb +186 -0
- data/lib/mux_ruby/models/list_signing_keys_response.rb +186 -0
- data/lib/mux_ruby/models/list_uploads_response.rb +186 -0
- data/lib/mux_ruby/models/list_video_views_response.rb +206 -0
- data/lib/mux_ruby/models/live_stream.rb +269 -0
- data/lib/mux_ruby/models/live_stream_response.rb +184 -0
- data/lib/mux_ruby/models/metric.rb +220 -0
- data/lib/mux_ruby/models/overall_values.rb +211 -0
- data/lib/mux_ruby/models/playback_id.rb +193 -0
- data/lib/mux_ruby/models/playback_policy.rb +31 -0
- data/lib/mux_ruby/models/score.rb +231 -0
- data/lib/mux_ruby/models/signal_live_stream_complete_response.rb +184 -0
- data/lib/mux_ruby/models/signing_key.rb +202 -0
- data/lib/mux_ruby/models/signing_key_response.rb +184 -0
- data/lib/mux_ruby/models/track.rb +265 -0
- data/lib/mux_ruby/models/update_asset_mp4_support_request.rb +219 -0
- data/lib/mux_ruby/models/upload.rb +311 -0
- data/lib/mux_ruby/models/upload_error.rb +194 -0
- data/lib/mux_ruby/models/upload_response.rb +184 -0
- data/lib/mux_ruby/models/video_view.rb +1167 -0
- data/lib/mux_ruby/models/video_view_event.rb +211 -0
- data/lib/mux_ruby/models/video_view_response.rb +195 -0
- data/lib/mux_ruby/version.rb +8 -0
- data/lib/mux_ruby.rb +97 -0
- data/mux_ruby.gemspec +38 -0
- data/spec/api/assets_api_spec.rb +136 -0
- data/spec/api/direct_uploads_api_spec.rb +74 -0
- data/spec/api/errors_api_spec.rb +41 -0
- data/spec/api/exports_api_spec.rb +39 -0
- data/spec/api/filters_api_spec.rb +55 -0
- data/spec/api/live_streams_api_spec.rb +122 -0
- data/spec/api/metrics_api_spec.rb +110 -0
- data/spec/api/url_signing_keys_api_spec.rb +76 -0
- data/spec/api/video_views_api_spec.rb +58 -0
- data/spec/api_client_spec.rb +219 -0
- data/spec/configuration_spec.rb +35 -0
- data/spec/models/abridged_video_view_spec.rb +94 -0
- data/spec/models/asset_errors_spec.rb +40 -0
- data/spec/models/asset_master_spec.rb +40 -0
- data/spec/models/asset_response_spec.rb +34 -0
- data/spec/models/asset_spec.rb +156 -0
- data/spec/models/asset_static_renditions_files_spec.rb +72 -0
- data/spec/models/asset_static_renditions_spec.rb +44 -0
- data/spec/models/breakdown_value_spec.rb +58 -0
- data/spec/models/create_asset_request_spec.rb +68 -0
- data/spec/models/create_live_stream_request_spec.rb +40 -0
- data/spec/models/create_playback_id_request_spec.rb +34 -0
- data/spec/models/create_playback_id_response_spec.rb +34 -0
- data/spec/models/create_upload_request_spec.rb +46 -0
- data/spec/models/error_spec.rb +76 -0
- data/spec/models/filter_value_spec.rb +40 -0
- data/spec/models/get_asset_input_info_response_spec.rb +34 -0
- data/spec/models/get_asset_playback_id_response_spec.rb +34 -0
- data/spec/models/get_metric_timeseries_data_response_spec.rb +46 -0
- data/spec/models/get_overall_values_response_spec.rb +46 -0
- data/spec/models/input_file_spec.rb +40 -0
- data/spec/models/input_info_spec.rb +40 -0
- data/spec/models/input_settings_overlay_settings_spec.rb +70 -0
- data/spec/models/input_settings_spec.rb +46 -0
- data/spec/models/input_track_spec.rb +94 -0
- data/spec/models/insight_spec.rb +64 -0
- data/spec/models/list_all_metric_values_response_spec.rb +46 -0
- data/spec/models/list_assets_response_spec.rb +34 -0
- data/spec/models/list_breakdown_values_response_spec.rb +46 -0
- data/spec/models/list_errors_response_spec.rb +46 -0
- data/spec/models/list_exports_response_spec.rb +46 -0
- data/spec/models/list_filter_values_response_spec.rb +46 -0
- data/spec/models/list_filters_response_data_spec.rb +40 -0
- data/spec/models/list_filters_response_spec.rb +46 -0
- data/spec/models/list_insights_response_spec.rb +46 -0
- data/spec/models/list_live_streams_response_spec.rb +34 -0
- data/spec/models/list_signing_keys_response_spec.rb +34 -0
- data/spec/models/list_uploads_response_spec.rb +34 -0
- data/spec/models/list_video_views_response_spec.rb +46 -0
- data/spec/models/live_stream_response_spec.rb +34 -0
- data/spec/models/live_stream_spec.rb +88 -0
- data/spec/models/metric_spec.rb +58 -0
- data/spec/models/overall_values_spec.rb +52 -0
- data/spec/models/playback_id_spec.rb +40 -0
- data/spec/models/playback_policy_spec.rb +28 -0
- data/spec/models/score_spec.rb +64 -0
- data/spec/models/signal_live_stream_complete_response_spec.rb +34 -0
- data/spec/models/signing_key_response_spec.rb +34 -0
- data/spec/models/signing_key_spec.rb +46 -0
- data/spec/models/track_spec.rb +88 -0
- data/spec/models/update_asset_mp4_support_request_spec.rb +38 -0
- data/spec/models/upload_error_spec.rb +40 -0
- data/spec/models/upload_response_spec.rb +34 -0
- data/spec/models/upload_spec.rb +80 -0
- data/spec/models/video_view_event_spec.rb +52 -0
- data/spec/models/video_view_response_spec.rb +40 -0
- data/spec/models/video_view_spec.rb +688 -0
- data/spec/spec_helper.rb +104 -0
- metadata +514 -0
@@ -0,0 +1,214 @@
|
|
1
|
+
# MuxRuby::DirectUploadsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.mux.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**cancel_direct_upload**](DirectUploadsApi.md#cancel_direct_upload) | **PUT** /video/v1/uploads/{UPLOAD_ID}/cancel | Cancel a direct upload
|
8
|
+
[**create_direct_upload**](DirectUploadsApi.md#create_direct_upload) | **POST** /video/v1/uploads | Create a new direct upload URL
|
9
|
+
[**get_direct_upload**](DirectUploadsApi.md#get_direct_upload) | **GET** /video/v1/uploads/{UPLOAD_ID} | Retrieve a single direct upload's info
|
10
|
+
[**list_direct_uploads**](DirectUploadsApi.md#list_direct_uploads) | **GET** /video/v1/uploads | List direct uploads
|
11
|
+
|
12
|
+
|
13
|
+
# **cancel_direct_upload**
|
14
|
+
> UploadResponse cancel_direct_upload(upload_id)
|
15
|
+
|
16
|
+
Cancel a direct upload
|
17
|
+
|
18
|
+
Cancels a direct upload and marks it as cancelled. If a pending upload finishes after this request, no asset will be created. This request will only succeed if the upload is still in the `waiting` state.
|
19
|
+
|
20
|
+
### Example
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'mux_ruby'
|
24
|
+
# setup authorization
|
25
|
+
MuxRuby.configure do |config|
|
26
|
+
# Configure HTTP basic authorization: accessToken
|
27
|
+
config.username = 'YOUR USERNAME'
|
28
|
+
config.password = 'YOUR PASSWORD'
|
29
|
+
end
|
30
|
+
|
31
|
+
api_instance = MuxRuby::DirectUploadsApi.new
|
32
|
+
upload_id = 'abcd1234' # String | ID of the Upload
|
33
|
+
|
34
|
+
begin
|
35
|
+
#Cancel a direct upload
|
36
|
+
result = api_instance.cancel_direct_upload(upload_id)
|
37
|
+
p result
|
38
|
+
rescue MuxRuby::ApiError => e
|
39
|
+
puts "Exception when calling DirectUploadsApi->cancel_direct_upload: #{e}"
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
### Parameters
|
44
|
+
|
45
|
+
Name | Type | Description | Notes
|
46
|
+
------------- | ------------- | ------------- | -------------
|
47
|
+
**upload_id** | **String**| ID of the Upload |
|
48
|
+
|
49
|
+
### Return type
|
50
|
+
|
51
|
+
[**UploadResponse**](UploadResponse.md)
|
52
|
+
|
53
|
+
### Authorization
|
54
|
+
|
55
|
+
[accessToken](../README.md#accessToken)
|
56
|
+
|
57
|
+
### HTTP request headers
|
58
|
+
|
59
|
+
- **Content-Type**: Not defined
|
60
|
+
- **Accept**: application/json
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
# **create_direct_upload**
|
65
|
+
> UploadResponse create_direct_upload(create_upload_request)
|
66
|
+
|
67
|
+
Create a new direct upload URL
|
68
|
+
|
69
|
+
### Example
|
70
|
+
```ruby
|
71
|
+
# load the gem
|
72
|
+
require 'mux_ruby'
|
73
|
+
# setup authorization
|
74
|
+
MuxRuby.configure do |config|
|
75
|
+
# Configure HTTP basic authorization: accessToken
|
76
|
+
config.username = 'YOUR USERNAME'
|
77
|
+
config.password = 'YOUR PASSWORD'
|
78
|
+
end
|
79
|
+
|
80
|
+
api_instance = MuxRuby::DirectUploadsApi.new
|
81
|
+
create_upload_request = MuxRuby::CreateUploadRequest.new # CreateUploadRequest |
|
82
|
+
|
83
|
+
begin
|
84
|
+
#Create a new direct upload URL
|
85
|
+
result = api_instance.create_direct_upload(create_upload_request)
|
86
|
+
p result
|
87
|
+
rescue MuxRuby::ApiError => e
|
88
|
+
puts "Exception when calling DirectUploadsApi->create_direct_upload: #{e}"
|
89
|
+
end
|
90
|
+
```
|
91
|
+
|
92
|
+
### Parameters
|
93
|
+
|
94
|
+
Name | Type | Description | Notes
|
95
|
+
------------- | ------------- | ------------- | -------------
|
96
|
+
**create_upload_request** | [**CreateUploadRequest**](CreateUploadRequest.md)| |
|
97
|
+
|
98
|
+
### Return type
|
99
|
+
|
100
|
+
[**UploadResponse**](UploadResponse.md)
|
101
|
+
|
102
|
+
### Authorization
|
103
|
+
|
104
|
+
[accessToken](../README.md#accessToken)
|
105
|
+
|
106
|
+
### HTTP request headers
|
107
|
+
|
108
|
+
- **Content-Type**: application/json
|
109
|
+
- **Accept**: application/json
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
# **get_direct_upload**
|
114
|
+
> UploadResponse get_direct_upload(upload_id)
|
115
|
+
|
116
|
+
Retrieve a single direct upload's info
|
117
|
+
|
118
|
+
### Example
|
119
|
+
```ruby
|
120
|
+
# load the gem
|
121
|
+
require 'mux_ruby'
|
122
|
+
# setup authorization
|
123
|
+
MuxRuby.configure do |config|
|
124
|
+
# Configure HTTP basic authorization: accessToken
|
125
|
+
config.username = 'YOUR USERNAME'
|
126
|
+
config.password = 'YOUR PASSWORD'
|
127
|
+
end
|
128
|
+
|
129
|
+
api_instance = MuxRuby::DirectUploadsApi.new
|
130
|
+
upload_id = 'abcd1234' # String | ID of the Upload
|
131
|
+
|
132
|
+
begin
|
133
|
+
#Retrieve a single direct upload's info
|
134
|
+
result = api_instance.get_direct_upload(upload_id)
|
135
|
+
p result
|
136
|
+
rescue MuxRuby::ApiError => e
|
137
|
+
puts "Exception when calling DirectUploadsApi->get_direct_upload: #{e}"
|
138
|
+
end
|
139
|
+
```
|
140
|
+
|
141
|
+
### Parameters
|
142
|
+
|
143
|
+
Name | Type | Description | Notes
|
144
|
+
------------- | ------------- | ------------- | -------------
|
145
|
+
**upload_id** | **String**| ID of the Upload |
|
146
|
+
|
147
|
+
### Return type
|
148
|
+
|
149
|
+
[**UploadResponse**](UploadResponse.md)
|
150
|
+
|
151
|
+
### Authorization
|
152
|
+
|
153
|
+
[accessToken](../README.md#accessToken)
|
154
|
+
|
155
|
+
### HTTP request headers
|
156
|
+
|
157
|
+
- **Content-Type**: Not defined
|
158
|
+
- **Accept**: application/json
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
# **list_direct_uploads**
|
163
|
+
> ListUploadsResponse list_direct_uploads(opts)
|
164
|
+
|
165
|
+
List direct uploads
|
166
|
+
|
167
|
+
### Example
|
168
|
+
```ruby
|
169
|
+
# load the gem
|
170
|
+
require 'mux_ruby'
|
171
|
+
# setup authorization
|
172
|
+
MuxRuby.configure do |config|
|
173
|
+
# Configure HTTP basic authorization: accessToken
|
174
|
+
config.username = 'YOUR USERNAME'
|
175
|
+
config.password = 'YOUR PASSWORD'
|
176
|
+
end
|
177
|
+
|
178
|
+
api_instance = MuxRuby::DirectUploadsApi.new
|
179
|
+
opts = {
|
180
|
+
limit: 25, # Integer | Number of items to include in the response
|
181
|
+
page: 1 # Integer | Offset by this many pages, of the size of `limit`
|
182
|
+
}
|
183
|
+
|
184
|
+
begin
|
185
|
+
#List direct uploads
|
186
|
+
result = api_instance.list_direct_uploads(opts)
|
187
|
+
p result
|
188
|
+
rescue MuxRuby::ApiError => e
|
189
|
+
puts "Exception when calling DirectUploadsApi->list_direct_uploads: #{e}"
|
190
|
+
end
|
191
|
+
```
|
192
|
+
|
193
|
+
### Parameters
|
194
|
+
|
195
|
+
Name | Type | Description | Notes
|
196
|
+
------------- | ------------- | ------------- | -------------
|
197
|
+
**limit** | **Integer**| Number of items to include in the response | [optional] [default to 25]
|
198
|
+
**page** | **Integer**| Offset by this many pages, of the size of `limit` | [optional] [default to 1]
|
199
|
+
|
200
|
+
### Return type
|
201
|
+
|
202
|
+
[**ListUploadsResponse**](ListUploadsResponse.md)
|
203
|
+
|
204
|
+
### Authorization
|
205
|
+
|
206
|
+
[accessToken](../README.md#accessToken)
|
207
|
+
|
208
|
+
### HTTP request headers
|
209
|
+
|
210
|
+
- **Content-Type**: Not defined
|
211
|
+
- **Accept**: application/json
|
212
|
+
|
213
|
+
|
214
|
+
|
data/docs/Error.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# MuxRuby::Error
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | | [optional]
|
7
|
+
**percentage** | **Float** | | [optional]
|
8
|
+
**notes** | **String** | | [optional]
|
9
|
+
**message** | **String** | | [optional]
|
10
|
+
**last_seen** | **String** | | [optional]
|
11
|
+
**description** | **String** | | [optional]
|
12
|
+
**count** | **Integer** | | [optional]
|
13
|
+
**code** | **Integer** | | [optional]
|
14
|
+
|
15
|
+
|
data/docs/ErrorsApi.md
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
# MuxRuby::ErrorsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.mux.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**list_errors**](ErrorsApi.md#list_errors) | **GET** /data/v1/errors | List Errors
|
8
|
+
|
9
|
+
|
10
|
+
# **list_errors**
|
11
|
+
> ListErrorsResponse list_errors(opts)
|
12
|
+
|
13
|
+
List Errors
|
14
|
+
|
15
|
+
Returns a list of errors
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'mux_ruby'
|
21
|
+
# setup authorization
|
22
|
+
MuxRuby.configure do |config|
|
23
|
+
# Configure HTTP basic authorization: accessToken
|
24
|
+
config.username = 'YOUR USERNAME'
|
25
|
+
config.password = 'YOUR PASSWORD'
|
26
|
+
end
|
27
|
+
|
28
|
+
api_instance = MuxRuby::ErrorsApi.new
|
29
|
+
opts = {
|
30
|
+
filters: ['filters_example'], # Array<String> | Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint.
|
31
|
+
timeframe: ['timeframe_example'] # Array<String> | Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). Accepted formats are... * array of epoch timestamps e.g. timeframe[]=1498867200&timeframe[]=1498953600 * duration string e.g. timeframe[]=24:hours or timeframe[]=7:days.
|
32
|
+
}
|
33
|
+
|
34
|
+
begin
|
35
|
+
#List Errors
|
36
|
+
result = api_instance.list_errors(opts)
|
37
|
+
p result
|
38
|
+
rescue MuxRuby::ApiError => e
|
39
|
+
puts "Exception when calling ErrorsApi->list_errors: #{e}"
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
### Parameters
|
44
|
+
|
45
|
+
Name | Type | Description | Notes
|
46
|
+
------------- | ------------- | ------------- | -------------
|
47
|
+
**filters** | [**Array<String>**](String.md)| Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint. | [optional]
|
48
|
+
**timeframe** | [**Array<String>**](String.md)| Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). Accepted formats are... * array of epoch timestamps e.g. timeframe[]=1498867200&timeframe[]=1498953600 * duration string e.g. timeframe[]=24:hours or timeframe[]=7:days. | [optional]
|
49
|
+
|
50
|
+
### Return type
|
51
|
+
|
52
|
+
[**ListErrorsResponse**](ListErrorsResponse.md)
|
53
|
+
|
54
|
+
### Authorization
|
55
|
+
|
56
|
+
[accessToken](../README.md#accessToken)
|
57
|
+
|
58
|
+
### HTTP request headers
|
59
|
+
|
60
|
+
- **Content-Type**: Not defined
|
61
|
+
- **Accept**: application/json
|
62
|
+
|
63
|
+
|
64
|
+
|
data/docs/ExportsApi.md
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
# MuxRuby::ExportsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.mux.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**list_exports**](ExportsApi.md#list_exports) | **GET** /data/v1/exports | List property video view export links
|
8
|
+
|
9
|
+
|
10
|
+
# **list_exports**
|
11
|
+
> ListExportsResponse list_exports
|
12
|
+
|
13
|
+
List property video view export links
|
14
|
+
|
15
|
+
Lists the available video view exports along with URLs to retrieve them
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'mux_ruby'
|
21
|
+
# setup authorization
|
22
|
+
MuxRuby.configure do |config|
|
23
|
+
# Configure HTTP basic authorization: accessToken
|
24
|
+
config.username = 'YOUR USERNAME'
|
25
|
+
config.password = 'YOUR PASSWORD'
|
26
|
+
end
|
27
|
+
|
28
|
+
api_instance = MuxRuby::ExportsApi.new
|
29
|
+
|
30
|
+
begin
|
31
|
+
#List property video view export links
|
32
|
+
result = api_instance.list_exports
|
33
|
+
p result
|
34
|
+
rescue MuxRuby::ApiError => e
|
35
|
+
puts "Exception when calling ExportsApi->list_exports: #{e}"
|
36
|
+
end
|
37
|
+
```
|
38
|
+
|
39
|
+
### Parameters
|
40
|
+
This endpoint does not need any parameter.
|
41
|
+
|
42
|
+
### Return type
|
43
|
+
|
44
|
+
[**ListExportsResponse**](ListExportsResponse.md)
|
45
|
+
|
46
|
+
### Authorization
|
47
|
+
|
48
|
+
[accessToken](../README.md#accessToken)
|
49
|
+
|
50
|
+
### HTTP request headers
|
51
|
+
|
52
|
+
- **Content-Type**: Not defined
|
53
|
+
- **Accept**: application/json
|
54
|
+
|
55
|
+
|
56
|
+
|
data/docs/FilterValue.md
ADDED
data/docs/FiltersApi.md
ADDED
@@ -0,0 +1,118 @@
|
|
1
|
+
# MuxRuby::FiltersApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.mux.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**list_filter_values**](FiltersApi.md#list_filter_values) | **GET** /data/v1/filters/{FILTER_ID} | Lists values for a specific filter
|
8
|
+
[**list_filters**](FiltersApi.md#list_filters) | **GET** /data/v1/filters | List Filters
|
9
|
+
|
10
|
+
|
11
|
+
# **list_filter_values**
|
12
|
+
> ListFilterValuesResponse list_filter_values(filter_id, opts)
|
13
|
+
|
14
|
+
Lists values for a specific filter
|
15
|
+
|
16
|
+
Lists the values for a filter along with a total count of related views
|
17
|
+
|
18
|
+
### Example
|
19
|
+
```ruby
|
20
|
+
# load the gem
|
21
|
+
require 'mux_ruby'
|
22
|
+
# setup authorization
|
23
|
+
MuxRuby.configure do |config|
|
24
|
+
# Configure HTTP basic authorization: accessToken
|
25
|
+
config.username = 'YOUR USERNAME'
|
26
|
+
config.password = 'YOUR PASSWORD'
|
27
|
+
end
|
28
|
+
|
29
|
+
api_instance = MuxRuby::FiltersApi.new
|
30
|
+
filter_id = 'abcd1234' # String | ID of the Filter
|
31
|
+
opts = {
|
32
|
+
limit: 25, # Integer | Number of items to include in the response
|
33
|
+
page: 1, # Integer | Offset by this many pages, of the size of `limit`
|
34
|
+
filters: ['filters_example'], # Array<String> | Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint.
|
35
|
+
timeframe: ['timeframe_example'] # Array<String> | Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). Accepted formats are... * array of epoch timestamps e.g. timeframe[]=1498867200&timeframe[]=1498953600 * duration string e.g. timeframe[]=24:hours or timeframe[]=7:days.
|
36
|
+
}
|
37
|
+
|
38
|
+
begin
|
39
|
+
#Lists values for a specific filter
|
40
|
+
result = api_instance.list_filter_values(filter_id, opts)
|
41
|
+
p result
|
42
|
+
rescue MuxRuby::ApiError => e
|
43
|
+
puts "Exception when calling FiltersApi->list_filter_values: #{e}"
|
44
|
+
end
|
45
|
+
```
|
46
|
+
|
47
|
+
### Parameters
|
48
|
+
|
49
|
+
Name | Type | Description | Notes
|
50
|
+
------------- | ------------- | ------------- | -------------
|
51
|
+
**filter_id** | **String**| ID of the Filter |
|
52
|
+
**limit** | **Integer**| Number of items to include in the response | [optional] [default to 25]
|
53
|
+
**page** | **Integer**| Offset by this many pages, of the size of `limit` | [optional] [default to 1]
|
54
|
+
**filters** | [**Array<String>**](String.md)| Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint. | [optional]
|
55
|
+
**timeframe** | [**Array<String>**](String.md)| Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). Accepted formats are... * array of epoch timestamps e.g. timeframe[]=1498867200&timeframe[]=1498953600 * duration string e.g. timeframe[]=24:hours or timeframe[]=7:days. | [optional]
|
56
|
+
|
57
|
+
### Return type
|
58
|
+
|
59
|
+
[**ListFilterValuesResponse**](ListFilterValuesResponse.md)
|
60
|
+
|
61
|
+
### Authorization
|
62
|
+
|
63
|
+
[accessToken](../README.md#accessToken)
|
64
|
+
|
65
|
+
### HTTP request headers
|
66
|
+
|
67
|
+
- **Content-Type**: Not defined
|
68
|
+
- **Accept**: application/json
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
# **list_filters**
|
73
|
+
> ListFiltersResponse list_filters
|
74
|
+
|
75
|
+
List Filters
|
76
|
+
|
77
|
+
Lists all the filters broken out into basic and advanced
|
78
|
+
|
79
|
+
### Example
|
80
|
+
```ruby
|
81
|
+
# load the gem
|
82
|
+
require 'mux_ruby'
|
83
|
+
# setup authorization
|
84
|
+
MuxRuby.configure do |config|
|
85
|
+
# Configure HTTP basic authorization: accessToken
|
86
|
+
config.username = 'YOUR USERNAME'
|
87
|
+
config.password = 'YOUR PASSWORD'
|
88
|
+
end
|
89
|
+
|
90
|
+
api_instance = MuxRuby::FiltersApi.new
|
91
|
+
|
92
|
+
begin
|
93
|
+
#List Filters
|
94
|
+
result = api_instance.list_filters
|
95
|
+
p result
|
96
|
+
rescue MuxRuby::ApiError => e
|
97
|
+
puts "Exception when calling FiltersApi->list_filters: #{e}"
|
98
|
+
end
|
99
|
+
```
|
100
|
+
|
101
|
+
### Parameters
|
102
|
+
This endpoint does not need any parameter.
|
103
|
+
|
104
|
+
### Return type
|
105
|
+
|
106
|
+
[**ListFiltersResponse**](ListFiltersResponse.md)
|
107
|
+
|
108
|
+
### Authorization
|
109
|
+
|
110
|
+
[accessToken](../README.md#accessToken)
|
111
|
+
|
112
|
+
### HTTP request headers
|
113
|
+
|
114
|
+
- **Content-Type**: Not defined
|
115
|
+
- **Accept**: application/json
|
116
|
+
|
117
|
+
|
118
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# MuxRuby::GetMetricTimeseriesDataResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**data** | **Array<Array<String>>** | | [optional]
|
7
|
+
**total_row_count** | **Integer** | | [optional]
|
8
|
+
**timeframe** | **Array<String>** | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# MuxRuby::GetOverallValuesResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**data** | [**OverallValues**](OverallValues.md) | | [optional]
|
7
|
+
**total_row_count** | **Integer** | | [optional]
|
8
|
+
**timeframe** | **Array<String>** | | [optional]
|
9
|
+
|
10
|
+
|
data/docs/InputFile.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# MuxRuby::InputFile
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**container_format** | **String** | | [optional]
|
7
|
+
**tracks** | [**Array<InputTrack>**](InputTrack.md) | | [optional]
|
8
|
+
|
9
|
+
|
data/docs/InputInfo.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# MuxRuby::InputInfo
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**settings** | [**InputSettings**](InputSettings.md) | | [optional]
|
7
|
+
**file** | [**InputFile**](InputFile.md) | | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# MuxRuby::InputSettings
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**url** | **String** | | [optional]
|
7
|
+
**language** | **String** | | [optional]
|
8
|
+
**overlay_settings** | [**InputSettingsOverlaySettings**](InputSettingsOverlaySettings.md) | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# MuxRuby::InputSettingsOverlaySettings
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**vertical_align** | **String** | | [optional]
|
7
|
+
**vertical_margin** | **String** | | [optional]
|
8
|
+
**horizontal_align** | **String** | | [optional]
|
9
|
+
**horizontal_margin** | **String** | | [optional]
|
10
|
+
**width** | **String** | | [optional]
|
11
|
+
**height** | **String** | | [optional]
|
12
|
+
**opacity** | **String** | | [optional]
|
13
|
+
|
14
|
+
|
data/docs/InputTrack.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# MuxRuby::InputTrack
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**type** | **String** | | [optional]
|
7
|
+
**duration** | **Float** | | [optional]
|
8
|
+
**encoding** | **String** | | [optional]
|
9
|
+
**width** | **Integer** | | [optional]
|
10
|
+
**height** | **Integer** | | [optional]
|
11
|
+
**frame_rate** | **Float** | | [optional]
|
12
|
+
**sample_rate** | **Integer** | | [optional]
|
13
|
+
**sample_size** | **Integer** | | [optional]
|
14
|
+
**channels** | **Integer** | | [optional]
|
15
|
+
**text_track_type** | **String** | | [optional]
|
16
|
+
**language** | **String** | | [optional]
|
17
|
+
|
18
|
+
|
data/docs/Insight.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# MuxRuby::Insight
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**total_watch_time** | **Integer** | | [optional]
|
7
|
+
**total_views** | **Integer** | | [optional]
|
8
|
+
**negative_impact_score** | **Integer** | | [optional]
|
9
|
+
**metric** | **Integer** | | [optional]
|
10
|
+
**filter_value** | **String** | | [optional]
|
11
|
+
**filter_column** | **String** | | [optional]
|
12
|
+
|
13
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# MuxRuby::ListAllMetricValuesResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**data** | [**Array<Score>**](Score.md) | | [optional]
|
7
|
+
**total_row_count** | **Integer** | | [optional]
|
8
|
+
**timeframe** | **Array<String>** | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# MuxRuby::ListBreakdownValuesResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**data** | [**Array<BreakdownValue>**](BreakdownValue.md) | | [optional]
|
7
|
+
**total_row_count** | **Integer** | | [optional]
|
8
|
+
**timeframe** | **Array<String>** | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# MuxRuby::ListErrorsResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**data** | [**Array<Error>**](Error.md) | | [optional]
|
7
|
+
**total_row_count** | **Integer** | | [optional]
|
8
|
+
**timeframe** | **Array<String>** | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# MuxRuby::ListExportsResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**data** | **Array<String>** | | [optional]
|
7
|
+
**total_row_count** | **Integer** | | [optional]
|
8
|
+
**timeframe** | **Array<String>** | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# MuxRuby::ListFilterValuesResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**data** | [**Array<FilterValue>**](FilterValue.md) | | [optional]
|
7
|
+
**total_row_count** | **Integer** | | [optional]
|
8
|
+
**timeframe** | **Array<String>** | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# MuxRuby::ListFiltersResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**data** | [**ListFiltersResponseData**](ListFiltersResponseData.md) | | [optional]
|
7
|
+
**total_row_count** | **Integer** | | [optional]
|
8
|
+
**timeframe** | **Array<String>** | | [optional]
|
9
|
+
|
10
|
+
|