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

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







YouTube.Comments (YouTube Data API v3-rev20200402-1.30.9)












com.google.api.services.youtube

Class YouTube.Comments

  • Enclosing class:
    YouTube


    public class YouTube.Comments
    extends Object
    The "comments" collection of methods.
    • Constructor Detail

      • Comments

        public Comments()
    • Method Detail

      • delete

        public YouTube.Comments.Delete delete(String id)
                                       throws IOException
        Deletes a comment. Create a request for the method "comments.delete". This request holds the parameters needed by the youtube server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        id - The id parameter specifies the comment ID for the resource that is being deleted.
        Returns:
        the request
        Throws:
        IOException
      • insert

        public YouTube.Comments.Insert insert(String part,
                                              Comment content)
                                       throws IOException
        Creates a reply to an existing comment. Note: To create a top-level comment, use the commentThreads.insert method. Create a request for the method "comments.insert". This request holds the parameters needed by the youtube server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        part - The part parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.
        content - the Comment
        Returns:
        the request
        Throws:
        IOException
      • list

        public YouTube.Comments.List list(String part)
                                   throws IOException
        Returns a list of comments that match the API request parameters. Create a request for the method "comments.list". This request holds the parameters needed by the youtube server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        part - The part parameter specifies a comma-separated list of one or more comment resource properties that the API response will include.
        Returns:
        the request
        Throws:
        IOException
      • markAsSpam

        public YouTube.Comments.MarkAsSpam markAsSpam(String id)
                                               throws IOException
        Expresses the caller's opinion that one or more comments should be flagged as spam. Create a request for the method "comments.markAsSpam". This request holds the parameters needed by the youtube server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        id - The id parameter specifies a comma-separated list of IDs of comments that the caller believes should be classified as spam.
        Returns:
        the request
        Throws:
        IOException
      • setModerationStatus

        public YouTube.Comments.SetModerationStatus setModerationStatus(String id,
                                                                        String moderationStatus)
                                                                 throws IOException
        Sets the moderation status of one or more comments. The API request must be authorized by the owner of the channel or video associated with the comments. Create a request for the method "comments.setModerationStatus". This request holds the parameters needed by the youtube server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        id - The id parameter specifies a comma-separated list of IDs that identify the comments for which you are updating the moderation status.
        moderationStatus - Identifies the new moderation status of the specified comments.
        Returns:
        the request
        Throws:
        IOException
      • update

        public YouTube.Comments.Update update(String part,
                                              Comment content)
                                       throws IOException
        Modifies a comment. Create a request for the method "comments.update". This request holds the parameters needed by the youtube server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        part - The part parameter identifies the properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update.
        content - the Comment
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2020 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy