Class RESTApiUtils
Assembly: Glitch9.IO.dll
Syntax
public static class RESTApiUtils
Methods
|
Edit this page
View Source
DecodeAudioAsync<TRes>(RESTRequest, TRes, byte[], MimeType, RESTClient)
Declaration
public static UniTask<TRes> DecodeAudioAsync<TRes>(RESTRequest request, TRes response, byte[] binaryBody, MimeType contentType, RESTClient client) where TRes : RESTResponse
Parameters
Returns
| Type |
Description |
| UniTask<TRes> |
|
Type Parameters
|
Edit this page
View Source
Declaration
public static string FormatAttributeParams<T>(string endpoint, T body, JsonSerializerSettings jss)
Parameters
| Type |
Name |
Description |
| string |
endpoint |
|
| T |
body |
|
| JsonSerializerSettings |
jss |
|
Returns
Type Parameters
|
Edit this page
View Source
Declaration
public static string FormatEndpointUrl(IApiClient client, string urlTemplate, List<RequestParameter> @params = null)
Parameters
Returns
|
Edit this page
View Source
HideSensitiveInfoFromUrl(string)
Declaration
public static string HideSensitiveInfoFromUrl(string url)
Parameters
| Type |
Name |
Description |
| string |
url |
|
Returns
|
Edit this page
View Source
ResolveOutputPath(string, string)
Declaration
public static string ResolveOutputPath(string outputPath, string extension)
Parameters
Returns
|
Edit this page
View Source
ResolveOutputPath(string, AudioType)
Declaration
public static string ResolveOutputPath(string outputPath, AudioType audioType)
Parameters
| Type |
Name |
Description |
| string |
outputPath |
|
| AudioType |
audioType |
|
Returns