YouTube Data API v3 . thirdPartyLinks

Instance Methods

delete(linkingToken, type, part=None, x__xgafv=None)

Deletes a resource.

insert(part, body=None, x__xgafv=None)

Inserts a new resource into this collection.

list(part, linkingToken=None, type=None, x__xgafv=None)

Retrieves a list of resources, possibly filtered.

update(part, body=None, x__xgafv=None)

Updates an existing resource.

Method Details

delete(linkingToken, type, part=None, x__xgafv=None)
Deletes a resource.

Args:
  linkingToken: string, Delete the partner links with the given linking token. (required)
  type: string, Type of the link to be deleted. (required)
  part: string, Do not use. Required for compatibility. (repeated)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format
insert(part, body=None, x__xgafv=None)
Inserts a new resource into this collection.

Args:
  part: string, The <code><strong>part</strong></code> parameter specifies the
<code>thirdPartyLink</code> resource parts that the API request and
response will include. Supported values are <code>linkingToken</code>,
<code>status</code>, and <code>snippet</code>. (required) (repeated)
  body: object, The request body.
    The object takes the form of:

{ # A <code><strong>third party account link</strong></code> resource represents
      # a link between a YouTube account or a channel and an account on a
      # third-party service.
    "snippet": { # Basic information about a third party account link, including its type and # The <code>snippet</code> object contains basic details about the third-
        # party account link.
        # type-specific information.
      "channelToStoreLink": { # Information specific to a store on a merchandising platform linked to a # Information specific to a link between a channel and a store on a
          # merchandising platform.
          # YouTube channel.
        "storeName": "A String", # Name of the store.
        "storeUrl": "A String", # Landing page of the store.
      },
      "type": "A String", # Type of the link named after the entities that are being linked.
    },
    "etag": "A String", # Etag of this resource
    "kind": "youtube#thirdPartyLink", # Identifies what kind of resource this is. Value: the fixed string
        # <code>"youtube#thirdPartyLink"</code>.
    "status": { # The <code>third-party link status</code> object contains information about # The <code>status</code> object contains information about the status
        # of the link.
        # the status of the link.
      "linkStatus": "A String",
    },
    "linkingToken": "A String", # The <code>linking_token</code> identifies a YouTube account and
        # channel with which the third party account is linked.
  }

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A <code><strong>third party account link</strong></code> resource represents
        # a link between a YouTube account or a channel and an account on a
        # third-party service.
      "snippet": { # Basic information about a third party account link, including its type and # The <code>snippet</code> object contains basic details about the third-
          # party account link.
          # type-specific information.
        "channelToStoreLink": { # Information specific to a store on a merchandising platform linked to a # Information specific to a link between a channel and a store on a
            # merchandising platform.
            # YouTube channel.
          "storeName": "A String", # Name of the store.
          "storeUrl": "A String", # Landing page of the store.
        },
        "type": "A String", # Type of the link named after the entities that are being linked.
      },
      "etag": "A String", # Etag of this resource
      "kind": "youtube#thirdPartyLink", # Identifies what kind of resource this is. Value: the fixed string
          # <code>"youtube#thirdPartyLink"</code>.
      "status": { # The <code>third-party link status</code> object contains information about # The <code>status</code> object contains information about the status
          # of the link.
          # the status of the link.
        "linkStatus": "A String",
      },
      "linkingToken": "A String", # The <code>linking_token</code> identifies a YouTube account and
          # channel with which the third party account is linked.
    }
list(part, linkingToken=None, type=None, x__xgafv=None)
Retrieves a list of resources, possibly filtered.

Args:
  part: string, The <code><strong>part</strong></code> parameter specifies the
