Server Sided Files

api.file is the function used to get a server sided file through it's identifier/name ( it needs the program to be initialized and the user to be logged in ) :


The file's name


Code-Example

class Program {
    public static api auth_instance = new api("program version", "program key", "api key");

    static void Main(string[] args) {
        auth_instance.init();

        if(auth_instance.login("user", "pass")) { // if the user could login successfully
            auto file_data = auth_instance.file("file");

            File.WriteAllBytes("example.file", file_data);
        }
    }
}