| Current Path : /home/h/a/p/happyrenas/old/happy-r.fr/transfere_pro/mangopay/MangoPay/tools/ |
Linux webd005.cluster105.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 |
| Current File : /home/h/a/p/happyrenas/old/happy-r.fr/transfere_pro/mangopay/MangoPay/tools/apiClients.inc |
<?php
namespace MangoPay;
/**
* Class to management MangoPay API for users
*/
class ApiClients extends ApiBase {
/**
* Get client data for Basic Access Authentication
* @param string $clientId Client identifier
* @param string $clientName Beautiful name for presentation
* @param string $clientEmail Client's email
* @return \MangoPay\Client Client object
*/
public function Create($clientId, $clientName, $clientEmail) {
$urlMethod = $this->GetRequestUrl('authentication_base');
$requestType = $this->GetRequestType('authentication_base');
$requestData = array(
'ClientId' => $clientId,
'Name' => $clientName,
'Email' => $clientEmail,
);
$rest = new RestTool(false, $this->_root);
$response = $rest->Request($urlMethod, $requestType, $requestData);
return $this->CastResponseToEntity($response, '\MangoPay\Client');
}
}