Need help with vb.net login sequence

jsudhams
Hi,
I am writing app in vb.net and i am not able to get the login sequence done.
My Code is as follows

' A button to connect

Private Sub btnConnect_Click(sender As Object, e As EventArgs) Handles btnConnect.Click

Dim url As String

url = "https://kite.trade/connect/login?api_key=myapikey"

wb.ScriptErrorsSuppressed = True
wb.Navigate(New Uri(url))

End Sub

Private Sub wb_Navigated(sender As Object, e As WebBrowserNavigatedEventArgs) Handles wb.Navigated
Dim SessionUrl As String

SessionUrl = wb.Url.ToString
txtSessionUrl.Text = SessionUrl

End Sub


At the end I am getting the URL as follows

https://kite.zerodha.com/connect/login?sess_id=mysessionid&api_key=myapikey


Am not getting the URL with request_token and status

Can some one give me a direction on this?
Sign In or Register to comment.