http = $http; } /** * Set the account display name. Requires an OPERATOR-level key. * * @return array */ public function setProfileName(string $sessionId, string $name): array { return $this->http->request('PUT', "/api/sessions/{$this->http->encodeSegment($sessionId)}/profile/name", [], ['name' => $name]); } /** * Set the account about/status text; an empty string clears it. Requires an * OPERATOR-level key. * * @return array */ public function setProfileStatus(string $sessionId, string $status): array { return $this->http->request('PUT', "/api/sessions/{$this->http->encodeSegment($sessionId)}/profile/status", [], ['status' => $status]); } /** * Set the account profile picture. Body is either {url} or * {base64, mimetype}. Requires an OPERATOR-level key. * * @param array $body * @return array */ public function setProfilePicture(string $sessionId, array $body): array { return $this->http->request('PUT', "/api/sessions/{$this->http->encodeSegment($sessionId)}/profile/picture", [], $body); } }