Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeAnalytics;
class EmptyResponse extends \Google\Model
{
protected $errorsType = Errors::class;
protected $errorsDataType = '';
/**
* @param Errors
*/
public function setErrors(Errors $errors)
{
$this->errors = $errors;
}
/**
* @return Errors
*/
public function getErrors()
{
return $this->errors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EmptyResponse::class, 'Google_Service_YouTubeAnalytics_EmptyResponse');

View File

@@ -0,0 +1,153 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeAnalytics;
class ErrorProto extends \Google\Collection
{
protected $collection_key = 'argument';
/**
* @var string[]
*/
public $argument;
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $debugInfo;
/**
* @var string
*/
public $domain;
/**
* @var string
*/
public $externalErrorMessage;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $locationType;
/**
* @param string[]
*/
public function setArgument($argument)
{
$this->argument = $argument;
}
/**
* @return string[]
*/
public function getArgument()
{
return $this->argument;
}
/**
* @param string
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @param string
*/
public function setDebugInfo($debugInfo)
{
$this->debugInfo = $debugInfo;
}
/**
* @return string
*/
public function getDebugInfo()
{
return $this->debugInfo;
}
/**
* @param string
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* @param string
*/
public function setExternalErrorMessage($externalErrorMessage)
{
$this->externalErrorMessage = $externalErrorMessage;
}
/**
* @return string
*/
public function getExternalErrorMessage()
{
return $this->externalErrorMessage;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setLocationType($locationType)
{
$this->locationType = $locationType;
}
/**
* @return string
*/
public function getLocationType()
{
return $this->locationType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ErrorProto::class, 'Google_Service_YouTubeAnalytics_ErrorProto');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeAnalytics;
class Errors extends \Google\Collection
{
protected $collection_key = 'error';
/**
* @var string
*/
public $code;
protected $errorType = ErrorProto::class;
protected $errorDataType = 'array';
/**
* @var string
*/
public $requestId;
/**
* @param string
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @param ErrorProto[]
*/
public function setError($error)
{
$this->error = $error;
}
/**
* @return ErrorProto[]
*/
public function getError()
{
return $this->error;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Errors::class, 'Google_Service_YouTubeAnalytics_Errors');

View File

@@ -0,0 +1,128 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeAnalytics;
class Group extends \Google\Model
{
protected $contentDetailsType = GroupContentDetails::class;
protected $contentDetailsDataType = '';
protected $errorsType = Errors::class;
protected $errorsDataType = '';
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
protected $snippetType = GroupSnippet::class;
protected $snippetDataType = '';
/**
* @param GroupContentDetails
*/
public function setContentDetails(GroupContentDetails $contentDetails)
{
$this->contentDetails = $contentDetails;
}
/**
* @return GroupContentDetails
*/
public function getContentDetails()
{
return $this->contentDetails;
}
/**
* @param Errors
*/
public function setErrors(Errors $errors)
{
$this->errors = $errors;
}
/**
* @return Errors
*/
public function getErrors()
{
return $this->errors;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param GroupSnippet
*/
public function setSnippet(GroupSnippet $snippet)
{
$this->snippet = $snippet;
}
/**
* @return GroupSnippet
*/
public function getSnippet()
{
return $this->snippet;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Group::class, 'Google_Service_YouTubeAnalytics_Group');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeAnalytics;
class GroupContentDetails extends \Google\Model
{
/**
* @var string
*/
public $itemCount;
/**
* @var string
*/
public $itemType;
/**
* @param string
*/
public function setItemCount($itemCount)
{
$this->itemCount = $itemCount;
}
/**
* @return string
*/
public function getItemCount()
{
return $this->itemCount;
}
/**
* @param string
*/
public function setItemType($itemType)
{
$this->itemType = $itemType;
}
/**
* @return string
*/
public function getItemType()
{
return $this->itemType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GroupContentDetails::class, 'Google_Service_YouTubeAnalytics_GroupContentDetails');

View File

@@ -0,0 +1,130 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeAnalytics;
class GroupItem extends \Google\Model
{
protected $errorsType = Errors::class;
protected $errorsDataType = '';
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $groupId;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
protected $resourceType = GroupItemResource::class;
protected $resourceDataType = '';
/**
* @param Errors
*/
public function setErrors(Errors $errors)
{
$this->errors = $errors;
}
/**
* @return Errors
*/
public function getErrors()
{
return $this->errors;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setGroupId($groupId)
{
$this->groupId = $groupId;
}
/**
* @return string
*/
public function getGroupId()
{
return $this->groupId;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param GroupItemResource
*/
public function setResource(GroupItemResource $resource)
{
$this->resource = $resource;
}
/**
* @return GroupItemResource
*/
public function getResource()
{
return $this->resource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GroupItem::class, 'Google_Service_YouTubeAnalytics_GroupItem');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeAnalytics;
class GroupItemResource extends \Google\Model
{
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GroupItemResource::class, 'Google_Service_YouTubeAnalytics_GroupItemResource');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeAnalytics;
class GroupSnippet extends \Google\Model
{
/**
* @var string
*/
public $publishedAt;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setPublishedAt($publishedAt)
{
$this->publishedAt = $publishedAt;
}
/**
* @return string
*/
public function getPublishedAt()
{
return $this->publishedAt;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GroupSnippet::class, 'Google_Service_YouTubeAnalytics_GroupSnippet');

View File

@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeAnalytics;
class ListGroupItemsResponse extends \Google\Collection
{
protected $collection_key = 'items';
protected $errorsType = Errors::class;
protected $errorsDataType = '';
/**
* @var string
*/
public $etag;
protected $itemsType = GroupItem::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @param Errors
*/
public function setErrors(Errors $errors)
{
$this->errors = $errors;
}
/**
* @return Errors
*/
public function getErrors()
{
return $this->errors;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param GroupItem[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return GroupItem[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListGroupItemsResponse::class, 'Google_Service_YouTubeAnalytics_ListGroupItemsResponse');

View File

@@ -0,0 +1,113 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeAnalytics;
class ListGroupsResponse extends \Google\Collection
{
protected $collection_key = 'items';
protected $errorsType = Errors::class;
protected $errorsDataType = '';
/**
* @var string
*/
public $etag;
protected $itemsType = Group::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param Errors
*/
public function setErrors(Errors $errors)
{
$this->errors = $errors;
}
/**
* @return Errors
*/
public function getErrors()
{
return $this->errors;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param Group[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Group[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListGroupsResponse::class, 'Google_Service_YouTubeAnalytics_ListGroupsResponse');

View File

@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeAnalytics;
class QueryResponse extends \Google\Collection
{
protected $collection_key = 'rows';
protected $columnHeadersType = ResultTableColumnHeader::class;
protected $columnHeadersDataType = 'array';
protected $errorsType = Errors::class;
protected $errorsDataType = '';
/**
* @var string
*/
public $kind;
/**
* @var array[]
*/
public $rows;
/**
* @param ResultTableColumnHeader[]
*/
public function setColumnHeaders($columnHeaders)
{
$this->columnHeaders = $columnHeaders;
}
/**
* @return ResultTableColumnHeader[]
*/
public function getColumnHeaders()
{
return $this->columnHeaders;
}
/**
* @param Errors
*/
public function setErrors(Errors $errors)
{
$this->errors = $errors;
}
/**
* @return Errors
*/
public function getErrors()
{
return $this->errors;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param array[]
*/
public function setRows($rows)
{
$this->rows = $rows;
}
/**
* @return array[]
*/
public function getRows()
{
return $this->rows;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QueryResponse::class, 'Google_Service_YouTubeAnalytics_QueryResponse');

View File

@@ -0,0 +1,115 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeAnalytics\Resource;
use Google\Service\YouTubeAnalytics\EmptyResponse;
use Google\Service\YouTubeAnalytics\GroupItem;
use Google\Service\YouTubeAnalytics\ListGroupItemsResponse;
/**
* The "groupItems" collection of methods.
* Typical usage is:
* <code>
* $youtubeAnalyticsService = new Google\Service\YouTubeAnalytics(...);
* $groupItems = $youtubeAnalyticsService->groupItems;
* </code>
*/
class GroupItems extends \Google\Service\Resource
{
/**
* Removes an item from a group. (groupItems.delete)
*
* @param array $optParams Optional parameters.
*
* @opt_param string id The `id` parameter specifies the YouTube group item ID
* of the group item that is being deleted.
* @opt_param string onBehalfOfContentOwner This parameter can only be used in a
* properly authorized request. **Note:** This parameter is intended exclusively
* for YouTube content partners that own and manage many different YouTube
* channels. The `onBehalfOfContentOwner` parameter indicates that the request's
* authorization credentials identify a YouTube user who is acting on behalf of
* the content owner specified in the parameter value. It allows content owners
* to authenticate once and get access to all their video and channel data,
* without having to provide authentication credentials for each individual
* channel. The account that the user authenticates with must be linked to the
* specified YouTube content owner.
* @return EmptyResponse
* @throws \Google\Service\Exception
*/
public function delete($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], EmptyResponse::class);
}
/**
* Creates a group item. (groupItems.insert)
*
* @param GroupItem $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string onBehalfOfContentOwner This parameter can only be used in a
* properly authorized request. **Note:** This parameter is intended exclusively
* for YouTube content partners that own and manage many different YouTube
* channels. The `onBehalfOfContentOwner` parameter indicates that the request's
* authorization credentials identify a YouTube user who is acting on behalf of
* the content owner specified in the parameter value. It allows content owners
* to authenticate once and get access to all their video and channel data,
* without having to provide authentication credentials for each individual
* channel. The account that the user authenticates with must be linked to the
* specified YouTube content owner.
* @return GroupItem
* @throws \Google\Service\Exception
*/
public function insert(GroupItem $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], GroupItem::class);
}
/**
* Returns a collection of group items that match the API request parameters.
* (groupItems.listGroupItems)
*
* @param array $optParams Optional parameters.
*
* @opt_param string groupId The `groupId` parameter specifies the unique ID of
* the group for which you want to retrieve group items.
* @opt_param string onBehalfOfContentOwner This parameter can only be used in a
* properly authorized request. **Note:** This parameter is intended exclusively
* for YouTube content partners that own and manage many different YouTube
* channels. The `onBehalfOfContentOwner` parameter indicates that the request's
* authorization credentials identify a YouTube user who is acting on behalf of
* the content owner specified in the parameter value. It allows content owners
* to authenticate once and get access to all their video and channel data,
* without having to provide authentication credentials for each individual
* channel. The account that the user authenticates with must be linked to the
* specified YouTube content owner.
* @return ListGroupItemsResponse
* @throws \Google\Service\Exception
*/
public function listGroupItems($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListGroupItemsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GroupItems::class, 'Google_Service_YouTubeAnalytics_Resource_GroupItems');

View File

@@ -0,0 +1,152 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeAnalytics\Resource;
use Google\Service\YouTubeAnalytics\EmptyResponse;
use Google\Service\YouTubeAnalytics\Group;
use Google\Service\YouTubeAnalytics\ListGroupsResponse;
/**
* The "groups" collection of methods.
* Typical usage is:
* <code>
* $youtubeAnalyticsService = new Google\Service\YouTubeAnalytics(...);
* $groups = $youtubeAnalyticsService->groups;
* </code>
*/
class Groups extends \Google\Service\Resource
{
/**
* Deletes a group. (groups.delete)
*
* @param array $optParams Optional parameters.
*
* @opt_param string id The `id` parameter specifies the YouTube group ID of the
* group that is being deleted.
* @opt_param string onBehalfOfContentOwner This parameter can only be used in a
* properly authorized request. **Note:** This parameter is intended exclusively
* for YouTube content partners that own and manage many different YouTube
* channels. The `onBehalfOfContentOwner` parameter indicates that the request's
* authorization credentials identify a YouTube user who is acting on behalf of
* the content owner specified in the parameter value. It allows content owners
* to authenticate once and get access to all their video and channel data,
* without having to provide authentication credentials for each individual
* channel. The account that the user authenticates with must be linked to the
* specified YouTube content owner.
* @return EmptyResponse
* @throws \Google\Service\Exception
*/
public function delete($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], EmptyResponse::class);
}
/**
* Creates a group. (groups.insert)
*
* @param Group $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string onBehalfOfContentOwner This parameter can only be used in a
* properly authorized request. **Note:** This parameter is intended exclusively
* for YouTube content partners that own and manage many different YouTube
* channels. The `onBehalfOfContentOwner` parameter indicates that the request's
* authorization credentials identify a YouTube user who is acting on behalf of
* the content owner specified in the parameter value. It allows content owners
* to authenticate once and get access to all their video and channel data,
* without having to provide authentication credentials for each individual
* channel. The account that the user authenticates with must be linked to the
* specified YouTube content owner.
* @return Group
* @throws \Google\Service\Exception
*/
public function insert(Group $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], Group::class);
}
/**
* Returns a collection of groups that match the API request parameters. For
* example, you can retrieve all groups that the authenticated user owns, or you
* can retrieve one or more groups by their unique IDs. (groups.listGroups)
*
* @param array $optParams Optional parameters.
*
* @opt_param string id The `id` parameter specifies a comma-separated list of
* the YouTube group ID(s) for the resource(s) that are being retrieved. Each
* group must be owned by the authenticated user. In a `group` resource, the
* `id` property specifies the group's YouTube group ID. Note that if you do not
* specify a value for the `id` parameter, then you must set the `mine`
* parameter to `true`.
* @opt_param bool mine This parameter can only be used in a properly authorized
* request. Set this parameter's value to true to retrieve all groups owned by
* the authenticated user.
* @opt_param string onBehalfOfContentOwner This parameter can only be used in a
* properly authorized request. **Note:** This parameter is intended exclusively
* for YouTube content partners that own and manage many different YouTube
* channels. The `onBehalfOfContentOwner` parameter indicates that the request's
* authorization credentials identify a YouTube user who is acting on behalf of
* the content owner specified in the parameter value. It allows content owners
* to authenticate once and get access to all their video and channel data,
* without having to provide authentication credentials for each individual
* channel. The account that the user authenticates with must be linked to the
* specified YouTube content owner.
* @opt_param string pageToken The `pageToken` parameter identifies a specific
* page in the result set that should be returned. In an API response, the
* `nextPageToken` property identifies the next page that can be retrieved.
* @return ListGroupsResponse
* @throws \Google\Service\Exception
*/
public function listGroups($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListGroupsResponse::class);
}
/**
* Modifies a group. For example, you could change a group's title.
* (groups.update)
*
* @param Group $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string onBehalfOfContentOwner This parameter can only be used in a
* properly authorized request. **Note:** This parameter is intended exclusively
* for YouTube content partners that own and manage many different YouTube
* channels. The `onBehalfOfContentOwner` parameter indicates that the request's
* authorization credentials identify a YouTube user who is acting on behalf of
* the content owner specified in the parameter value. It allows content owners
* to authenticate once and get access to all their video and channel data,
* without having to provide authentication credentials for each individual
* channel. The account that the user authenticates with must be linked to the
* specified YouTube content owner.
* @return Group
* @throws \Google\Service\Exception
*/
public function update(Group $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Group::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Groups::class, 'Google_Service_YouTubeAnalytics_Resource_Groups');

View File

@@ -0,0 +1,99 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeAnalytics\Resource;
use Google\Service\YouTubeAnalytics\QueryResponse;
/**
* The "reports" collection of methods.
* Typical usage is:
* <code>
* $youtubeAnalyticsService = new Google\Service\YouTubeAnalytics(...);
* $reports = $youtubeAnalyticsService->reports;
* </code>
*/
class Reports extends \Google\Service\Resource
{
/**
* Retrieve your YouTube Analytics reports. (reports.query)
*
* @param array $optParams Optional parameters.
*
* @opt_param string currency The currency to which financial metrics should be
* converted. The default is US Dollar (USD). If the result contains no
* financial metrics, this flag will be ignored. Responds with an error if the
* specified currency is not recognized.", pattern: [A-Z]{3}
* @opt_param string dimensions A comma-separated list of YouTube Analytics
* dimensions, such as `views` or `ageGroup,gender`. See the [Available
* Reports](/youtube/analytics/v2/available_reports) document for a list of the
* reports that you can retrieve and the dimensions used for those reports. Also
* see the [Dimensions](/youtube/analytics/v2/dimsmets/dims) document for
* definitions of those dimensions." pattern: [0-9a-zA-Z,]+
* @opt_param string endDate The end date for fetching YouTube Analytics data.
* The value should be in `YYYY-MM-DD` format. required: true, pattern:
* [0-9]{4}-[0-9]{2}-[0-9]{2}
* @opt_param string filters A list of filters that should be applied when
* retrieving YouTube Analytics data. The [Available
* Reports](/youtube/analytics/v2/available_reports) document identifies the
* dimensions that can be used to filter each report, and the
* [Dimensions](/youtube/analytics/v2/dimsmets/dims) document defines those
* dimensions. If a request uses multiple filters, join them together with a
* semicolon (`;`), and the returned result table will satisfy both filters. For
* example, a filters parameter value of `video==dMH0bHeiRNg;country==IT`
* restricts the result set to include data for the given video in Italy.",
* @opt_param string ids Identifies the YouTube channel or content owner for
* which you are retrieving YouTube Analytics data. - To request data for a
* YouTube user, set the `ids` parameter value to `channel==CHANNEL_ID`, where
* `CHANNEL_ID` specifies the unique YouTube channel ID. - To request data for a
* YouTube CMS content owner, set the `ids` parameter value to
* `contentOwner==OWNER_NAME`, where `OWNER_NAME` is the CMS name of the content
* owner. required: true, pattern: [a-zA-Z]+==[a-zA-Z0-9_+-]+
* @opt_param bool includeHistoricalChannelData If set to true historical data
* (i.e. channel data from before the linking of the channel to the content
* owner) will be retrieved.",
* @opt_param int maxResults The maximum number of rows to include in the
* response.", minValue: 1
* @opt_param string metrics A comma-separated list of YouTube Analytics
* metrics, such as `views` or `likes,dislikes`. See the [Available
* Reports](/youtube/analytics/v2/available_reports) document for a list of the
* reports that you can retrieve and the metrics available in each report, and
* see the [Metrics](/youtube/analytics/v2/dimsmets/mets) document for
* definitions of those metrics. required: true, pattern: [0-9a-zA-Z,]+
* @opt_param string sort A comma-separated list of dimensions or metrics that
* determine the sort order for YouTube Analytics data. By default the sort
* order is ascending. The '`-`' prefix causes descending sort order.", pattern:
* [-0-9a-zA-Z,]+
* @opt_param string startDate The start date for fetching YouTube Analytics
* data. The value should be in `YYYY-MM-DD` format. required: true, pattern:
* "[0-9]{4}-[0-9]{2}-[0-9]{2}
* @opt_param int startIndex An index of the first entity to retrieve. Use this
* parameter as a pagination mechanism along with the max-results parameter
* (one-based, inclusive).", minValue: 1
* @return QueryResponse
* @throws \Google\Service\Exception
*/
public function query($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('query', [$params], QueryResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Reports::class, 'Google_Service_YouTubeAnalytics_Resource_Reports');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeAnalytics;
class ResultTableColumnHeader extends \Google\Model
{
/**
* @var string
*/
public $columnType;
/**
* @var string
*/
public $dataType;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setColumnType($columnType)
{
$this->columnType = $columnType;
}
/**
* @return string
*/
public function getColumnType()
{
return $this->columnType;
}
/**
* @param string
*/
public function setDataType($dataType)
{
$this->dataType = $dataType;
}
/**
* @return string
*/
public function getDataType()
{
return $this->dataType;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResultTableColumnHeader::class, 'Google_Service_YouTubeAnalytics_ResultTableColumnHeader');