@@ 31-38 (lines=8) @@ | ||
28 | * |
|
29 | * @return $this |
|
30 | */ |
|
31 | public function create(string $subaccountId): self |
|
32 | { |
|
33 | // Set HTTP params |
|
34 | $this->type = 'post'; |
|
35 | $this->endpoint = '/subaccounts/' . $subaccountId . '?' . $this->getQuery(); |
|
36 | ||
37 | return $this; |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * Delete the API Key for this application from a subaccount |
|
@@ 50-57 (lines=8) @@ | ||
47 | * |
|
48 | * @return $this |
|
49 | */ |
|
50 | public function delete(string $subaccountId, string $apiKey): self |
|
51 | { |
|
52 | // Set HTTP params |
|
53 | $this->type = 'delete'; |
|
54 | $this->endpoint = '/subaccounts/' . $subaccountId . '/apikeys/' . $apiKey . '?' . $this->getQuery(); |
|
55 | ||
56 | return $this; |
|
57 | } |
|
58 | ||
59 | /** |
|
60 | * List all subaccounts in the portal |