Library Genlogin API
Genlogin supports MacOS and Windows platforms.
var gen = new Genlogin("");
var profile = await gen.GetProfiles(1, 0);
JObject jsonObject = JObject.Parse((string)profile);
int profileID = (int)jsonObject["data"]["lst_profile"][0]["id"];
var profileRun = await gen.runProfile(profileID);
JObject jsonObjectprofileRun = JObject.Parse((string)profileRun);
string wsEndpoint = ((string)jsonObjectprofileRun["wsEndpoint"]).Split('/')[2];
var chromeDriverPath = "chromedriver.exe";
var chromeOptions = new ChromeOptions();
chromeOptions.DebuggerAddress = wsEndpoint;
var service = ChromeDriverService.CreateDefaultService(chromeDriverPath);
var driver = new ChromeDriver(service, chromeOptions);
driver.Navigate().GoToUrl("https://genlogin.com");
gen.stopProfile(profileID);
driver.Quit();
- Swagger: Link here
LOCAL_URL = "http://localhost:55550/profiles"
-
- return { profiles :[...],pagination: [...]}
-
- return { id: ..., user_id: ...,profile_data:{...},...}
-
- return { success: true, data: { wsEndpoint: 'xxx' } }
-
- return {success: true, wsEndpoint: 'xxx'}
-
- return { success: true }
-
- return { success: true, data: [...] }