You are here

public function InstagramAccountInterface::refreshToken in Instagram Feeds 8

Tries to refresh long-lived Instagram access token.

Parameters

\GuzzleHttp\Client $http_client: Guzzle HTTP Client.

bool $save: Save entity or not after token has been refreshed successfully.

Return value

bool True if success, false otherwise.

Throws

\Exception

1 method overrides InstagramAccountInterface::refreshToken()
InstagramAccount::refreshToken in src/Entity/InstagramAccount.php
Tries to refresh long-lived Instagram access token.

File

src/Entity/InstagramAccountInterface.php, line 57

Class

InstagramAccountInterface
InstagramAccount Interface.

Namespace

Drupal\instagram_feeds\Entity

Code

public function refreshToken(Client $http_client, bool $save = FALSE) : bool;