Skip to content

agreements

YYBartT edited this page Jun 16, 2023 · 2 revisions

Agreements

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_agreements_get

mod.io Endpoint: Get Current Agreement

This function gets the current agreement version by type. A successful request will return a single AgreementVersion struct.


Syntax:

modio_agreements_get(_agreement_type_id, _callback_success, _callback_failed)
Argument Type Description
_agreement_type_id Real Valid agreement types are:

1 = Terms of Use - https://mod.io/terms
2 = Privacy Policy - https://mod.io/privacy
3 = Game Terms - https://mod.io/gameterms
4 = API Access Terms - https://mod.io/apiterms
5 = Monetisation Terms - https://mod.io/monetisationterms
6 = Acceptable Use Policy - https://mod.io/aup
_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:

AgreementVersion




Back To Top

modio_agreements_version

mod.io Endpoint: Get Agreement Version

This function gets the specified agreement version. A successful request will return a AgreementVersion struct.


Syntax:

modio_agreements_version(_version, _callback_success, _callback_failed)
Argument Type Description
_version Real The version to get
_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:

AgreementVersion



Clone this wiki locally