Skip to content

Ayctor/cadeauxprives

Repository files navigation

Very short description of the package

Latest Version on Packagist Build Status Quality Score Total Downloads

This is where your description should go. Try and limit it to a paragraph or two.

Installation

You can install the package via composer:

composer require ayctor/cadeauxprives

Usage

$cp = new \Ayctor\Cadeauxprives\Cadeauxprives( $site_url, $site_id, $api_key );

$infos = $cp->updateUser([
    'email' => '[email protected]',
    'code_client' => '[email protected]',
    'nom' => 'Guillon',
    'prenom' => 'Erwan',
    'adresse' => [
        'rue' => '23, rue Sébastien Mercier',
        'cp' => '75015',
        'ville' => 'Paris',
        'code_iso' => 'FR',
    ],
]);

All fields are required by the API.

$infos contains an object with the token to login and the full URL to login the user.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.