Ejemplo n.º 1
0
        static void TestExport(string token)
        {
            string url        = "https://app.totango.com/api/v1/accounts/active_list/10010/current.json";
            var    tangoXport = new ToTangoExport(token, "mapping.csv");

            tangoXport.Start(url, "test.csv");
        }
Ejemplo n.º 2
0
 private void InitializeTotango()
 {
     try
     {
         token = ConfigurationManager.AppSettings.Get("ToTangoToken");
         headerFile = ConfigurationManager.AppSettings.Get("HeaderFile");
         baseUrl = ConfigurationManager.AppSettings.Get("BaseConfirmUrl");
     }
     catch (Exception) { }
     if (!File.Exists(headerFile))
         File.WriteAllLines(headerFile, new string [] {"MemberFullName,MemberEmail,MemberPhone"});
     toTango = new ToTangoExport(token, headerFile);
 }
Ejemplo n.º 3
0
 static void TestExport(string token)
 {
     string url = "https://app.totango.com/api/v1/accounts/active_list/10010/current.json";
     var tangoXport = new ToTangoExport(token, "mapping.csv");
     tangoXport.Start(url, "test.csv");
 }