-
Notifications
You must be signed in to change notification settings - Fork 0
ratings
YYBartT edited this page Jun 16, 2023
·
2 revisions
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.
mod.io Endpoint: Add Mod Rating
This function submits a positive or negative rating for a mod. Each user can supply only one rating for a mod, subsequent ratings will override the old value. A successful request will return a Message struct.
ℹ️ NOTE
You can order mods by their rating, and view their rating in the Mod struct.
Syntax:
modio_ratings(_mod_id, _rating, _callback_success, _callback_failed, _game_id)
Argument | Type | Description |
---|---|---|
_mod_id | Real | Unique id of the mod. |
_rating | Real | The authenticated user's mod rating: 1 = Positive rating (thumbs up) -1 = Negative rating (thumbs down) 0 = No rating (removes any previous submitted rating) |
_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. |
_game_id | Real | OPTIONAL The ID of the game, defaults to the value set in the Game ID extension option if not provided |
Returns:
GameMaker 2023