Extends: eh_GJBaseRequest < HTTPRequest
This class decribes the Fetch api endpoint It’s response is modeled in the custom resource of [eh_GJUsersFetchData]
It is possible to request data for a single user with fetch_user or for multiple users with fetch_users. These methods return the request Error Code, so that you can check if for connection errors.
Each has it’s own signal with the response data, so be sure to listen for the corresponding signal.
If the request fails, the signal [eh_GJBaseRequest.gj_request_failed] will be emitted with an error dict as its parameter.
func fetch_user(p_username: String, is_user_id: bool = false) -> int
Request for a single user. Returns request error code. The user data will be sent either by the signal gj_user_fetch_data_received will be emitted
func fetch_users(p_array_of_ids: Array) -> int
Request for multiple users Returns request error code. The user data will be sent either by the signal gj_users_fetch_data_received will be emitted