static NET.Model.FileInfo GetDocRequest(Configuration conf)
        {
            TranslationApi api = new TranslationApi(conf);

            NET.Model.FileInfo info = api.GetDocumentRequestStructure();
            return(info);
        }
        static void Main(string[] args)
        {
            // add your ClientId and ClientSecret
            Configuration conf = new Configuration();

            conf.ClientId     = "";
            conf.ClientSecret = "";



            if (string.IsNullOrEmpty(conf.ClientId) || string.IsNullOrEmpty(conf.ClientSecret))
            {
                throw new Exception("Please, get and set your ClientId and ClientSecret. https://dashboard.groupdocs.cloud/#/");
            }


            TranslationResponse hcResponse   = new TranslationResponse();
            TextResponse        textResponse = new TextResponse();

            NET.Model.FileInfo            fileInfo = new NET.Model.FileInfo();
            TextInfo                      textInfo = new TextInfo();
            Dictionary <string, string[]> pairs    = new Dictionary <string, string[]>();

            Console.WriteLine("Example #1:\nDocument translation of file in GroupDocs Storage");
            TranslateDocument(conf);


            Console.WriteLine("Example #2:\nText translation");
            textResponse = TranslateText(conf);
            Console.WriteLine(textResponse);

            Console.WriteLine("Example #3:\nHealth check");
            hcResponse = HealthCheck(conf);
            Console.WriteLine(hcResponse);

            Console.WriteLine("Example #4:\nGet structure of document request");
            fileInfo = GetDocRequest(conf);
            Console.WriteLine(fileInfo.ToString());

            Console.WriteLine("Example #5:\nGet structure of text request");
            textInfo = GetTextRequest(conf);
            Console.WriteLine(textInfo.ToString());

            Console.WriteLine("Example #6:\nGet language pairs");
            pairs = GetLanguagePairs(conf);
            foreach (var key in pairs.Keys)
            {
                Console.WriteLine(key + ": ");
                foreach (var value in pairs[key])
                {
                    Console.WriteLine("- " + value);
                }
            }
        }