{"id":502,"date":"2023-02-06T17:16:15","date_gmt":"2023-02-06T09:16:15","guid":{"rendered":"https:\/\/www.xlogin.us\/help\/docs\/document\/api-automation\/local-api-for-routine-automation-operations\/"},"modified":"2024-12-04T15:26:13","modified_gmt":"2024-12-04T07:26:13","slug":"local-api-for-routine-automation-operations","status":"publish","type":"docs","link":"https:\/\/www.xlogin.us\/help\/docs\/api-automation\/local-api-for-routine-automation-operations\/","title":{"rendered":"Local API for Routine Automation Operations"},"content":{"rendered":"\n<p class=\"has-medium-font-size\">1. Refresh the page<\/p>\n\n\n\n<p style=\"font-size:18px\"><br><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/profile\/refresh?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx<\/mark><\/em><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br><br>2. The current tab to open the specified URL<\/p>\n\n\n\n<p style=\"font-size:18px\"><br><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/profile\/openurl?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&amp;url=www.xlogin.us<\/mark><\/em><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br><br>3. Get the source code of the web page<\/p>\n\n\n\n<p style=\"font-size:18px\"><br><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/profile\/source?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx<\/mark><\/em><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br><br>4. Client restart interface<\/p>\n\n\n\n<p style=\"font-size:18px\"><br><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/client\/restart<\/mark><\/em><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br><br><br>5. Import address API:<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br>\u2460 <em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/profile\/addresses\/import<\/mark><\/em><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br>\u2461 POST&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br>\u2462 profileId<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br>\u2463 body \uff08JSON need base64 encode\uff09:&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br>\u2464 <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;{\"name_on_card\":\"xlogin\",\"nickname\":\"xlogin\",\"card_number\":\"1241526456789\",\"expiration_month\":9,\"expiration_year\":2024}]<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><br><br>6. Import payment method API:<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br>\u2460 <em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/profile\/credit_cards\/import<\/mark><\/em><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br>\u2461 POST<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br>\u2462 profileId<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br>\u2463 body \uff08JSON need base64 encode\uff09:&nbsp;<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br>\u2464 <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;{\"organization\":\"xlogin ltd\",\"street_address\":\"xlogin  100\",\"district\":\"Qixia\",\"city\":\"nanjing\",\"province\":\"Jiangsu\",\"zipcode\":\"210046\",\"country_code\":\"CN\",\"number\":\"15644444\",\"full_name\":\"dama\",\"email\":\"support@xlogin.us\"}]<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><br><\/p>\n\n\n\n<p><br><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><br><br><br><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br><\/p>\n\n\n\n<p><br><\/p>\n","protected":false},"featured_media":0,"parent":810,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-502","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.xlogin.us\/help\/wp-json\/wp\/v2\/docs\/502","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xlogin.us\/help\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.xlogin.us\/help\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xlogin.us\/help\/wp-json\/wp\/v2\/comments?post=502"}],"version-history":[{"count":16,"href":"https:\/\/www.xlogin.us\/help\/wp-json\/wp\/v2\/docs\/502\/revisions"}],"predecessor-version":[{"id":3151,"href":"https:\/\/www.xlogin.us\/help\/wp-json\/wp\/v2\/docs\/502\/revisions\/3151"}],"up":[{"embeddable":true,"href":"https:\/\/www.xlogin.us\/help\/wp-json\/wp\/v2\/docs\/810"}],"next":[{"title":"Launch the Browser Automation Port","link":"https:\/\/www.xlogin.us\/help\/docs\/api-automation\/launch-the-browser-automation-port\/","href":"https:\/\/www.xlogin.us\/help\/wp-json\/wp\/v2\/docs\/503"}],"prev":[{"title":"REST API Interface Examples","link":"https:\/\/www.xlogin.us\/help\/docs\/api-automation\/api-interfaces\/","href":"https:\/\/www.xlogin.us\/help\/wp-json\/wp\/v2\/docs\/2394"}],"wp:attachment":[{"href":"https:\/\/www.xlogin.us\/help\/wp-json\/wp\/v2\/media?parent=502"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.xlogin.us\/help\/wp-json\/wp\/v2\/doc_tag?post=502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}