Google Site Verification API . webResource

Instance Methods

close()

Close httplib2 connections.

delete(id)

Relinquish ownership of a website or domain.

get(id)

Get the most current data for a website or domain.

getToken(body=None)

Get a verification token for placing on a website or domain.

insert(verificationMethod, body=None)

Attempt verification of a website or domain.

list()

Get the list of your verified websites and domains.

patch(id, body=None)

Modify the list of owners for your website or domain. This method supports patch semantics.

update(id, body=None)

Modify the list of owners for your website or domain.

Method Details

close()
Close httplib2 connections.
delete(id)
Relinquish ownership of a website or domain.

Args:
  id: string, The id of a verified site or domain. (required)
get(id)
Get the most current data for a website or domain.

Args:
  id: string, The id of a verified site or domain. (required)

Returns:
  An object of the form:

    {
  "id": "A String", # The string used to identify this site. This value should be used in the "id" portion of the REST URL for the Get, Update, and Delete operations.
  "owners": [ # The email addresses of all verified owners.
    "A String",
  ],
  "site": { # The address and type of a site that is verified or will be verified.
    "identifier": "A String", # The site identifier. If the type is set to SITE, the identifier is a URL. If the type is set to INET_DOMAIN, the site identifier is a domain name.
    "type": "A String", # The site type. Can be SITE or INET_DOMAIN (domain name).
  },
}
getToken(body=None)
Get a verification token for placing on a website or domain.

Args:
  body: object, The request body.
    The object takes the form of:

{
  "site": { # The site for which a verification token will be generated.
    "identifier": "A String", # The site identifier. If the type is set to SITE, the identifier is a URL. If the type is set to INET_DOMAIN, the site identifier is a domain name.
    "type": "A String", # The type of resource to be verified. Can be SITE or INET_DOMAIN (domain name).
  },
  "verificationMethod": "A String", # The verification method that will be used to verify this site. For sites, 'FILE' or 'META' methods may be used. For domains, only 'DNS' may be used.
}


Returns:
  An object of the form:

    {
  "method": "A String", # The verification method to use in conjunction with this token. For FILE, the token should be placed in the top-level directory of the site, stored inside a file of the same name. For META, the token should be placed in the HEAD tag of the default page that is loaded for the site. For DNS, the token should be placed in a TXT record of the domain.
  "token": "A String", # The verification token. The token must be placed appropriately in order for verification to succeed.
}
insert(verificationMethod, body=None)
Attempt verification of a website or domain.

Args:
  verificationMethod: string, The method to use for verifying a site or domain. (required)
  body: object, The request body.
    The object takes the form of:

{
  "id": "A String", # The string used to identify this site. This value should be used in the "id" portion of the REST URL for the Get, Update, and Delete operations.
  "owners": [ # The email addresses of all verified owners.
    "A String",
  ],
  "site": { # The address and type of a site that is verified or will be verified.
    "identifier": "A String", # The site identifier. If the type is set to SITE, the identifier is a URL. If the type is set to INET_DOMAIN, the site identifier is a domain name.
    "type": "A String", # The site type. Can be SITE or INET_DOMAIN (domain name).
  },
}


Returns:
  An object of the form:

    {
  "id": "A String", # The string used to identify this site. This value should be used in the "id" portion of the REST URL for the Get, Update, and Delete operations.
  "owners": [ # The email addresses of all verified owners.
    "A String",
  ],
  "site": { # The address and type of a site that is verified or will be verified.
    "identifier": "A String", # The site identifier. If the type is set to SITE, the identifier is a URL. If the type is set to INET_DOMAIN, the site identifier is a domain name.
    "type": "A String", # The site type. Can be SITE or INET_DOMAIN (domain name).
  },
}
list()
Get the list of your verified websites and domains.

Args:

Returns:
  An object of the form:

    {
  "items": [ # The list of sites that are owned by the authenticated user.
    {
      "id": "A String", # The string used to identify this site. This value should be used in the "id" portion of the REST URL for the Get, Update, and Delete operations.
      "owners": [ # The email addresses of all verified owners.
        "A String",
      ],
      "site": { # The address and type of a site that is verified or will be verified.
        "identifier": "A String", # The site identifier. If the type is set to SITE, the identifier is a URL. If the type is set to INET_DOMAIN, the site identifier is a domain name.
        "type": "A String", # The site type. Can be SITE or INET_DOMAIN (domain name).
      },
    },
  ],
}
patch(id, body=None)
Modify the list of owners for your website or domain. This method supports patch semantics.

Args:
  id: string, The id of a verified site or domain. (required)
  body: object, The request body.
    The object takes the form of:

{
  "id": "A String", # The string used to identify this site. This value should be used in the "id" portion of the REST URL for the Get, Update, and Delete operations.
  "owners": [ # The email addresses of all verified owners.
    "A String",
  ],
  "site": { # The address and type of a site that is verified or will be verified.
    "identifier": "A String", # The site identifier. If the type is set to SITE, the identifier is a URL. If the type is set to INET_DOMAIN, the site identifier is a domain name.
    "type": "A String", # The site type. Can be SITE or INET_DOMAIN (domain name).
  },
}


Returns:
  An object of the form:

    {
  "id": "A String", # The string used to identify this site. This value should be used in the "id" portion of the REST URL for the Get, Update, and Delete operations.
  "owners": [ # The email addresses of all verified owners.
    "A String",
  ],
  "site": { # The address and type of a site that is verified or will be verified.
    "identifier": "A String", # The site identifier. If the type is set to SITE, the identifier is a URL. If the type is set to INET_DOMAIN, the site identifier is a domain name.
    "type": "A String", # The site type. Can be SITE or INET_DOMAIN (domain name).
  },
}
update(id, body=None)
Modify the list of owners for your website or domain.

Args:
  id: string, The id of a verified site or domain. (required)
  body: object, The request body.
    The object takes the form of:

{
  "id": "A String", # The string used to identify this site. This value should be used in the "id" portion of the REST URL for the Get, Update, and Delete operations.
  "owners": [ # The email addresses of all verified owners.
    "A String",
  ],
  "site": { # The address and type of a site that is verified or will be verified.
    "identifier": "A String", # The site identifier. If the type is set to SITE, the identifier is a URL. If the type is set to INET_DOMAIN, the site identifier is a domain name.
    "type": "A String", # The site type. Can be SITE or INET_DOMAIN (domain name).
  },
}


Returns:
  An object of the form:

    {
  "id": "A String", # The string used to identify this site. This value should be used in the "id" portion of the REST URL for the Get, Update, and Delete operations.
  "owners": [ # The email addresses of all verified owners.
    "A String",
  ],
  "site": { # The address and type of a site that is verified or will be verified.
    "identifier": "A String", # The site identifier. If the type is set to SITE, the identifier is a URL. If the type is set to INET_DOMAIN, the site identifier is a domain name.
    "type": "A String", # The site type. Can be SITE or INET_DOMAIN (domain name).
  },
}