-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMagentoLegacyKeys.php
More file actions
33 lines (27 loc) · 984 Bytes
/
MagentoLegacyKeys.php
File metadata and controls
33 lines (27 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* (c) Packagist Conductors GmbH <contact@packagist.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PrivatePackagist\ApiClient\Api\Customers;
use PrivatePackagist\ApiClient\Api\AbstractApi;
class MagentoLegacyKeys extends AbstractApi
{
public function all($customerIdOrUrlName)
{
return $this->get(sprintf('/api/customers/%s/magento-legacy-keys/', $customerIdOrUrlName));
}
public function create($customerIdOrUrlName, $publicKey, $privateKey)
{
return $this->post(sprintf('/api/customers/%s/magento-legacy-keys/', $customerIdOrUrlName), [
'publicKey' => $publicKey,
'privateKey' => $privateKey,
]);
}
public function remove($customerIdOrUrlName, $publicKey)
{
return $this->delete(sprintf('/api/customers/%s/magento-legacy-keys/%s/', $customerIdOrUrlName, $publicKey));
}
}