All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.youtube.YouTube.Captions.Insert.html Maven / Gradle / Ivy

There is a newer version: v3-rev20240514-2.0.0
Show newest version






YouTube.Captions.Insert (YouTube Data API v3 v3-rev20240417-2.0.0)












com.google.api.services.youtube

Class YouTube.Captions.Insert

    • Constructor Detail

      • Insert

        protected Insert(List<String> part,
                         Caption content)
        Inserts a new resource into this collection. Create a request for the method "captions.insert". This request holds the parameters needed by the the youtube server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

        YouTube.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be called to initialize this instance immediately after invoking the constructor.

        Parameters:
        part - The *part* parameter specifies the caption resource parts that the API response will include. Set the parameter value to snippet.
        content - the Caption
        Since:
        1.13
      • Insert

        protected Insert(List<String> part,
                         Caption content,
                         com.google.api.client.http.AbstractInputStreamContent mediaContent)
        Inserts a new resource into this collection. Create a request for the method "captions.insert". This request holds the parameters needed by the the youtube server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

        YouTube.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be called to initialize this instance immediately after invoking the constructor.

        This constructor should be used for uploading media content.

        Parameters:
        part - The *part* parameter specifies the caption resource parts that the API response will include. Set the parameter value to snippet.
        content - the Caption media metadata or null if none
        mediaContent - The media HTTP content.
        Since:
        1.13

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy