| @@ 71-79 (lines=9) @@ | ||
| 68 | * |
|
| 69 | * @return \EasyWeChat\Support\Collection |
|
| 70 | */ |
|
| 71 | public function create($account, $nickname) |
|
| 72 | { |
|
| 73 | $params = [ |
|
| 74 | 'kf_account' => $account, |
|
| 75 | 'nickname' => $nickname, |
|
| 76 | ]; |
|
| 77 | ||
| 78 | return $this->parseJSON('json', [self::API_CREATE, $params]); |
|
| 79 | } |
|
| 80 | ||
| 81 | /** |
|
| 82 | * Update a staff. |
|
| @@ 89-97 (lines=9) @@ | ||
| 86 | * |
|
| 87 | * @return \EasyWeChat\Support\Collection |
|
| 88 | */ |
|
| 89 | public function update($account, $nickname) |
|
| 90 | { |
|
| 91 | $params = [ |
|
| 92 | 'kf_account' => $account, |
|
| 93 | 'nickname' => $nickname, |
|
| 94 | ]; |
|
| 95 | ||
| 96 | return $this->parseJSON('json', [self::API_UPDATE, $params]); |
|
| 97 | } |
|
| 98 | ||
| 99 | /** |
|
| 100 | * Delete a staff. |
|