纯技术干货分享:VMLogin Local API中文版说明
作者:互联网
vmlogin浏览器官网:
官网联系客服,获取三天完整版免费试用!
VMLogin Rest API v1
[ Base URL: https://api.vmlogin.com/v1 ]
用户身份验证和API令牌
所有请求都由用户的访问令牌(以登录为基础)进行身份验证。
可以在 https://m.vmlogin.com/member/account/main/index (账号管理 -> 我的账户) 设置令牌
重要!这个身份验证令牌相当于您的帐户密码。保密,不要与第三方分享。
groups
profiles
Other
创建一个组(/tag/create)
Request
{ "token": "66e9f73f3617c6afdc6768f7a61a58ae",
"name": "test"
}
删除一组(/tag/remove)
Request
{ "token": "66e9f73f3617c6afdc6768f7a61a58ae",
"tagId": "1024"
}
重命名一个组(/tag/rename)
Request
{ "token": "66e9f73f3617c6afdc6768f7a61a58ae",
"name": "New name",
"tagId": "1024"
}
在您的帐户上获得所有组的列表(/tag/list)
Request
{ "token": "66e9f73f3617c6afdc6768f7a61a58ae"
}
移动浏览器配置文件到特定的组(/tag/profile/add)
Request
{ "token": "66e9f73f3617c6afdc6768f7a61a58ae",
"tagId": "1024",
"profileId": "56795471-8dc0-414c-9d1a-794e4dd8be99"
}
从特定组中删除浏览器配置文件(/tag/profile/remove)
Request
{ "token": "66e9f73f3617c6afdc6768f7a61a58ae",
"tagId": "1024",
"profileId": "56795471-8dc0-414c-9d1a-794e4dd8be99"
}
创建浏览器配置文件(/profile/create)
更新浏览器配置文件设置(/profile/update)
浏览器配置文件详情(/profile/detail)
浏览器配置文件分享(批量分享)(/profile/share)
浏览器配置文件取消分享(批量取消分享)(/profile/cancelShare)
浏览器配置文件转移所有权(批量转移)(/profile/transferOwnership)
浏览器配置文件释放(/profile/release)
删除浏览器配置文件(/profile/remove)
获取所有可用浏览器配置文件的列表(/profile/list)
随机获取UA(/browsers/ua)
Models
VMLogin Local REST API
[ Base URL: http://127.0.0.1:35000/api/v1 ]
您可以使用本地REST API来启动/停止、检查配置文件是否正在运行、在本地创建配置文件浏览器并启动。
启动配置文件浏览器(/profile/start)
Body
x-www-form-urlencoded
{
"profileId": "7B4B05BA-8050-4236-B26B-06E4464CA287",
"skiplock": true
}
停止配置文件浏览器(/profile/stop)
Body
x-www-form-urlencoded
{
"profileId": "7B4B05BA-8050-4236-B26B-06E4464CA287"
}
刷新配置文件浏览器(/profile/refresh)
Body
x-www-form-urlencoded
{
"profileId": "7B4B05BA-8050-4236-B26B-06E4464CA287"
}
Response
{
"status": "OK",
"value": "7B4B05BA-8050-4236-B26B-06E4464CA287"
}
当前标签打开指定网址(/profile/openurl)
Body
x-www-form-urlencoded
{
"profileId": "7B4B05BA-8050-4236-B26B-06E4464CA287",
"url": " http://www.vmlogin.com"
}
Response
{
"status": "OK",
"value": " http://www.vmlogin.com"
}
打开一个新标签页(/profile/newtab)
Body
x-www-form-urlencoded
{
"profileId": "7B4B05BA-8050-4236-B26B-06E4464CA287",
"url": " http://www.vmlogin.com"
}
Response
{
"status": "OK",
"value": " http://www.vmlogin.com"
}
获取网页源代码(/profile/source)
Body
x-www-form-urlencoded
{
"profileId": "7B4B05BA-8050-4236-B26B-06E4464CA287"
}
Response
{
"status": "OK",
"value": "<html ...>"
}
Find Element(/profile/findElement)
Body
x-www-form-urlencoded
{
"profileId": "7B4B05BA-8050-4236-B26B-06E4464CA287",
"function": "findElementByID",
"args": "kw",
"click": "false",
"index": "-1"
}
Get Attribute(/profile/getAttribute)
Body
x-www-form-urlencoded
{
"profileId": "7B4B05BA-8050-4236-B26B-06E4464CA287",
"args": "[{\"ELEMENT\": \"95365abe-6746-4703-8cfd-6316580f5289\",\"element-6066-11e4-a52e-4f735466cecf\": \"95365abe-6746-4703-8cfd-6316580f5289\"}, \"style\"]"
}
发送文字到网页中(/profile/sendKeys)
Body
x-www-form-urlencoded
{
"profileId": "7B4B05BA-8050-4236-B26B-06E4464CA287",
"value": "Enter"
}
检查配置文件是否正在运行(/profile/active)
Body
x-www-form-urlencoded
{
"profileId": "7B4B05BA-8050-4236-B26B-06E4464CA287"
}
随机获取配置信息(/profile/randomProfile)
Body
x-www-form-urlencoded
{
"platform": "Windows",
"langHdr": "en-US",
"acceptLanguage": "en-US,en;q=0.9",
"timeZone": "America/New_York"
}
删除一个配置文件本地临时文件夹(/profile/delete)
Body
x-www-form-urlencoded
{
"profileId": "7B4B05BA-8050-4236-B26B-06E4464CA287"
}
在本地创建浏览器配置文件并启动(/profile/create_start)
如果不需要设置代理服务器,请删除proxyType/proxyHost/proxyPort/proxyUser/proxyPass
所有字段都是可选的,而不是必需的。由此API创建的浏览器配置文件暂时离线,不会与服务器同步。
从配置文件导出cookie(/profile/cookies/export/webext)
Body
x-www-form-urlencoded
{
"profileId": "7B4B05BA-8050-4236-B26B-06E4464CA287"
}
将cookie导入配置文件浏览器 (/profile/cookies/import/webext)
Execute Script(/profile/ExecuteScript)
Body
x-www-form-urlencoded
{
"profileId": "7B4B05BA-8050-4236-B26B-06E4464CA287",
"body": "js code..."
}
Screen Shot(/profile/ScreenShot)
Body
x-www-form-urlencoded
{
"profileId": "7B4B05BA-8050-4236-B26B-06E4464CA287",
"body": "d:\myscreenshot.png"
}
Get ALL Cookie(/profile/getCookies)
询问当前页面也没有加载完成(/profile/readyState)
切换Frame(/profile/SwitchToFrame)
Models
标签:profile,Body,www,浏览器,配置文件,VMLogin,API,profileId,Local 来源: https://blog.csdn.net/finnxi_ASOer/article/details/119414765