<code>thirdPartyLink</code> resource parts that the API response will
include. Supported values are <code>linkingToken</code>,
<code>status</code>, and <code>snippet</code>. (required) (repeated)
  linkingToken: string, Get a third party link with the given linking token.
  type: string, Get a third party link of the given type.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A <code><strong>third party account link</strong></code> resource represents
        # a link between a YouTube account or a channel and an account on a
        # third-party service.
      "snippet": { # Basic information about a third party account link, including its type and # The <code>snippet</code> object contains basic details about the third-
          # party account link.
          # type-specific information.
        "channelToStoreLink": { # Information specific to a store on a merchandising platform linked to a # Information specific to a link between a channel and a store on a
            # merchandising platform.
            # YouTube channel.
          "storeName": "A String", # Name of the store.
          "storeUrl": "A String", # Landing page of the store.
        },
        "type": "A String", # Type of the link named after the entities that are being linked.
      },
      "etag": "A String", # Etag of this resource
      "kind": "youtube#thirdPartyLink", # Identifies what kind of resource this is. Value: the fixed string
          # <code>"youtube#thirdPartyLink"</code>.
      "status": { # The <code>third-party link status</code> object contains information about # The <code>status</code> object contains information about the status
          # of the link.
          # the status of the link.
        "linkStatus": "A String",
      },
      "linkingToken": "A String", # The <code>linking_token</code> identifies a YouTube account and
          # channel with which the third party account is linked.
    }
update(part, body=None, x__xgafv=None)
Updates an existing resource.

Args:
  part: string, The <code><strong>part</strong></code> parameter specifies the
<code>thirdPartyLink</code> resource parts that the API request and
response will include. Supported values are <code>linkingToken</code>,
<code>status</code>, and <code>snippet</code>. (required) (repeated)
  body: object, The request body.
    The object takes the form of:

{ # A <code><strong>third party account link</strong></code> resource represents
      # a link between a YouTube account or a channel and an account on a
      # third-party service.
    "snippet": { # Basic information about a third party account link, including its type and # The <code>snippet</code> object contains basic details about the third-
        # party account link.
        # type-specific information.
      "channelToStoreLink": { # Information specific to a store on a merchandising platform linked to a # Information specific to a link between a channel and a store on a
          # merchandising platform.
          # YouTube channel.
        "storeName": "A String", # Name of the store.
        "storeUrl": "A String", # Landing page of the store.
      },
      "type": "A String", # Type of the link named after the entities that are being linked.
    },
    "etag": "A String", # Etag of this resource
    "kind": "youtube#thirdPartyLink", # Identifies what kind of resource this is. Value: the fixed string
        # <code>"youtube#thirdPartyLink"</code>.
    "status": { # The <code>third-party link status</code> object contains information about # The <code>status</code> object contains information about the status
        # of the link.
        # the status of the link.
      "linkStatus": "A String",
    },
    "linkingToken": "A String", # The <code>linking_token</code> identifies a YouTube account and
        # channel with which the third party account is linked.
  }

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A <code><strong>third party account link</strong></code> resource represents
        # a link between a YouTube account or a channel and an account on a
        # third-party service.
      "snippet": { # Basic information about a third party account link, including its type and # The <code>snippet</code> object contains basic details about the third-
          # party account link.
          # type-specific information.
        "channelToStoreLink": { # Information specific to a store on a merchandising platform linked to a # Information specific to a link between a channel and a store on a
            # merchandising platform.
            # YouTube channel.
          "storeName": "A String", # Name of the store.
          "storeUrl": "A String", # Landing page of the store.
        },
        "type": "A String", # Type of the link named after the entities that are being linked.
      },
      "etag": "A String", # Etag of this resource
      "kind": "youtube#thirdPartyLink", # Identifies what kind of resource this is. Value: the fixed string
          # <code>"youtube#thirdPartyLink"</code>.
      "status": { # The <code>third-party link status</code> object contains information about # The <code>status</code> object contains information about the status
          # of the link.
          # the status of the link.
        "linkStatus": "A String",
      },
      "linkingToken": "A String", # The <code>linking_token</code> identifies a YouTube account and
          # channel with which the third party account is linked.
    }