google-assistant-sdk/googlesamples/assistant/grpc/youtube_service.py
def _get_video_stats(self, video_id):
    """Fetches video statistics for the specified video ID.
      Args:
        video_id: A video ID or command-delimited list of video IDs as a string.
    """
    kwargs = {}
    kwargs['part'] = 'statistics,snippet,player'
    kwargs['id'] = video_id
    kwargs['maxWidth'] = YouTubeSearchService.MAX_WIDTH

    response = self.service.videos().list(**kwargs).execute()
    results = response.get('items', [])
    return results
Fetches video statistics for the specified video ID.
      Args:
        video_id: A video ID or command-delimited list of video IDs as a string.
    
Fetches video statistics for the specified video ID.
Fetches video statistics for the specified video ID .
def _get_video_stats(self, video_id):
    kwargs = {}
    kwargs['part'] = 'statistics,snippet,player'
    kwargs['id'] = video_id
    kwargs['maxWidth'] = YouTubeSearchService.MAX_WIDTH
    response = self.service.videos().list(**kwargs).execute()
    results = response.get('items', [])
    return results
def _get_video_stats ( self , video_id ) : kwargs = { } kwargs [ 'part' ] = 'statistics,snippet,player' kwargs [ 'id' ] = video_id kwargs [ 'maxWidth' ] = YouTubeSearchService . MAX_WIDTH response = self . service . videos ( ) . list ( ** kwargs ) . execute ( ) results = response . get ( 'items' , [ ] ) return results
Fetches video statistics for the specified video ID.
Fetches video statistics for the specified video ID .
"""Fetches video statistics for the specified video ID.
      Args:
        video_id: A video ID or command-delimited list of video IDs as a string.
    """
self
video_id
A video ID or command-delimited list of video IDs as a string.
A video ID or command - delimited list of video IDs as a string .