Skip to content
André Matthies edited this page Feb 6, 2025 · 1 revision

Client

  • Full name: \Seven\Api\Client

Constants

Constant Visibility Type Value
BASE_URI public 'https://gateway.seven.io/api'

Properties

headers

protected string[] $headers

apiKey

protected string $apiKey

sentWith

protected string $sentWith

signingSecret

protected ?string $signingSecret

Methods

__construct

public __construct(string $apiKey, string $sentWith = 'php-api', ?string $signingSecret = null): mixed

Parameters:

Parameter Type Description
$apiKey string
$sentWith string
$signingSecret ?string

Throws:


getApiKey

public getApiKey(): string

getSentWith

public getSentWith(): string

setApiKey

public setApiKey(string $apiKey): self

Parameters:

Parameter Type Description
$apiKey string

delete

public delete(string $path, array $options = []): mixed

Parameters:

Parameter Type Description
$path string
$options array

Throws:


request

protected request(string $path, \Seven\Api\Library\HttpMethod $method, array $payload = []): mixed

Parameters:

Parameter Type Description
$path string
$method \Seven\Api\Library\HttpMethod
$payload array

Throws:


patch

public patch(string $path, array $payload = []): mixed

Parameters:

Parameter Type Description
$path string
$payload array

Throws:


post

public post(string $path, array $payload = []): mixed

Parameters:

Parameter Type Description
$path string
$payload array

Throws:


get

public get(string $path, array $params = []): mixed

Parameters:

Parameter Type Description
$path string
$params array

Throws:



Automatically generated on 2025-02-06

Clone this wiki locally