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

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






YouTube.Comments (YouTube Data API v3 v3-rev20240303-2.0.0)












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 resource. 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 -
        Returns:
        the request
        Throws:
        IOException
      • insert

        public YouTube.Comments.Insert insert(List<String> part,
                                              Comment content)
                                       throws IOException
        Inserts a new resource into this collection. 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(List<String> part)
                                   throws IOException
        Retrieves a list of resources, possibly filtered. 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(List<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 - Flags the comments with the given IDs as spam in the caller's opinion.
        Returns:
        the request
        Throws:
        IOException
      • setModerationStatus

        public YouTube.Comments.SetModerationStatus setModerationStatus(List<String> id,
                                                                        String moderationStatus)
                                                                 throws IOException
        Sets the moderation status of one or more 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 - Modifies the moderation status of the comments with the given IDs
        moderationStatus - Specifies the requested moderation status. Note, comments can be in statuses, which are not available through this call. For example, this call does not allow to mark a comment as 'likely spam'. Valid values: 'heldForReview', 'published' or 'rejected'.
        Returns:
        the request
        Throws:
        IOException
      • update

        public YouTube.Comments.Update update(List<String> part,
                                              Comment content)
                                       throws IOException
        Updates an existing resource. 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–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy