public void Setup() { if (File.Exists(".zuliprc")) { zclient = ZulipServer.Login(".zuliprc"); messageEndpoint = zclient.GetMessageEndPoint(); } }
public static void GetZulipClient(string ZulipRCPath) { if (!Connected) { client = ZulipServer.Login(ZulipRCPath); Connected = client != null && !string.IsNullOrEmpty(ApiKey); } }
public void Setup() { if (File.Exists(".zuliprc")) { zclient = ZulipServer.Login(".zuliprc"); streamEndpoint = zclient.GetStreamEndPoint(); } }
public async Task ZulipLoginWithEmailAndApiKeyTest(string serverURL, string userEmail, string apiKey) { var srv = new ZulipServer(serverURL); var client = srv.Login(userEmail, apiKey); var sEndPoint = client.GetStreamEndPoint(); var streams = await sEndPoint.GetStreams(); Assert.IsTrue(streams?.Count > 0); }
public async Task Setup() { if (File.Exists(".zuliprc")) { zclient = ZulipServer.Login(".zuliprc"); userEndpoint = zclient.GetUserEndPoint(); await RefreshData(); } }
public void TestZulipRC() { var zuliprc = ".zuliprc"; var apiKey = ""; if (File.Exists(zuliprc)) { var zulipClient = ZulipServer.Login(zuliprc); apiKey = zulipClient.APIKey; } Assert.IsTrue(!string.IsNullOrEmpty(apiKey)); }