lib/you_tube/resources/videos.rb
# Retrieves a Video by the ID. This retrieves extra information so will only work
# on videos for an authenticated user
Retrieves a Video by the ID. This retrieves extra information so will only work
on videos for an authenticated user
Retrieves a Video by the ID . This retrieves extra information so will only work on videos for an authenticated user
def retrieve(id:)
      response = get_request "videos", params: {id: id, part: AUTH_PARTS}
      return nil if response.body["pageInfo"]["totalResults"] == 0
      Video.new(response.body["items"][0])
    end
def retrieve ( id : ) response = get_request "videos" , params : { id : id , part : AUTH_PARTS } return nil if response . body [ "pageInfo" ] [ "totalResults" ] == 0 Video . new ( response . body [ "items" ] [ 0 ] ) end
Retrieves a Video by the ID.
Retrieves a Video by the ID .
id
<not_specific>