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

ModIO.APIClient.SubscribeToMod

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

APIClient.SubscribeToMod

public static void SubscribeToMod(int modId, Action<ModProfile> successCallback, Action<WebRequestError> errorCallback);

Parameters

Name Description
modId Mod to be subscribed to
successCallback Action to execute if the request succeeds
errorCallback Action to execute if the request returns an error

Description

Subscribes the authenticated user to a mod.

A successful request will return the ModProfile of the newly subscribed mod. As users can subscribe to mods via the mod.io web interface it is recommended that any cached records are updated via ModIO.APIClient.GetUserEvents.

See also: docs.mod.io page ModIO.UserAuthenticationData.token, ModIO.APIClient.UnsubscribeFromMod

Clone this wiki locally