Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

ModioResponse

Ahmed Castro edited this page Nov 8, 2017 · 15 revisions
struct ModioResponse
{
  int code;
  ModioError* error;
  int cursor_id;
  int prev_id;
  int next_id;
  int result_count;
};

The ModioResponse object is a struct containing the response code, errors and cursor data form mod.io. This object is returned on every callback and you can use it to check if your request was successful and to browse objects properly using the cursor filters.

Name Type Description
code int Http code returned by mod.io.
error ModioError* ModioError object containing the errors description in case
cursor_id int Cursor id supplied via the Filtering methods. Defaults to -1 in case it was not supplied. See the API cursor documentation
prev_id int Previous cursor id supplied via the Filtering methods. Defaults to -1 in case it was not supplied. See the API prev cursor documentation
next_id int Next cursor id to be supplied based on the current cursor supplied via the Filtering methods. Defaults to -1 in case a cursor was not was not supplied. See the API cursor documentation
result_count int The number of results returned.

See also: API Errors, API Response Codes, Response formats, API cursors and objects

Contents

Clone this wiki locally