public LiveCodingAPI(string clientID, string clientSecret) { _clientID = clientID; //_clientSecret = clientSecret; _webEngine = new WebEngine(this); _apiEngine = new APIEngine(this); // Get Access Key //string str = OAuth.Engine.GetTokenFromID(this, _clientID, _clientSecret); string[] bypassKey = System.IO.File.ReadAllLines("bin/temp/session.txt"); _apiStateKey = bypassKey[0]; _clientID = bypassKey[0]; _clientSecret = bypassKey[1]; string[] bypassServer = System.IO.File.ReadAllLines("bin/temp/server.txt"); _serverID = bypassServer[0]; _serverSecret = bypassServer[1]; Console.WriteLine("API::INIT -> Set State({0}), Set CliSecret({1})", _apiStateKey, _apiSessionKey); _apiSessionKey = getWebEngine().GetSessionKey(_clientSecret); }