You are here

public function GoogleApiClientInterface::setAccessToken in Google API PHP Client 8.3

Same name and namespace in other branches
  1. 8.4 src/GoogleApiClientInterface.php \Drupal\google_api_client\GoogleApiClientInterface::setAccessToken()
  2. 8.2 src/GoogleApiClientInterface.php \Drupal\google_api_client\GoogleApiClientInterface::setAccessToken()

Function set Access Token.

Parameters

string $token: Pass JSON of Access Token for the account.

1 method overrides GoogleApiClientInterface::setAccessToken()
GoogleApiClient::setAccessToken in src/Entity/GoogleApiClient.php
Function set Access Token.

File

src/GoogleApiClientInterface.php, line 142

Class

GoogleApiClientInterface
Provides an interface defining a GoogleApiClient entity.

Namespace

Drupal\google_api_client

Code

public function setAccessToken($token);