vams/apiclient

VAMS Api client

Installs: 761

Dependents: 0

Suggesters: 0

Security: 0

pkg:composer/vams/apiclient

2.3.1 2022-01-25 15:56 UTC

This package is auto-updated.

Last update: 2025-09-20 15:08:28 UTC


README

Instanciar el cliente:

$api = new \VAMS\ApiClient\ApiClient([
    'endpoint' => 'https://vams.endpoint/api/',
    'api_key' => 'apikey',
    'sign_secret' => 'sign_secret',
    'crypt_secret' => 'crypt_secret', // Opcional
]);

Ejemplo listado de activos:

try {
    $result = $api->get('assets/list_assets', [
        'category_slug' => 'deporte',
    ]);

    // Code
} catch (\VAMS\ApiClient\ApiException $ex) {
    // Error handling
}