Beispiel #1
0
        static async Task RunAsync()
        {
            //Generate and return Token
            User objUser = new User();

            objUser.username = ConfigurationManager.AppSettings["login_api"];
            objUser.password = ConfigurationManager.AppSettings["password_api"];
            CallApi callApi = new CallApi();
            Token   token   = await callApi.CreateTokenAuth(objUser);

            //List mail by query
            var strGetListMail = callApi.GetListMail("marcus");

            Console.WriteLine(strGetListMail);

            Console.WriteLine();

            //Get by mail
            var strGetMail = callApi.GetEmail("*****@*****.**");

            Console.WriteLine(strGetMail);

            //Create mail
            Mail objMail = new Mail();

            objMail.data.mail = "";

            Console.ReadLine();
        }