Ejemplo n.º 1
0
        private void OnLogin(string absoluteUri)
        {
            string requestToken, checkSum;

            if (!Kite.IsValidLogin(absoluteUri, apiKey, secret, out requestToken, out checkSum))
            {
                this.OnLog("********************* Failed to validate ***********************");
                return;
            }

            this.login = Kite.Post <Token>(string.Empty, string.Empty, KiteConnectAPI.Url.Token(), payload: Payload.Token(apiKey, requestToken, checkSum), logger: this);

            if (this.login == null)
            {
                this.OnLog("Failed to get access token");
                return;
            }

            this.SelectedTab = 1;
        }