You are here

public function RestClient::setRefreshToken in Salesforce Suite 8.3

Same name in this branch
  1. 8.3 src/Rest/RestClient.php \Drupal\salesforce\Rest\RestClient::setRefreshToken()
  2. 8.3 modules/salesforce_encrypt/src/Rest/RestClient.php \Drupal\salesforce_encrypt\Rest\RestClient::setRefreshToken()

Set the refresh token.

Parameters

string $token: Refresh token from Salesforce.

Overrides RestClient::setRefreshToken

Deprecated

in 8.x-4.0 and does not have an exact analog, refer to \Drupal\salesforce\SalesforceAuthProviderInterface instead.

1 call to RestClient::setRefreshToken()
RestClient::setEncryption in modules/salesforce_encrypt/src/Rest/RestClient.php
Set the given encryption profile as active.

File

modules/salesforce_encrypt/src/Rest/RestClient.php, line 250

Class

RestClient
Objects, properties, and methods to communicate with the Salesforce REST API.

Namespace

Drupal\salesforce_encrypt\Rest

Code

public function setRefreshToken($token) {
  return parent::setRefreshToken($this
    ->encrypt($token));
}