zype 0.17.0 → 0.18.0
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.
- checksums.yaml +4 -4
- data/lib/zype/models.rb +1 -0
- data/lib/zype/models/zobject_types.rb +7 -0
- data/lib/zype/models/zobjects.rb +16 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56694d40bfb11001c7dccf20c36faa1484fbf6192de53c155aa2c1a2ba5cc70e
|
4
|
+
data.tar.gz: 39f24a687917314941f767318d7f2c471a2d8ac88c96b65a644ed4d7079c7195
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e83da8832a96bf75e87645e5d8412db0abb030787c6d09392ff9bb6abc7fc623d002285834ce2acd0070561f81c5b996c8d1c965f5b07c1ba27790cd72afa64b
|
7
|
+
data.tar.gz: e0dbcaa55df7a4ad9b855e18b7f5e9005a501d97c5a8b95a6e002160e15815bfbd884ae0e1764b5c84d4f0eaa3402acb9da6ba559d2f0e4db47338f136d21037
|
data/lib/zype/models.rb
CHANGED
@@ -5,6 +5,7 @@ module Zype
|
|
5
5
|
live_manifests manifests pin plans players playlist_content_rules playlist_entitlements playlists
|
6
6
|
program_guides redemption_codes revenue_models segments subscriptions subtitle_playlists subtitles
|
7
7
|
transactions users video_content_rules video_entitlements videos video_favorites video_imports video_sources
|
8
|
+
zobject_types zobjects
|
8
9
|
].freeze
|
9
10
|
end
|
10
11
|
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Zype
|
2
|
+
# Read more at https://docs.zype.com/v1.0/reference#zobject
|
3
|
+
#
|
4
|
+
# @since 0.18.0
|
5
|
+
class Zobjects < Zype::BaseModel
|
6
|
+
# Add videos to a Zobject
|
7
|
+
#
|
8
|
+
# @param id [String] The ID of the Zobject
|
9
|
+
# @param video_ids [Array<String>] The IDs of the videos you wish to add
|
10
|
+
# @param type [String] The title of the Zobject Type
|
11
|
+
# @return [Hash] the zobject
|
12
|
+
def add_videos(id:, video_ids:, type:)
|
13
|
+
client.execute(method: :put, path: "/#{path}/#{id}/add_videos", params: {video_id: video_ids, zobject_type: type})
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zype
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zype
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -102,6 +102,8 @@ files:
|
|
102
102
|
- lib/zype/models/video_imports.rb
|
103
103
|
- lib/zype/models/video_sources.rb
|
104
104
|
- lib/zype/models/videos.rb
|
105
|
+
- lib/zype/models/zobject_types.rb
|
106
|
+
- lib/zype/models/zobjects.rb
|
105
107
|
homepage: http://rubygems.org/gems/zype
|
106
108
|
licenses:
|
107
109
|
- MIT
|