class Zype::VideoEntitlements

Read more at docs.zype.com/v1.0/reference#video-entitlements

@since 0.15.0

Public Instance Methods

entitled(video_id:, access_token:) click to toggle source

Checks if the consumer is entitled to watch the video

@param video_id [String] ID of the video @param access_token [String] Access token used to identify the consumer @return Hash

# File lib/zype/models/video_entitlements.rb, line 11
def entitled(video_id:, access_token:)
  client.execute(method: :get, path: "/videos/#{video_id}/entitled", params: { access_token: access_token })
end
path() click to toggle source
# File lib/zype/models/video_entitlements.rb, line 15
def path
  @path = 'videos'
end