Sha256: 44b57289a11a2f18368d6f790a718895e6b8830389d53c62426043367a241aa7
Contents?: true
Size: 842 Bytes
Versions: 6
Compression:
Stored size: 842 Bytes
Contents
module Zype # https://docs.zype.com/v1.0/reference#plans # # @since 0.16.0 class Plans < Zype::BaseModel # Only for tiered subscription plans. # Read more here https://docs.zype.com/v1.0/reference#addplaylists-1 # # @param id [String] ID of the plan # @param params [Hash] should be a hash with playlist_ids as a key # return [Hash] def add_playlists(id:, params:) client.execute(method: :put, path: "/#{path}/#{id}/add_playlists", params: params) end # This will remove playlists from the specified plan # # @param id [String] ID of the plan # @param params [Hash] should be a hash with playlist_ids as a key # return [Hash] def remove_playlists(id:, params:) client.execute(method: :put, path: "/#{path}/#{id}/remove_playlists", params: params) end end end
Version data entries
6 entries across 6 versions & 1 rubygems