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

ModIO.APIClient.GetModfile

Jackson Wood edited this page Mar 6, 2019 · 12 revisions

APIClient.GetModfile

public static void GetModfile(int modId, int modfileId, Action<Modfile> successCallback, Action<WebRequestError> errorCallback);

Parameters

Name Description
modId Id of the mod for the request modfile
modfileId Id of the requested modfile
successCallback Action to execute if the request succeeds
errorCallback Action to execute if the request returns an error

Description

Fetch the a modfile from the mod.io servers.

Successful request will return a single Modfile matching the given mod and modfile ids.

NOTE: If the game requires mod downloads to be initiated via the API, the download url contained in the download locator will expire at the time indicated by the value of Modfile.downloadLocator.dateExpires and is thus unwise to cache.

See also: docs.mod.io page

Clone this wiki locally