private static void initSession() { Console.WriteLine("Goto " + kite.GetLoginURL()); Console.WriteLine("Enter request token: "); string requestToken = Console.ReadLine(); User user = kite.RequestAccessToken(requestToken, MySecret); Console.WriteLine(JsonSerialize(user)); MyAccessToken = user.AccessToken; MyPublicToken = user.PublicToken; }