1 | <?php |
||
7 | class ApiKey extends BaseClass |
||
8 | { |
||
9 | /** The URI of the action */ |
||
10 | const URI = 'https://api.signere.no/api/ApiToken'; |
||
11 | |||
12 | /** |
||
13 | * Renews the primary API key. |
||
14 | * |
||
15 | * @param string $key |
||
16 | * @return object |
||
17 | */ |
||
18 | 1 | public function renewPrimary(string $key) |
|
35 | |||
36 | /** |
||
37 | * Renews the secondary API key. |
||
38 | * |
||
39 | * @param string $key |
||
40 | * @return object |
||
41 | */ |
||
42 | 1 | public function renewSecondary(string $key) |
|
59 | |||
60 | /** |
||
61 | * Generate a new primary key and return it. |
||
62 | * |
||
63 | * @param string $providerId |
||
64 | * @param string $otpCode |
||
65 | * @return object |
||
66 | */ |
||
67 | 1 | public function createPrimary(string $providerId, string $otpCode) |
|
85 | |||
86 | /** |
||
87 | * Sends an OTP code in an SMS to |
||
88 | * the given mobile number. |
||
89 | * |
||
90 | * @param array $body |
||
91 | * @return object |
||
92 | */ |
||
93 | 1 | public function recoverPrimary(array $body) |
|
118 | } |
||
119 |