class ThirdPartyLinks extends Resource (View source)

The "thirdPartyLinks" collection of methods.

Typical usage is:

 $youtubeService = new Google\Service\YouTube(...);
 $thirdPartyLinks = $youtubeService->thirdPartyLinks;

Methods

delete(string $linkingToken, string $type, array $optParams = [])

Deletes a resource. (thirdPartyLinks.delete)

insert(string|array $part, ThirdPartyLink $postBody, array $optParams = [])

Inserts a new resource into this collection. (thirdPartyLinks.insert)

listThirdPartyLinks(string|array $part, array $optParams = [])

Retrieves a list of resources, possibly filtered.

update(string|array $part, ThirdPartyLink $postBody, array $optParams = [])

Updates an existing resource. (thirdPartyLinks.update)

Details

delete(string $linkingToken, string $type, array $optParams = [])

Deletes a resource. (thirdPartyLinks.delete)

Parameters

string $linkingToken

Delete the partner links with the given linking token.

string $type

Type of the link to be deleted.

array $optParams

Optional parameters.

Exceptions

Exception

ThirdPartyLink insert(string|array $part, ThirdPartyLink $postBody, array $optParams = [])

Inserts a new resource into this collection. (thirdPartyLinks.insert)

Parameters

string|array $part

The part parameter specifies the thirdPartyLink resource parts that the API request and response will include. Supported values are linkingToken, status, and snippet.

ThirdPartyLink $postBody
array $optParams

Optional parameters.

Return Value

ThirdPartyLink

Exceptions

Exception

Retrieves a list of resources, possibly filtered.

(thirdPartyLinks.listThirdPartyLinks)

Parameters

string|array $part

The part parameter specifies the thirdPartyLink resource parts that the API response will include. Supported values are linkingToken, status, and snippet.

array $optParams

Optional parameters.

Return Value

ThirdPartyLinkListResponse

Exceptions

Exception

ThirdPartyLink update(string|array $part, ThirdPartyLink $postBody, array $optParams = [])

Updates an existing resource. (thirdPartyLinks.update)

Parameters

string|array $part

The part parameter specifies the thirdPartyLink resource parts that the API request and response will include. Supported values are linkingToken, status, and snippet.

ThirdPartyLink $postBody
array $optParams

Optional parameters.

Return Value

ThirdPartyLink

Exceptions

Exception