{"id":3186,"date":"2022-05-16T20:21:52","date_gmt":"2022-05-16T12:21:52","guid":{"rendered":"https:\/\/www.vmlogin.cc\/blog\/?p=3186"},"modified":"2022-10-13T10:37:37","modified_gmt":"2022-10-13T02:37:37","slug":"vmlogin-%e6%9c%ac%e5%9c%b0-api-%e6%8e%a5%e5%8f%a3%e8%bf%9b%e8%a1%8c%e5%b8%b8%e8%a7%84%e8%87%aa%e5%8a%a8%e5%8c%96%e6%93%8d%e4%bd%9c","status":"publish","type":"post","link":"https:\/\/www.vmlogin.cc\/blog\/3186.html","title":{"rendered":"VMLogin \u672c\u5730 API \u63a5\u53e3\u8fdb\u884c\u5e38\u89c4\u81ea\u52a8\u5316\u64cd\u4f5c"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">1. \u5237\u65b0\u9875\u9762\uff1a<\/h2>\n\n\n\n<p>http:\/\/127.0.0.1:35000\/api\/v1\/profile\/refresh?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. \u5f53\u524d\u6807\u7b7e\u6253\u5f00\u6307\u5b9a\u7f51\u5740\uff1a<\/h2>\n\n\n\n<p>http:\/\/127.0.0.1:35000\/api\/v1\/profile\/openurl?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&amp;url=www.<a href=\"https:\/\/www.vmlogin.cc\/\" target=\"_blank\" rel=\"noreferrer noopener\">vmlogin<\/a>.cc<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3. \u83b7\u53d6\u7f51\u9875\u6e90\u4ee3\u7801\uff1a<\/h2>\n\n\n\n<p>http:\/\/127.0.0.1:35000\/api\/v1\/profile\/source?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">4. \u5bfb\u627e\u7f51\u9875\u4e2d\u7684\u5143\u7d20\uff1a<\/h2>\n\n\n\n<p>http:\/\/127.0.0.1:35000\/api\/v1\/profile\/findElement?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&#038;function=findElementByID&#038;args=kw&#038;click=false&#038;index=-1<\/p>\n\n\n\n<p>function \u53c2\u6570\u652f\u6301\uff1a<\/p>\n\n\n\n<p>findElementByID<\/p>\n\n\n\n<p>findElementByTag<\/p>\n\n\n\n<p>findElementByClassName<\/p>\n\n\n\n<p>findElementByLinkText<\/p>\n\n\n\n<p>findElementByXPath<\/p>\n\n\n\n<p>findElementsByID<\/p>\n\n\n\n<p>findElementsByTag<\/p>\n\n\n\n<p>findElementsByClassName<\/p>\n\n\n\n<p>findElementsByLinkText<\/p>\n\n\n\n<p>findElementsByXPath<\/p>\n\n\n\n<p>args \u53c2\u6570\u4e3a function \u51fd\u6570\u7684\u4f20\u53c2\uff0c\u5982\uff1afindElementByID(args).<\/p>\n\n\n\n<p>click \u4e3a true \u65f6\uff0c\u627e\u5230\u6307\u5b9a\u5143\u7d20\u540e\u8fdb\u884c\u70b9\u51fb\u64cd\u4f5c\u3002 \u4e3afalse\u65f6\u4e0d\u8fdb\u884c\u70b9\u51fb<\/p>\n\n\n\n<p>index \u662f\u5143\u7d20\u6709\u591a\u4e2a\u65f6\uff0c\u6307\u5b9a\u70b9\u51fb\u7b2c\u51e0\u4e2a\u5143\u7d20\uff0c\u4ece0\u5f00\u59cb\uff0c-1 \u4e3a\u968f\u673a\u5143\u7d20\u5176\u4e2d\u4e00\u4e2a\uff0c\u8fd9\u4e2a\u53c2\u6570\u662f\u914d\u5408 click = true \u65f6\u4f7f\u7528\u7684\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">5.\u53d6\u6307\u5b9a\u5143\u7d20\u5c5e\u6027\u503c\uff1a<\/h2>\n\n\n\n<p>http:\/\/127.0.0.1:35000\/api\/v1\/profile\/getAttribute?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&amp;args=[{&#8220;ELEMENT&#8221;: &#8220;95365abe-6746-4703-8cfd-6316580f5289&#8221;, &#8220;element-6066-11e4-a52e-4f735466cecf&#8221;: &#8220;95365abe-6746-4703-8cfd-6316580f5289&#8221;}, &#8220;style&#8221;]<\/p>\n\n\n\n<p>args \u53c2\u6570\uff0c\u4e00\u822c\u662f\u901a\u8fc7findElement\u67e5\u627e\u5143\u7d20\u540e\u5f97\u5230\u7684Element_ID\u7ed3\u5408\u6210\u7684JSON\u4e32\u3002\u5982\uff1a[{&#8220;ELEMENT&#8221;: &#8220;95365abe-6746-4703-8cfd-6316580f5289&#8221;, &#8220;element-6066-11e4-a52e-4f735466cecf&#8221;: &#8220;95365abe-6746-4703-8cfd-6316580f5289&#8221;}, &#8220;value&#8221;]&nbsp;<\/p>\n\n\n\n<p>\u8fd9\u4e2a\u5c31\u662f\u53d6 95365abe-6746-4703-8cfd-6316580f5289&nbsp; \u5143\u7d20\u7684 value \u503c\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">6. \u901a\u8fc7\u9009\u62e9\u5668\u6267\u884c\u5143\u7d20\u70b9\u51fb\uff1a<\/h2>\n\n\n\n<p>http:\/\/127.0.0.1:35000\/api\/v1\/profile\/findElement?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&#038;function=findElementByID&#038;args=kw&#038;click=true&#038;index=-1<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">7. \u53d1\u9001\u6587\u5b57\u5230\u7f51\u9875\u4e2d\uff1a<\/h2>\n\n\n\n<p>\u9996\u5148\u53ef\u4ee5\u5148\u4f7f\u7528&nbsp;findElementByID \u627e\u5143\u7d20\u7684&nbsp;elementId ,\u4f8b\u5982\uff1a<\/p>\n\n\n\n<p>http:\/\/127.0.0.1:35000\/api\/v1\/profile\/findElement?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&#038;function=findElementByID&#038;args=kw&#038;click=false&#038;index=-1<\/p>\n\n\n\n<p>\u4e5f\u53ef\u4ee5\u4f7f\u7528\uff1afindElementByXPath \u65b9\u5de5\u627e\u5143\u7d20\u7684&nbsp;elementId ,\u4f8b\u5982\uff1a<\/p>\n\n\n\n<p>http:\/\/127.0.0.1:35000\/api\/v1\/profile\/findElement?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&#038;function=findElementByXPath&#038;args=Ly8qW0BpZD0ia3ciXQ==&#038;click=false&#038;index=-1<\/p>\n\n\n\n<p>\u4e0a\u9762&nbsp;args \u53c2\u6570\u4f7f\u7528 base64 \u7f16\u7801\u4f20\u8f93\uff0c\u89e3\u7801\u540e\u662f\uff1a\/\/*[@id=&#8221;kw&#8221;]<\/p>\n\n\n\n<p>\u4e0a\u9762GET\u8bf7\u6c42\u4f1a\u8fd4\u56de\uff1a<\/p>\n\n\n\n<p>{&#8220;status&#8221;:&#8221;OK&#8221;,&#8221;value&#8221;:&#8221;{\\&#8221;element-6066-11e4-a52e-4f735466cecf\\&#8221;:\\&#8221;49e49e71-2a55-4e79-a41b-86840ffd18c8\\&#8221;}&#8221;}<\/p>\n\n\n\n<p>\u5176\u4e2d&nbsp;49e49e71-2a55-4e79-a41b-86840ffd18c8 \u5c31\u662f\u8981\u7528\u5230\u7684elementId \u3002<\/p>\n\n\n\n<p>http:\/\/127.0.0.1:35000\/api\/v1\/profile\/sendKeys?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&#038;elementId=49e49e71-2a55-4e79-a41b-86840ffd18c8&#038;value=5Lit5paHYWJjMTIz<\/p>\n\n\n\n<p>\u4e0a\u9762&nbsp;value \u4e5f\u4f7f\u7528\u4e86&nbsp;base64 \u7f16\u7801\u4f20\u8f93,\u9632\u6b62GET\u4f20\u8f93\u5931\u8d25\u3002<\/p>\n\n\n\n<p>value=5Lit5paHYWJjMTIz\uff0c\u5c31\u662f\u6362\u8fd9\u4e2a\u7f51\u9875\u63a7\u4ef6\u4e2d\u53d1\u9001 \u4e2d\u6587abc123 \u5b57\u7b26\u4e32\u3002\u6ce8\u610f\u7f51\u9875\u8981\u52a0\u8f7d\u5b8c\u6bd5\u624d\u80fd\u8fdb\u884c\u8fd9\u4e9b\u81ea\u52a8\u5316\u64cd\u4f5c\uff0c\u4e0d\u7136\u6709\u53ef\u80fd\u52a8\u4f5c\u4f1a\u88ab\u963b\u585e\u3002<\/p>\n\n\n\n<p>\u8fd9\u91cc\u768435000\u7aef\u53e3\uff0c\u662f<strong>VMLogin<\/strong><a href=\"https:\/\/www.vmlogin.cc\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u6307\u7eb9\u6d4f\u89c8\u5668<\/a>\u5ba2\u6237\u7aef\u8f6f\u4ef6\u4e2d\u6211\u7684\u5e10\u53f7\u91cc\u8bbe\u7f6e\u7684\u7aef\u53e3\uff0c\u6ce8\u610f\u5f00\u542f\u548c\u53d8\u5316\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u5237\u65b0\u9875\u9762\uff1a http:\/\/127.0.0.1:35000\/api\/v1\/profile\/refresh?&hellip; <a href=\"https:\/\/www.vmlogin.cc\/blog\/3186.html\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb <span class=\"screen-reader-text\">VMLogin \u672c\u5730 API \u63a5\u53e3\u8fdb\u884c\u5e38\u89c4\u81ea\u52a8\u5316\u64cd\u4f5c<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3186","post","type-post","status-publish","format-standard","hentry","category-vmlogin-jiaocheng"],"_links":{"self":[{"href":"https:\/\/www.vmlogin.cc\/blog\/wp-json\/wp\/v2\/posts\/3186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vmlogin.cc\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vmlogin.cc\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vmlogin.cc\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vmlogin.cc\/blog\/wp-json\/wp\/v2\/comments?post=3186"}],"version-history":[{"count":2,"href":"https:\/\/www.vmlogin.cc\/blog\/wp-json\/wp\/v2\/posts\/3186\/revisions"}],"predecessor-version":[{"id":4014,"href":"https:\/\/www.vmlogin.cc\/blog\/wp-json\/wp\/v2\/posts\/3186\/revisions\/4014"}],"wp:attachment":[{"href":"https:\/\/www.vmlogin.cc\/blog\/wp-json\/wp\/v2\/media?parent=3186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vmlogin.cc\/blog\/wp-json\/wp\/v2\/categories?post=3186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vmlogin.cc\/blog\/wp-json\/wp\/v2\/tags?post=3186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}