target.apidocs.com.google.api.services.webmasters.Webmasters.Sites.html Maven / Gradle / Ivy
Webmasters.Sites (Search Console API v3-rev20190428-1.30.1)
com.google.api.services.webmasters
Class Webmasters.Sites
- java.lang.Object
-
- com.google.api.services.webmasters.Webmasters.Sites
-
- Enclosing class:
- Webmasters
public class Webmasters.Sites
extends Object
The "sites" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Webmasters.Sites.Add
class
Webmasters.Sites.Delete
class
Webmasters.Sites.Get
class
Webmasters.Sites.List
-
Constructor Summary
Constructors
Constructor and Description
Sites()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Webmasters.Sites.Add
add(String siteUrl)
Adds a site to the set of the user's sites in Search Console.
Webmasters.Sites.Delete
delete(String siteUrl)
Removes a site from the set of the user's Search Console sites.
Webmasters.Sites.Get
get(String siteUrl)
Retrieves information about specific site.
Webmasters.Sites.List
list()
Lists the user's Search Console sites.
-
-
Method Detail
-
add
public Webmasters.Sites.Add add(String siteUrl)
throws IOException
Adds a site to the set of the user's sites in Search Console.
Create a request for the method "sites.add".
This request holds the parameters needed by the webmasters server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
siteUrl
- The URL of the site to add.
- Returns:
- the request
- Throws:
IOException
-
delete
public Webmasters.Sites.Delete delete(String siteUrl)
throws IOException
Removes a site from the set of the user's Search Console sites.
Create a request for the method "sites.delete".
This request holds the parameters needed by the webmasters server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
siteUrl
- The URI of the property as defined in Search Console. Examples: http://www.example.com/ or android-
app://com.example/ Note: for property-sets, use the URI that starts with sc-set: which is
used in Search Console URLs.
- Returns:
- the request
- Throws:
IOException
-
get
public Webmasters.Sites.Get get(String siteUrl)
throws IOException
Retrieves information about specific site.
Create a request for the method "sites.get".
This request holds the parameters needed by the webmasters server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
siteUrl
- The URI of the property as defined in Search Console. Examples: http://www.example.com/ or android-
app://com.example/ Note: for property-sets, use the URI that starts with sc-set: which is
used in Search Console URLs.
- Returns:
- the request
- Throws:
IOException
-
list
public Webmasters.Sites.List list()
throws IOException
Lists the user's Search Console sites.
Create a request for the method "sites.list".
This request holds the parameters needed by the webmasters server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2019 Google. All rights reserved.