examples/account-creation.php 1 location
|
@@ 13-20 (lines=8) @@
|
10 |
|
|
11 |
|
use Mediapart\LaPresseLibre\Operation\AccountCreation; |
12 |
|
|
13 |
|
$handle(AccountCreation::class, function($data) use ($public_key) { |
14 |
|
return [ |
15 |
|
'IsValid' => true, |
16 |
|
'PartenaireID' => $public_key, |
17 |
|
'CodeUtilisateur' => $data['CodeUtilisateur'], |
18 |
|
'CodeEtat' => AccountCreation::SUCCESS, |
19 |
|
]; |
20 |
|
}); |
21 |
|
|
examples/account-update.php 1 location
|
@@ 13-20 (lines=8) @@
|
10 |
|
|
11 |
|
use Mediapart\LaPresseLibre\Operation\AccountUpdate; |
12 |
|
|
13 |
|
$handle(AccountUpdate::class, function($data) use ($public_key) { |
14 |
|
return [ |
15 |
|
'IsValid' => true, |
16 |
|
'PartenaireID' => $public_key, |
17 |
|
'CodeUtilisateur' => $data['CodeUtilisateur'], |
18 |
|
'CodeEtat' => AccountUpdate::SUCCESS, |
19 |
|
]; |
20 |
|
}); |
21 |
|
|