public class Webmasters.Sites extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Webmasters.Sites.Add |
class |
Webmasters.Sites.Delete |
class |
Webmasters.Sites.Get |
class |
Webmasters.Sites.List |
| Constructor and Description |
|---|
Sites() |
| 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.
|
public Webmasters.Sites.Add add(String siteUrl) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.siteUrl - The URL of the site to add.IOExceptionpublic Webmasters.Sites.Delete delete(String siteUrl) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.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.IOExceptionpublic Webmasters.Sites.Get get(String siteUrl) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.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.IOExceptionpublic Webmasters.Sites.List list() throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.IOExceptionCopyright © 2011–2021 Google. All rights reserved.