-
Notifications
You must be signed in to change notification settings - Fork 0
eh_GJUsersFetchRequest
Inherits: eh_GJBaseRequest > HTTPRequest > Node > Object
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 gj_request_failed will be emitted with an error dict as its parameter.
return type | method signature |
---|---|
int | fetch_user(String p_username, bool is_user_id) |
int | fetch_users(Array p_array_of_ids) |
- gj_users_fetch_data_received(array_of_eh_gj_users_fetch_data)
Multi User Request Response. Sends an array of eh_GJUsersFetchData as parameter
- gj_user_fetch_data_received(eh_gj_users_fetch_data)
Single User Request Response. Send an eh_GJUsersFetchData Resource as parameter
- URL_ENDPOINT = /users/ --- Address for this endpoint.
Request for a single user. Returns request error code. The user data will be sent either by the signal [gj_user_fetch_data_received] or [eh_GJBaseRequest.gj_request_failed] will be emitted.
Request for multiple users. Returns request error code. The user data will be sent either by the signal [gj_users_fetch_data_received] or [eh_GJBaseRequest.gj_request_failed] will be emitted.
Quick Reference
eh_GJBaseRequest
-
Resources
-
Credentials
eh_GJGameCredentials
eh_GJUserCredentials
-
Credentials
-
User
eh_GJUsersAuth
eh_GJUsersFetch-
Requests
eh_GJUsersAuthRequest
eh_GJUsersFetchRequest -
ResponseData
eh_GJUsersAuthData
eh_GJUsersFetchData
-
Requests