PHP code example of ayctor / cadeauxprives
1. Go to this page and download the library: Download ayctor/cadeauxprives library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ayctor / cadeauxprives example snippets
php
$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',
],
]);