class Zype::Plans
docs.zype.com/v1.0/reference#plans
@since 0.16.0
Public Instance Methods
add_playlists(id:, params:)
click to toggle source
Only for tiered subscription plans. Read more here 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]
# File lib/zype/models/plans.rb, line 12 def add_playlists(id:, params:) client.execute(method: :put, path: "/#{path}/#{id}/add_playlists", params: params) end
remove_playlists(id:, params:)
click to toggle source
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]
# File lib/zype/models/plans.rb, line 21 def remove_playlists(id:, params:) client.execute(method: :put, path: "/#{path}/#{id}/remove_playlists", params: params) end