コード例 #1
0
ファイル: Video.py プロジェクト: gilz1407/YoutubeService
    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)
コード例 #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)
コード例 #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)
コード例 #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)