You are here

public function ClientFactory::getWithCredentials in Media: Acquia DAM 8

Gets a base DAM Client object using the specified credentials.

Parameters

string $username: The username to authenticate with.

string $password: The password to authenticate with.

string $client_id: The client ID to authenticate with.

string $secret: The secret to authenticate with.

Return value

\Drupal\media_acquiadam\Client The Acquia DAM client.

1 call to ClientFactory::getWithCredentials()
ClientFactory::get in src/ClientFactory.php
Creates a new DAM client object.

File

src/ClientFactory.php, line 138

Class

ClientFactory
Class ClientFactory.

Namespace

Drupal\media_acquiadam

Code

public function getWithCredentials($username, $password, $client_id, $secret) {
  return new Client($this->guzzleClient, $username, $password, $client_id, $secret);
}