Esempio n. 1
0
        /// <summary>
        /// Supply the path to your zuliprc file containing email, key and site URL.
        /// </summary>
        /// <param name="ZulipRCPath"></param>
        public ZulipClient(string ZulipRCPath)
        {
            var AuthHelper = new ZulipRCAuth(ZulipRCPath);

            this.Server         = AuthHelper.Server;
            this.Authentication = AuthHelper.ZulipAuth;
        }
Esempio n. 2
0
        public static ZulipClient Login(string pathZulipRCFile)
        {
            var zrc = new ZulipRCAuth(pathZulipRCFile);

            return(new ZulipClient(zrc.Username, zrc.UserSecret)
            {
                ServerApiURL = new ZulipServer(zrc.ServerURL).ServerApiURL,
            });
        }