Customer Operations

The SDK supprots querying for and mutating the customers available in your Lagoon instance.

Queries

all()

Find all customers.

Example

$client = new LagoonClient($endpoint, $token);
$client->customer()->all()->execute();

withName()

Find a customer with a name.

Example

$client = new LagoonClient($endpoint, $token);
$client->customer()->withName('my-customer')->execute();

Mutations

add()

Add a customer to Lagoon.

Parameters <array>

$customer = [
  'name' => 'Customer',
  'privateKey' => 'key',
];

Example

$client = new LagoonClient($endpoint, $token);
$client->customer()->add($customer)->execute();