commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ResourceByProjectKeyApiClients.php
1<?php
2
3declare(strict_types=1);
10
13use GuzzleHttp\ClientInterface;
14use Psr\Http\Message\UploadedFileInterface;
15
20{
24 public function __construct(array $args = [], ClientInterface $client = null)
25 {
26 parent::__construct('/{projectKey}/api-clients', $args, $client);
27 }
28
31 public function withId(string $ID = null): ResourceByProjectKeyApiClientsByID
32 {
33 $args = $this->getArgs();
34 if (!is_null($ID)) {
35 $args['ID'] = $ID;
36 }
37
38 return new ResourceByProjectKeyApiClientsByID($args, $this->getClient());
39 }
40
45 public function get($body = null, array $headers = []): ByProjectKeyApiClientsGet
46 {
47 $args = $this->getArgs();
48
49 return new ByProjectKeyApiClientsGet($args['projectKey'], $body, $headers, $this->getClient());
50 }
55 public function head($body = null, array $headers = []): ByProjectKeyApiClientsHead
56 {
57 $args = $this->getArgs();
58
59 return new ByProjectKeyApiClientsHead($args['projectKey'], $body, $headers, $this->getClient());
60 }
65 public function post(?ApiClientDraft $body = null, array $headers = []): ByProjectKeyApiClientsPost
66 {
67 $args = $this->getArgs();
68
69 return new ByProjectKeyApiClientsPost($args['projectKey'], $body, $headers, $this->getClient());
70 }
71}