Skip to content

general

Francisco Dias edited this page Dec 18, 2024 · 3 revisions

General

Functions

This module offers a collection of functions designed to address specific tasks and provide utilities for various purposes. Explore the available functions to make the most of the functionalities provided by this module.



Back To Top

modio_general_get_resource_owner

mod.io Endpoint: Get Resource Owner


This function gets the user that is the original submitter of a resource. A successful request will return a single User struct.

Note

Mods and games can be managed by teams of users, for the most accurate information you should use the Teams endpoints.


Syntax:

modio_general_get_resource_owner(_resource_type, _resource_id, _callback_success, _callback_failed)
Argument Type Description
_resource_type String Type of resource you are checking the ownership of. Must be one of the following values: "games", "mods" and "files"
_resource_id Real Unique id of the resource you are checking the ownership of.
_callback_success Function or Method The function to trigger when the request is successful.
_callback_failed Function or Method The function to trigger when the request failed.



Returns:

User



Clone this wiki locally