public ClarizenUtils(string username, string password, int timeout) { ClarizenAPI = new Clarizen {EnableDecompression = true, Timeout = timeout}; var options = new LoginOptions { PartnerId = "", ApplicationId = "E000D035-3F63-4D51-87BA-737EE9B1487E" }; ClarizenAPI.Login(username, password, options); projectEntityDescription=new Dictionary<string, EntityDescription>(); }
public override void PreExecute() { base.PreExecute(); /// login string username = Variables.ClarizenUserName; string password = Variables.ClarizenPassword; clarizenClient = new Clarizen(); clarizenClient.Timeout = 10 * 1000 * 60; //For debugging clarizenClient.EnableDecompression = true; //compress traffic //Currently pass null in last argument LoginOptions options = new LoginOptions(); //If you are an enterprise user, leave the partnerId empty. If you are a certified partner, please //place the partner id you received from Clarizen here: options.PartnerId = ""; options.ApplicationId = "ClarizenClient"; //Replace with a string representing your application LoginResult lr = clarizenClient.Login(username, password, options); userId = lr.UserId; }