This repository has been archived by the owner on Sep 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
ModIO.APIClient
Jackson Wood edited this page Mar 6, 2019
·
26 revisions
static class in ModIO
An interface for sending requests to the mod.io servers. This class is the core class for sending requests to the mod.io servers directly. It can be used as a stand-alone class for direct manual control, or used in combination with ModIO.ModManager when necessary.
Name | Description |
---|---|
API_VERSION | Denotes the version of the mod.io web API that this class is compatible with. |
API_URL_TESTSERVER | URL for the test server. |
API_URL_PRODUCTIONSERVER | URL for the production server |
UNITY_REQUEST_HEADER_KEYS | Collection of the HTTP request header keys used by Unity. |
MODIO_REQUEST_HEADER_KEYS | Collection of the HTTP request header keys used by mod.io. |
Name | Description |
---|---|
apiURL | The base URL for the web API that the APIClient should use. |
gameId | Game ID that the APIClient should use when contacting the API. |
gameAPIKey | Game API Key that the APIClient should use when contacting the API. |
languageCode | Requested language for the API response messages. |
logAllRequests | Enable logging of all web requests. |
Name | Description |
---|---|
AssertAuthorizationDetails | Asserts that the required authorization data for making API requests is set. |
GenerateRequestDebugString | Generates a debug-friendly string of web request details. |
GenerateQuery | Generates the object for a basic mod.io server request. |
GenerateGetRequest | Generates the object for a mod.io GET request. |
GeneratePutRequest | Generates the object for a mod.io PUT request. |
GeneratePostRequest | Generates the object for a mod.io POST request. |
GenerateDeleteRequest | Generates the object for a mod.io DELETE request. |
SendRequest | A wrapper for sending a UnityWebRequest and attaching callbacks. |
SendRequest<T> | A wrapper for sending a web request to mod.io and parsing the result. |
SendSecurityCode | Requests a login code be sent to an email address. |
GetOAuthToken | Requests a user OAuthToken in exchange for a security code. |
RequestSteamAuthentication | Request an OAuthToken using a Steam User authentication ticket. |
GetAllGames | Fetches all the game profiles from the mod.io servers. |
GetGame | Fetches the game's/app's profile from the mod.io servers. |
EditGame | Updates the game's profile on the mod.io servers. |
GetAllMods | Fetches all mod profiles from the mod.io servers. |
GetMod | Fetches a mod profile from the mod.io servers. |
AddMod | Submits a new mod profile to the mod.io servers. |
EditMod | Submits changes to an existing mod profile. |
DeleteMod | Deletes a mod profile from the mod.io servers. |
GetAllModfiles | Fetches all modfiles for a given mod from the mod.io servers. |
GetModfile | Fetch the a modfile from the mod.io servers. |
AddModfile | Submits a new modfile and binary to the mod.io servers. |
EditModfile | Submits changes to an existing modfile. |
AddGameMedia | Submit new game media to the mod.io servers. |
AddModMedia | Submits new mod media to the mod.io servers. |
DeleteModMedia | Deletes mod media from a mod on the mod.io servers. |
SubscribeToMod | Subscribes the authenticated user to a mod. |
UnsubscribeFromMod | Unsubscribes the authenticated user from a mod. |
GetModEvents | Fetches the update events for a given mod. |
GetAllModEvents | Fetches all the mod update events for the game profile. |
GetAllModStats | Fetches the statistics for all mods. |
GetModStats | Fetches the statics for a mod. |
GetGameTagOptions | Fetches the tag categories specified by the game profile. |
AddGameTagOption | Submits new mod tag categories to the mod.io servers. |
DeleteGameTagOption | Removes mod tag options from the mod.io servers. |
GetModTags | Fetches the tags applied to the given mod. |
AddModTags | Submits new mod tags to the mod.io servers. |
DeleteModTags | Removes tags from the given mod. |
AddModRating | Submits a user's rating for a mod. |
GetAllModKVPMetadata | Fetches all the KVP metadata for a mod. |
AddModKVPMetadata | Submit KVP Metadata to a mod. |
DeleteModKVPMetadata | Deletes KVP metadata from a mod. |
GetAllModDependencies | Fetches all the dependencies for a mod. |
AddModDependencies | Submits new dependencides for a mod. |
DeleteModDependencies | Removes dependencides from a mod. |
GetAllModTeamMembers | Fetches the team members for a mod. |
AddModTeamMember | Submits a new team member to a mod. |
UpdateModTeamMember | Submits changes to a mod team member. |
DeleteModTeamMember | Submits a delete request for a mod team member. |
GetAllModComments | Fetches all the comments for a mod. |
GetModComment | Fetches a mod comment by id. |
DeleteModComment | Submits a delete request for a mod comment. |
GetResourceOwner | Fetches the owner for a mod resource. |
GetAllUsers | Fetches all the user profiles on mod.io. |
GetUser | Fetches a user profile from the mod.io servers. |
SubmitReport | Submits a report against a mod/resource on mod.io. |
GetAuthenticatedUser | Fetches the user profile for the authenticated user. |
GetUserSubscriptions | Fetches the subscriptions for the authenticated user. |
GetUserEvents | Fetch the update events for the authenticated user. |
GetUserGames | Fetches the games that the authenticated user is a team member of. |
GetUserMods | Fetches the mods that the authenticated user is a team member of. |
GetUserModfiles | Fetches the modfiles that the authenticated user uploaded. |
GetUserRatings | Fetches all the ratings submitted by the authenticated user. |