class Sites extends Resource (View source)

The "sites" collection of methods.

Typical usage is:

 $webmastersService = new Google\Service\Webmasters(...);
 $sites = $webmastersService->sites;

Methods

add(string $siteUrl, array $optParams = [])

Adds a site to the set of the user's sites in Search Console. (sites.add)

delete(string $siteUrl, array $optParams = [])

Removes a site from the set of the user's Search Console sites.

get(string $siteUrl, array $optParams = [])

Retrieves information about specific site. (sites.get)

listSites(array $optParams = [])

Lists the user's Search Console sites. (sites.listSites)

Details

add(string $siteUrl, array $optParams = [])

Adds a site to the set of the user's sites in Search Console. (sites.add)

Parameters

string $siteUrl

The URL of the site to add.

array $optParams

Optional parameters.

delete(string $siteUrl, array $optParams = [])

Removes a site from the set of the user's Search Console sites.

(sites.delete)

Parameters

string $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.

array $optParams

Optional parameters.

WmxSite get(string $siteUrl, array $optParams = [])

Retrieves information about specific site. (sites.get)

Parameters

string $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.

array $optParams

Optional parameters.

Return Value

WmxSite

SitesListResponse listSites(array $optParams = [])

Lists the user's Search Console sites. (sites.listSites)

Parameters

array $optParams

Optional parameters.

Return Value

SitesListResponse