-
Notifications
You must be signed in to change notification settings - Fork 3
Client
André Matthies edited this page Feb 6, 2025
·
1 revision
- Full name:
\Seven\Api\Client
Constant | Visibility | Type | Value |
---|---|---|---|
BASE_URI |
public | 'https://gateway.seven.io/api' |
protected string[] $headers
protected string $apiKey
protected string $sentWith
protected ?string $signingSecret
public __construct(string $apiKey, string $sentWith = 'php-api', ?string $signingSecret = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$apiKey |
string | |
$sentWith |
string | |
$signingSecret |
?string |
Throws:
public getApiKey(): string
public getSentWith(): string
public setApiKey(string $apiKey): self
Parameters:
Parameter | Type | Description |
---|---|---|
$apiKey |
string |
public delete(string $path, array $options = []): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$path |
string | |
$options |
array |
Throws:
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:
public patch(string $path, array $payload = []): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$path |
string | |
$payload |
array |
Throws:
public post(string $path, array $payload = []): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$path |
string | |
$payload |
array |
Throws:
public get(string $path, array $params = []): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$path |
string | |
$params |
array |
Throws:
Automatically generated on 2025-02-06