class Sites extends Resource (View source)

The "sites" collection of methods.

Typical usage is:

 $searchconsoleService = new Google\Service\SearchConsole(...);
 $sites = $searchconsoleService->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.

Exceptions

Exception

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 sc-domain:example.com.

array $optParams

Optional parameters.

Exceptions

Exception

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 sc-domain:example.com.

array $optParams

Optional parameters.

Return Value

WmxSite

Exceptions

Exception

SitesListResponse listSites(array $optParams = [])

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

Parameters

array $optParams

Optional parameters.

Return Value

SitesListResponse

Exceptions

Exception