@@ 63-70 (lines=8) @@ | ||
60 | * @param string Id of the user |
|
61 | * @return object Result of the request |
|
62 | */ |
|
63 | public function Token($username, $password) |
|
64 | { |
|
65 | $args = [ |
|
66 | 'username' => $username, |
|
67 | 'password' => $password |
|
68 | ]; |
|
69 | return $this->request(self::HTTP_POST, "/getToken", $args); |
|
70 | } |
|
71 | ||
72 | /** |
|
73 | * Delete a user object by user id |
|
@@ 77-84 (lines=8) @@ | ||
74 | * @param string Id of the user |
|
75 | * @return object Result of the request |
|
76 | */ |
|
77 | public function ApiKey($username, $password) |
|
78 | { |
|
79 | $args = [ |
|
80 | 'username' => $username, |
|
81 | 'password' => $password |
|
82 | ]; |
|
83 | return $this->request(self::HTTP_POST, "/getApiKey", $args); |
|
84 | } |
|
85 | } |
|
86 |