X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/lib/google/src/Google/Service
home
/
cbholdings
/
pasukulu
/
lib
/
google
/
src
/
Google
/
Service
/
📁
..
📄
AdExchangeBuyer.php
(174.83 KB)
📄
AdExchangeSeller.php
(45.83 KB)
📄
AdSense.php
(101.29 KB)
📄
AdSenseHost.php
(61.74 KB)
📄
Admin.php
(4.46 KB)
📄
Analytics.php
(272.44 KB)
📄
AndroidEnterprise.php
(97.03 KB)
📄
AndroidPublisher.php
(124.87 KB)
📄
AppState.php
(10.23 KB)
📄
Appengine.php
(51.47 KB)
📄
Appsactivity.php
(14.46 KB)
📄
Audit.php
(10.1 KB)
📄
Autoscaler.php
(35.74 KB)
📄
Bigquery.php
(93.68 KB)
📄
Blogger.php
(89.81 KB)
📄
Books.php
(187.8 KB)
📄
Calendar.php
(116.73 KB)
📄
CivicInfo.php
(39.84 KB)
📄
Classroom.php
(50.79 KB)
📄
CloudMonitoring.php
(34.61 KB)
📄
CloudUserAccounts.php
(65.17 KB)
📄
Cloudbilling.php
(14.38 KB)
📄
Clouddebugger.php
(37.09 KB)
📄
Cloudlatencytest.php
(7.14 KB)
📄
Cloudresourcemanager.php
(30.68 KB)
📄
Cloudsearch.php
(1.37 KB)
📄
Cloudtrace.php
(13.1 KB)
📄
Compute.php
(520.94 KB)
📄
Computeaccounts.php
(45.65 KB)
📄
Container.php
(26.63 KB)
📄
Coordinate.php
(42.6 KB)
📄
Customsearch.php
(29.92 KB)
📄
DataTransfer.php
(14.96 KB)
📄
Dataflow.php
(90.7 KB)
📄
Datastore.php
(37.06 KB)
📄
DeploymentManager.php
(57.43 KB)
📄
Dfareporting.php
(626.18 KB)
📄
Directory.php
(192.76 KB)
📄
Dns.php
(25.9 KB)
📄
DoubleClickBidManager.php
(26.85 KB)
📄
Doubleclicksearch.php
(40.61 KB)
📄
Drive.php
(155.39 KB)
📄
Exception.php
(2.72 KB)
📄
Fitness.php
(46.34 KB)
📄
Freebase.php
(12.63 KB)
📄
Fusiontables.php
(69.8 KB)
📄
Games.php
(192.63 KB)
📄
GamesConfiguration.php
(31.3 KB)
📄
GamesManagement.php
(41.58 KB)
📄
Genomics.php
(107.03 KB)
📄
Gmail.php
(65.4 KB)
📄
GroupsMigration.php
(3.35 KB)
📄
Groupssettings.php
(11.12 KB)
📄
IdentityToolkit.php
(42.15 KB)
📄
Licensing.php
(14.86 KB)
📄
Logging.php
(9.15 KB)
📄
Manager.php
(45.88 KB)
📄
MapsEngine.php
(183.98 KB)
📄
Mirror.php
(47.96 KB)
📄
Oauth2.php
(10.99 KB)
📄
Pagespeedonline.php
(19.92 KB)
📄
Partners.php
(44.94 KB)
📄
Playmoviespartner.php
(43.75 KB)
📄
Plus.php
(84.55 KB)
📄
PlusDomains.php
(93.89 KB)
📄
Prediction.php
(31.39 KB)
📄
Proximitybeacon.php
(37.72 KB)
📄
Pubsub.php
(26.95 KB)
📄
QPXExpress.php
(31.48 KB)
📄
Replicapool.php
(38.83 KB)
📄
Replicapoolupdater.php
(37.11 KB)
📄
Reports.php
(28.55 KB)
📄
Reseller.php
(33.09 KB)
📄
Resource.php
(8.45 KB)
📄
Resourceviews.php
(37.28 KB)
📄
SQLAdmin.php
(102.96 KB)
📄
Script.php
(9.22 KB)
📄
ShoppingContent.php
(234.26 KB)
📄
SiteVerification.php
(12.06 KB)
📄
Spectrum.php
(42.2 KB)
📄
Storage.php
(105.8 KB)
📄
Storagetransfer.php
(41.66 KB)
📄
TagManager.php
(101.25 KB)
📄
Taskqueue.php
(19.95 KB)
📄
Tasks.php
(25.42 KB)
📄
Translate.php
(9.65 KB)
📄
Urlshortener.php
(10.52 KB)
📄
Webfonts.php
(4.75 KB)
📄
Webmasters.php
(33.68 KB)
📄
YouTube.php
(383.98 KB)
📄
YouTubeAnalytics.php
(35.47 KB)
📄
YouTubeReporting.php
(19.35 KB)
Editing: Resource.php
<?php /** * Copyright 2010 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. */ if (!class_exists('Google_Client')) { require_once dirname(__FILE__) . '/../autoload.php'; } /** * Implements the actual methods/resources of the discovered Google API using magic function * calling overloading (__call()), which on call will see if the method name (plus.activities.list) * is available in this service, and if so construct an apiHttpRequest representing it. * */ #[AllowDynamicProperties] class Google_Service_Resource { // Valid query parameters that work, but don't appear in discovery. private $stackParameters = array( 'alt' => array('type' => 'string', 'location' => 'query'), 'fields' => array('type' => 'string', 'location' => 'query'), 'trace' => array('type' => 'string', 'location' => 'query'), 'userIp' => array('type' => 'string', 'location' => 'query'), 'quotaUser' => array('type' => 'string', 'location' => 'query'), 'data' => array('type' => 'string', 'location' => 'body'), 'mimeType' => array('type' => 'string', 'location' => 'header'), 'uploadType' => array('type' => 'string', 'location' => 'query'), 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), 'prettyPrint' => array('type' => 'string', 'location' => 'query'), ); /** @var string $rootUrl */ private $rootUrl; /** @var Google_Client $client */ private $client; /** @var string $serviceName */ private $serviceName; /** @var string $servicePath */ private $servicePath; /** @var string $resourceName */ private $resourceName; /** @var array $methods */ private $methods; public function __construct($service, $serviceName, $resourceName, $resource) { $this->rootUrl = $service->rootUrl; $this->client = $service->getClient(); $this->servicePath = $service->servicePath; $this->serviceName = $serviceName; $this->resourceName = $resourceName; $this->methods = is_array($resource) && isset($resource['methods']) ? $resource['methods'] : array($resourceName => $resource); } /** * TODO: This function needs simplifying. * @param $name * @param $arguments * @param $expected_class - optional, the expected class name * @return Google_Http_Request|expected_class * @throws Google_Exception */ public function call($name, $arguments, $expected_class = null) { if (! isset($this->methods[$name])) { $this->client->getLogger()->error( 'Service method unknown', array( 'service' => $this->serviceName, 'resource' => $this->resourceName, 'method' => $name ) ); throw new Google_Exception( "Unknown function: " . "{$this->serviceName}->{$this->resourceName}->{$name}()" ); } $method = $this->methods[$name]; $parameters = $arguments[0]; // postBody is a special case since it's not defined in the discovery // document as parameter, but we abuse the param entry for storing it. $postBody = null; if (isset($parameters['postBody'])) { if ($parameters['postBody'] instanceof Google_Model) { // In the cases the post body is an existing object, we want // to use the smart method to create a simple object for // for JSONification. $parameters['postBody'] = $parameters['postBody']->toSimpleObject(); } else if (is_object($parameters['postBody'])) { // If the post body is another kind of object, we will try and // wrangle it into a sensible format. $parameters['postBody'] = $this->convertToArrayAndStripNulls($parameters['postBody']); } $postBody = json_encode($parameters['postBody']); if ($postBody === false && $parameters['postBody'] !== false) { throw new Google_Exception("JSON encoding failed. Ensure all strings in the request are UTF-8 encoded."); } unset($parameters['postBody']); } // TODO: optParams here probably should have been // handled already - this may well be redundant code. if (isset($parameters['optParams'])) { $optParams = $parameters['optParams']; unset($parameters['optParams']); $parameters = array_merge($parameters, $optParams); } if (!isset($method['parameters'])) { $method['parameters'] = array(); } $method['parameters'] = array_merge( $this->stackParameters, $method['parameters'] ); foreach ($parameters as $key => $val) { if ($key != 'postBody' && ! isset($method['parameters'][$key])) { $this->client->getLogger()->error( 'Service parameter unknown', array( 'service' => $this->serviceName, 'resource' => $this->resourceName, 'method' => $name, 'parameter' => $key ) ); throw new Google_Exception("($name) unknown parameter: '$key'"); } } foreach ($method['parameters'] as $paramName => $paramSpec) { if (isset($paramSpec['required']) && $paramSpec['required'] && ! isset($parameters[$paramName]) ) { $this->client->getLogger()->error( 'Service parameter missing', array( 'service' => $this->serviceName, 'resource' => $this->resourceName, 'method' => $name, 'parameter' => $paramName ) ); throw new Google_Exception("($name) missing required param: '$paramName'"); } if (isset($parameters[$paramName])) { $value = $parameters[$paramName]; $parameters[$paramName] = $paramSpec; $parameters[$paramName]['value'] = $value; unset($parameters[$paramName]['required']); } else { // Ensure we don't pass nulls. unset($parameters[$paramName]); } } $this->client->getLogger()->info( 'Service Call', array( 'service' => $this->serviceName, 'resource' => $this->resourceName, 'method' => $name, 'arguments' => $parameters, ) ); $url = Google_Http_REST::createRequestUri( $this->servicePath, $method['path'], $parameters ); $httpRequest = new Google_Http_Request( $url, $method['httpMethod'], null, $postBody ); if ($this->rootUrl) { $httpRequest->setBaseComponent($this->rootUrl); } else { $httpRequest->setBaseComponent($this->client->getBasePath()); } if ($postBody) { $contentTypeHeader = array(); $contentTypeHeader['content-type'] = 'application/json; charset=UTF-8'; $httpRequest->setRequestHeaders($contentTypeHeader); $httpRequest->setPostBody($postBody); } $httpRequest = $this->client->getAuth()->sign($httpRequest); $httpRequest->setExpectedClass($expected_class); if (isset($parameters['data']) && ($parameters['uploadType']['value'] == 'media' || $parameters['uploadType']['value'] == 'multipart')) { // If we are doing a simple media upload, trigger that as a convenience. $mfu = new Google_Http_MediaFileUpload( $this->client, $httpRequest, isset($parameters['mimeType']) ? $parameters['mimeType']['value'] : 'application/octet-stream', $parameters['data']['value'] ); } if (isset($parameters['alt']) && $parameters['alt']['value'] == 'media') { $httpRequest->enableExpectedRaw(); } if ($this->client->shouldDefer()) { // If we are in batch or upload mode, return the raw request. return $httpRequest; } return $this->client->execute($httpRequest); } protected function convertToArrayAndStripNulls($o) { $o = (array) $o; foreach ($o as $k => $v) { if ($v === null) { unset($o[$k]); } elseif (is_object($v) || is_array($v)) { $o[$k] = $this->convertToArrayAndStripNulls($o[$k]); } } return $o; } }
Upload File
Create Folder