public function InstagramAccountInterface::getToken in Instagram Feeds 8
Gets the Instagram long-lived token.
Parameters
string $client_id: Instagram app (client) ID.
string $client_secret: Instagram app (client) secret.
string $code: Instagram auth code to regenerate the token.
bool $save: Save entity or not after token has been refreshed successfully.
Return value
string Instagram long-lived access token for the authorized Instagram account.
1 method overrides InstagramAccountInterface::getToken()
- InstagramAccount::getToken in src/
Entity/ InstagramAccount.php - Gets the Instagram long-lived token.
File
- src/
Entity/ InstagramAccountInterface.php, line 34
Class
- InstagramAccountInterface
- InstagramAccount Interface.
Namespace
Drupal\instagram_feeds\EntityCode
public function getToken($client_id = NULL, $client_secret = NULL, $code = NULL, $save = FALSE) : string;