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

ModIO.APIClient.GeneratePostRequest

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

APIClient.GeneratePostRequest

public static UnityWebRequest GeneratePostRequest(string endpointURL, StringValueParameter[] valueFields, BinaryDataParameter[] dataFields);

Parameters

Name Description
endpointURL Endpoint URL for the request
valueFields The string values to be submitted with the POST request
dataFields The binary data to be submitted with the POST request

Returns

UnityWebRequest: A UnityWebRequest initialized with the data for sending the API request

Description

Generates the object for a mod.io POST request.

The UnityWebRequest that is created is initialized with the values for a mod.io server endpoint request that requires a user authentication token and can be sent as-is.

Clone this wiki locally