1 | <?php |
||
7 | class User extends Client |
||
8 | { |
||
9 | /** |
||
10 | * Register a new Authy user. |
||
11 | * |
||
12 | * @param string $email |
||
13 | * @param string $cellphone |
||
14 | * @param string $countryCode |
||
15 | * @param bool $sendInstallLink |
||
16 | * |
||
17 | * @return \Rinvex\Authy\Response |
||
18 | */ |
||
19 | public function register($email, $cellphone, $countryCode, $sendInstallLink = true): Response |
||
37 | |||
38 | /** |
||
39 | * Register the given user activity. |
||
40 | * |
||
41 | * @param int $authyId |
||
42 | * @param string $type |
||
43 | * @param string $data |
||
44 | * @param string|null $ip |
||
45 | * |
||
46 | * @return \Rinvex\Authy\Response |
||
47 | */ |
||
48 | public function registerActivity($authyId, $type, $data, $ip = null): Response |
||
57 | |||
58 | /** |
||
59 | * Get status of the given user. |
||
60 | * |
||
61 | * @param int $authyId |
||
62 | * @param string|null $ip |
||
63 | * |
||
64 | * @return \Rinvex\Authy\Response |
||
65 | */ |
||
66 | public function status($authyId, $ip = null): Response |
||
75 | |||
76 | /** |
||
77 | * Delete the given Authy user. |
||
78 | * |
||
79 | * @param int $authyId |
||
80 | * @param string|null $ip |
||
81 | * |
||
82 | * @return \Rinvex\Authy\Response |
||
83 | */ |
||
84 | public function delete($authyId, $ip = null): Response |
||
93 | } |
||
94 |