Esempio n. 1
0
    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)
Esempio n. 2
0
    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)
Esempio n. 3
0
    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)
Esempio n. 4
0
    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)