Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 523 Bytes

USAGE.md

File metadata and controls

29 lines (21 loc) · 523 Bytes
declare(strict_types=1);

require 'vendor/autoload.php';

use formance\stack;
use formance\stack\Models\Shared;

$sdk = stack\SDK::builder()
    ->setSecurity(
        new Shared\Security(
            clientID: '<YOUR_CLIENT_ID_HERE>',
            clientSecret: '<YOUR_CLIENT_SECRET_HERE>',
        )
    )
    ->build();



$response = $sdk->getVersions(

);

if ($response->getVersionsResponse !== null) {
    // handle response
}