Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.
turupawn edited this page Feb 6, 2019 · 11 revisions

getAllMods

getAllMods(filter_type:Int, limit:Int, offset:Int, callback:(mods:Array<Dynamic>, response:Dynamic)):Int

Browse mods on mod.io.

SDK documentation: modioGetAllMods

API documentation: Get All Mods

Function parameters

Name Type Description
filter_type Int Filter type constant.
limit Int Number of results limit.
offset Int Number of results skipped.
callback (mods:Array<Dynamic>, response:Dynamic) Function called once the process finished.

Callback parameters

Name Type Description
mods Array<Dynamic> Mod object array containing the returned mods.
response Dynamic Response object

addMod

addMod(mod_creator:ModCreator, callback:(response:Dynamic)):Int

Adds a new Mod to mod.io. Use the ModCreator to set the mods fields before uploading.

SDK documentation: modioAddMod

API documentation: Add Mod

Function parameters

Name Type Description
mod_creator ModCreator ModCreator object.
callback (response:Dynamic) Function called once the process finished.

Callback parameters

Name Type Description
response Int Response object

editMod

editMod(mod_id:Int, mod_editor:ModEditor, callback:(response:Dynamic)):Int

Updates the details of a corresponding mod. Use the ModEditor to set the mods fields before editing.

SDK documentation: modioEditMod

API documentation: Edit Mod

Function parameters

Name Type Description
mod_editor ModEditor ModEditor object.
callback (response:Dynamic) Function called once the process finished.

Callback parameters

Name Type Description
response Dynamic Response object
Clone this wiki locally