コード例 #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");
        }
コード例 #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);
 }
コード例 #3
0
ファイル: Program.cs プロジェクト: rogerlio/csharp-proj
 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");
 }