| @@ 67-76 (lines=10) @@ | ||
| 64 | * |
|
| 65 | * @return bool |
|
| 66 | */ |
|
| 67 | public function create($email, $nickname, $password) |
|
| 68 | { |
|
| 69 | $params = [ |
|
| 70 | 'kf_account' => $email, |
|
| 71 | 'nickname' => $nickname, |
|
| 72 | 'password' => $password, |
|
| 73 | ]; |
|
| 74 | ||
| 75 | return $this->parseJSON('json', [self::API_CREATE, $params]); |
|
| 76 | } |
|
| 77 | ||
| 78 | /** |
|
| 79 | * Update a staff. |
|
| @@ 87-96 (lines=10) @@ | ||
| 84 | * |
|
| 85 | * @return bool |
|
| 86 | */ |
|
| 87 | public function update($email, $nickname, $password) |
|
| 88 | { |
|
| 89 | $params = [ |
|
| 90 | 'kf_account' => $email, |
|
| 91 | 'nickname' => $nickname, |
|
| 92 | 'password' => $password, |
|
| 93 | ]; |
|
| 94 | ||
| 95 | return $this->parseJSON('json', [self::API_UPDATE, $params]); |
|
| 96 | } |
|
| 97 | ||
| 98 | /** |
|
| 99 | * Delete a staff. |
|