Skip to content

API Library Utility

Robert Polak edited this page Aug 6, 2019 · 13 revisions

Home / API Library / Utility

The API Library Utility Methods list with Parameters.

GetMD5

Generate the MD5 hash of the input parameter. Returns String

Method: API.Utility.GetMD5

Parameters:

Name Type Default Description
input String Input String

Return: String


GetSHA256

Geberate the SHA256 hash of the input parameter. Returns String

Method: API.Utility.GetSHA256

Parameters:

Name Type Default Description
input String Input String

Return: String


JsonSerialize_IgnoreLoopingReference

Serialize to JSON ignoring looping references. Returns JSON String

Method: API.Utility.JsonSerialize_IgnoreLoopingReference

Parameters:

Name Type Default Description
input dynamic Input dynamic

Return: JSON String


JsonDeserialize_IgnoreLoopingReference

Deserialize from JSON ignoring looping references. Returns dynamic

Method: API.Utility.JsonDeserialize_IgnoreLoopingReference

Parameters:

Name Type Default Description
input String Input String

Return: Object


GetCustomConfig

Get the value from a custom config by sectionName and key (or keyonly). Returns String

Method: API.Utility.GetCustomConfig

Parameters:

Name Type Default Description
sectionName String Configuration Section Name
key String Configuration key

Return: String


DecodeBase64ToUTF8

Decode a base64 data into a C# UTF8 string.

UTF8 in C# handles both UTF8 and UTF16.

Method: API.Utility.DecodeBase64ToUTF8

Parameters:

Name Type Default Description
data String Data String

Return: String

Clone this wiki locally