- This file might not always be up to date right away
- This file contains every Amino.helpers function / method nicely wrapped up
- To see the full general documentation consider reading Readme.md (Click here)
Amino.helpers
The helpers class is an important part of Amino.Net and any other Amino library, as it allows you to get around the Amino API more easily
- BaseURL : string : This string represents the base URL to Aminos REST API
generate_device_id()
This function allows you to generate an Amino ready device ID
- None
Console.WriteLine("Amino device ID: " + Amino.helpers.generate_device_id());
- string
generate_signiture(sring data)
This function allows you to generate an Amino valid request signiture
- data : string : The data you want to turn into a signiture hash
Console.WriteLine("Amino Signiture: " + Amino.helpers.generate_signiture("{ some JSON data }"));
- string
generate_file_signiture(byte[] data)
This function allows you to generate an Amino valid request signiture out of file data
- data : byte[] : The file bytes that you want to turn into data
Console.WriteLine("Some file signiture: " + Amino.helpers.generate_file_signiture(File.ReadAllBytes("Some_File_Path")));
- string
GetTimestamp()
This function allows you to get the current UNIX timestamp, it is **not** Amino ready!
- None
Console.WriteLine("Current UNIX Timestamp: " + Amino.helpers.GetTimestamp());
Console.WriteLine("Current UNIX Timestamp (Amino ready): " + Amino.helpers.GetTimestamp() * 1000);
- double
get_ObjectTypeID(Amino.Types.Object_Types type)
This function allows you to convert a Type into the fitting Amino object ID
- type : Amino.Types.Object_Types : The Type enum that you want to convert into a number
Console.WriteLine("The Amino ID for Blog posts is: " + Amino.helpers.get_ObjectTypeID(Types.Object_Types.Blog));
- int