Skip to content

rc_api_init_fetch_all_user_progress_request

Jamiras edited this page Jun 17, 2025 · 1 revision

Constructs an rc_api_request_t for fetching all user progress for a given console.

Syntax

int rc_api_init_fetch_all_user_progress_request(
    rc_api_request_t* request,
    const rc_api_fetch_all_user_progress_request_t* api_params
);

int rc_api_init_fetch_all_user_progress_request_hosted(
    rc_api_request_t* request,
    const rc_api_fetch_all_user_progress_request_t* api_params,
    const rc_api_host_t* host
);

Parameters

request

The rc_api_request_t to construct.

api_params

Pointer to a rc_api_fetch_all_user_progress_request_t object containing the parameters for the followed users request.

host (Minimum version: 12.0.0)

Pointer to a rc_api_host_t object containing custom host information.


struct rc_api_fetch_all_user_progress_request_t
{
  const char* username;
  const char* api_token;
  uint32_t console_id;
};

username

The name of the user making the request.

api_token

The API token generated by the login request for the user.

console_id

The unique identifier of the console to query.

Return value

If the function succeeds, the return value is RC_OK. Otherwise, the error code can be converted to a string using rc_error_str.

  • RC_INVALID_STATE - one or more required parameters was not provided.
  • RC_OUT_OF_MEMORY - enough memory could not be allocated to complete the operation.

Remarks

The rc_api_request_t must be destroyed by rc_api_destroy_request after the HTTP request has been made.

Minimum version: 12.0.0

See also

rc_api_destroy_request

rc_api_process_fetch_all_user_progress_server_response

rc_api_destroy_fetch_all_user_progress_response

rcheevos
rc_client

Integration guide

client

user

game

processing

rc_client_raintegration

Integration guide

rc_runtime
rhash
rapi

common

user

runtime

info

Clone this wiki locally