public function PardotClientInterface::authenticate in Pardot Integration 2.x
Authenticate into Pardot API and return the API Key.
API keys are saved and reused for 50 minutes.
Parameters
array $refresh: if we are getting a new token
Return value
null|string API key, if found. NULL on failure.
1 method overrides PardotClientInterface::authenticate()
- PardotClient::authenticate in src/
Service/ PardotClient.php - Authenticate into Pardot API and return the API Key.
File
- src/
Service/ PardotClientInterface.php, line 31
Class
- PardotClientInterface
- Interface for the Pardot API service.
Namespace
Drupal\pardot\ServiceCode
public function authenticate($refresh);