- createClient - Create client
- createSecret - Add a secret to a client
- deleteClient - Delete client
- deleteSecret - Delete a secret from a client
- getOIDCWellKnowns - Retrieve OpenID connect well-knowns.
- getServerInfo - Get server info
- listClients - List clients
- listUsers - List users
- readClient - Read client
- readUser - Read user
- updateClient - Update client
Create client
declare(strict_types=1);
require 'vendor/autoload.php';
use formance\stack;
use formance\stack\Models\Shared;
$security = new Shared\Security(
authorization: "<YOUR_AUTHORIZATION_HERE>",
);
$sdk = stack\SDK::builder()->setSecurity($security)->build();
try {
$request = new Shared\CreateClientRequest(
name: '<value>',
);
$response = $sdk->authV1->createClient($request);
if ($response->createClientResponse !== null) {
// handle response
}
} catch (Throwable $e) {
// handle exception
}
Parameter | Type | Required | Description |
---|---|---|---|
$request |
Shared\CreateClientRequest | ✔️ | The request object to use for the request. |
?Operations\CreateClientResponse
Error Object | Status Code | Content Type |
---|---|---|
formance\stack\Models\Errors.SDKException | 4xx-5xx | / |
Add a secret to a client
declare(strict_types=1);
require 'vendor/autoload.php';
use formance\stack;
use formance\stack\Models\Operations;
use formance\stack\Models\Shared;
$security = new Shared\Security(
authorization: "<YOUR_AUTHORIZATION_HERE>",
);
$sdk = stack\SDK::builder()->setSecurity($security)->build();
try {
$request = new Operations\CreateSecretRequest(
clientId: '<value>',
);
$response = $sdk->authV1->createSecret($request);
if ($response->createSecretResponse !== null) {
// handle response
}
} catch (Throwable $e) {
// handle exception
}
Parameter | Type | Required | Description |
---|---|---|---|
$request |
Operations\CreateSecretRequest | ✔️ | The request object to use for the request. |
?Operations\CreateSecretResponse
Error Object | Status Code | Content Type |
---|---|---|
formance\stack\Models\Errors.SDKException | 4xx-5xx | / |
Delete client
declare(strict_types=1);
require 'vendor/autoload.php';
use formance\stack;
use formance\stack\Models\Operations;
use formance\stack\Models\Shared;
$security = new Shared\Security(
authorization: "<YOUR_AUTHORIZATION_HERE>",
);
$sdk = stack\SDK::builder()->setSecurity($security)->build();
try {
$request = new Operations\DeleteClientRequest(
clientId: '<value>',
);
$response = $sdk->authV1->deleteClient($request);
if ($response->statusCode === 200) {
// handle response
}
} catch (Throwable $e) {
// handle exception
}
Parameter | Type | Required | Description |
---|---|---|---|
$request |
Operations\DeleteClientRequest | ✔️ | The request object to use for the request. |
?Operations\DeleteClientResponse
Error Object | Status Code | Content Type |
---|---|---|
formance\stack\Models\Errors.SDKException | 4xx-5xx | / |
Delete a secret from a client
declare(strict_types=1);
require 'vendor/autoload.php';
use formance\stack;
use formance\stack\Models\Operations;
use formance\stack\Models\Shared;
$security = new Shared\Security(
authorization: "<YOUR_AUTHORIZATION_HERE>",
);
$sdk = stack\SDK::builder()->setSecurity($security)->build();
try {
$request = new Operations\DeleteSecretRequest(
clientId: '<value>',
secretId: '<value>',
);
$response = $sdk->authV1->deleteSecret($request);
if ($response->statusCode === 200) {
// handle response
}
} catch (Throwable $e) {
// handle exception
}
Parameter | Type | Required | Description |
---|---|---|---|
$request |
Operations\DeleteSecretRequest | ✔️ | The request object to use for the request. |
?Operations\DeleteSecretResponse
Error Object | Status Code | Content Type |
---|---|---|
formance\stack\Models\Errors.SDKException | 4xx-5xx | / |
Retrieve OpenID connect well-knowns.
declare(strict_types=1);
require 'vendor/autoload.php';
use formance\stack;
use formance\stack\Models\Shared;
$security = new Shared\Security(
authorization: "<YOUR_AUTHORIZATION_HERE>",
);
$sdk = stack\SDK::builder()->setSecurity($security)->build();
try {
$response = $sdk->authV1->getOIDCWellKnowns();
if ($response->statusCode === 200) {
// handle response
}
} catch (Throwable $e) {
// handle exception
}
?Operations\GetOIDCWellKnownsResponse
Error Object | Status Code | Content Type |
---|---|---|
formance\stack\Models\Errors.SDKException | 4xx-5xx | / |
Get server info
declare(strict_types=1);
require 'vendor/autoload.php';
use formance\stack;
use formance\stack\Models\Shared;
$security = new Shared\Security(
authorization: "<YOUR_AUTHORIZATION_HERE>",
);
$sdk = stack\SDK::builder()->setSecurity($security)->build();
try {
$response = $sdk->authV1->getServerInfo();
if ($response->serverInfo !== null) {
// handle response
}
} catch (Throwable $e) {
// handle exception
}
?Operations\GetServerInfoResponse
Error Object | Status Code | Content Type |
---|---|---|
formance\stack\Models\Errors.SDKException | 4xx-5xx | / |
List clients
declare(strict_types=1);
require 'vendor/autoload.php';
use formance\stack;
use formance\stack\Models\Shared;
$security = new Shared\Security(
authorization: "<YOUR_AUTHORIZATION_HERE>",
);
$sdk = stack\SDK::builder()->setSecurity($security)->build();
try {
$response = $sdk->authV1->listClients();
if ($response->listClientsResponse !== null) {
// handle response
}
} catch (Throwable $e) {
// handle exception
}
?Operations\ListClientsResponse
Error Object | Status Code | Content Type |
---|---|---|
formance\stack\Models\Errors.SDKException | 4xx-5xx | / |
List users
declare(strict_types=1);
require 'vendor/autoload.php';
use formance\stack;
use formance\stack\Models\Shared;
$security = new Shared\Security(
authorization: "<YOUR_AUTHORIZATION_HERE>",
);
$sdk = stack\SDK::builder()->setSecurity($security)->build();
try {
$response = $sdk->authV1->listUsers();
if ($response->listUsersResponse !== null) {
// handle response
}
} catch (Throwable $e) {
// handle exception
}
Error Object | Status Code | Content Type |
---|---|---|
formance\stack\Models\Errors.SDKException | 4xx-5xx | / |
Read client
declare(strict_types=1);
require 'vendor/autoload.php';
use formance\stack;
use formance\stack\Models\Operations;
use formance\stack\Models\Shared;
$security = new Shared\Security(
authorization: "<YOUR_AUTHORIZATION_HERE>",
);
$sdk = stack\SDK::builder()->setSecurity($security)->build();
try {
$request = new Operations\ReadClientRequest(
clientId: '<value>',
);
$response = $sdk->authV1->readClient($request);
if ($response->readClientResponse !== null) {
// handle response
}
} catch (Throwable $e) {
// handle exception
}
Parameter | Type | Required | Description |
---|---|---|---|
$request |
Operations\ReadClientRequest | ✔️ | The request object to use for the request. |
?Operations\ReadClientResponse
Error Object | Status Code | Content Type |
---|---|---|
formance\stack\Models\Errors.SDKException | 4xx-5xx | / |
Read user
declare(strict_types=1);
require 'vendor/autoload.php';
use formance\stack;
use formance\stack\Models\Operations;
use formance\stack\Models\Shared;
$security = new Shared\Security(
authorization: "<YOUR_AUTHORIZATION_HERE>",
);
$sdk = stack\SDK::builder()->setSecurity($security)->build();
try {
$request = new Operations\ReadUserRequest(
userId: '<value>',
);
$response = $sdk->authV1->readUser($request);
if ($response->readUserResponse !== null) {
// handle response
}
} catch (Throwable $e) {
// handle exception
}
Parameter | Type | Required | Description |
---|---|---|---|
$request |
Operations\ReadUserRequest | ✔️ | The request object to use for the request. |
Error Object | Status Code | Content Type |
---|---|---|
formance\stack\Models\Errors.SDKException | 4xx-5xx | / |
Update client
declare(strict_types=1);
require 'vendor/autoload.php';
use formance\stack;
use formance\stack\Models\Operations;
use formance\stack\Models\Shared;
$security = new Shared\Security(
authorization: "<YOUR_AUTHORIZATION_HERE>",
);
$sdk = stack\SDK::builder()->setSecurity($security)->build();
try {
$request = new Operations\UpdateClientRequest(
clientId: '<value>',
);
$response = $sdk->authV1->updateClient($request);
if ($response->updateClientResponse !== null) {
// handle response
}
} catch (Throwable $e) {
// handle exception
}
Parameter | Type | Required | Description |
---|---|---|---|
$request |
Operations\UpdateClientRequest | ✔️ | The request object to use for the request. |
?Operations\UpdateClientResponse
Error Object | Status Code | Content Type |
---|---|---|
formance\stack\Models\Errors.SDKException | 4xx-5xx | / |