def videos_delete(self, **kwargs): # See full sample for function #kwargs = remove_empty_kwargs(**kwargs) response = self.client.videos().delete(**kwargs).execute() return print_response(response)
def CreteNewChannelSection(self, data): res = self.channel_sections_insert( self.client, { 'snippet.type': 'postedVideos', 'snippet.style': 'horizontalRow', 'snippet.title': 'TestAutomationExamples' #'snippet.position': '', #'snippet.defaultLanguage': '', #'contentDetails.playlists[]': '', #'contentDetails.channels[]': '', #'targeting.countries[]': '', #'targeting.languages[]': '', #'targeting.regions[]': '' }, part='snippet,contentDetails,targeting') print_response(res)
def channels_update_branding_settings(self, client, properties, **kwargs): # See full sample for function resource = build_resource(properties) # See full sample for function #kwargs = remove_empty_kwargs(**kwargs) response = client.channels().update(body=resource, **kwargs).execute() return print_response(response)
def channel_sections_insert(self, client, properties, **kwargs): # See full sample for function resource = build_resource(properties) # See full sample for function # kwargs = remove_empty_kwargs(**kwargs) response = client.channelSections().insert(body=resource, **kwargs).execute() return print_response(response)