{"id":3144,"date":"2023-07-05T16:56:49","date_gmt":"2023-07-05T08:56:49","guid":{"rendered":"https:\/\/www.vmlogin.us\/help\/?p=3144"},"modified":"2023-08-14T13:03:56","modified_gmt":"2023-08-14T05:03:56","slug":"import-profile-cookies","status":"publish","type":"post","link":"https:\/\/www.vmlogin.us\/help\/api\/import-profile-cookies.html","title":{"rendered":"API Import Cookie to Browser Profile"},"content":{"rendered":"\n<p class=\"has-medium-font-size\"><strong>Import cookie to browser profile using the API:<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\">Request Url:<\/p>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code><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\/cookies\/import\/webext<\/mark><\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\">Request Type: POST<\/p>\n\n\n\n<figure class=\"wp-block-table has-medium-font-size\"><table><tbody><tr><td><strong><strong>Name<\/strong><\/strong><\/td><td><strong>Type<\/strong><\/td><td><strong><strong>Description<\/strong><\/strong><\/td><td><strong><strong>required<\/strong><\/strong><\/td><\/tr><tr><td>profileId<\/td><td>string<\/td><td>Browser profile ID<\/td><td>true<\/td><\/tr><tr><td>body<\/td><td>string<\/td><td>cookie json (need base64 encode )<\/td><td>true<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">Body<br>x-www-form-urlencoded<\/p>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">{\n    \"profileId\": \"17D40B01-566A-4E3F-888A-C40A404668B8\",\n    \"body\": &#91;\n                {\n                    \"hostOnly\": false,\n                    \"secure\": false,\n                    \"httpOnly\": false,\n                    \"domain\": \".vmlogin.us\",\n                    \"session\": false,\n                    \"expirationDate\": 1620743803,\n                    \"value\": \"Xrli9YsFVTw.0AAAEC\",\n                    \"path\": \"\\\/\",\n                    \"name\": \"CMID\",\n                    \"storeId\": null,\n                    \"sameSite\": \"unspecified\"\n                },\n                {\n                    \"hostOnly\": false,\n                    \"secure\": false,\n                    \"httpOnly\": false,\n                    \"domain\": \".vmlogin.us\",\n                    \"session\": false,\n                    \"expirationDate\": 1596983803,\n                    \"value\": \"9960\",\n                    \"path\": \"\\\/\",\n                    \"name\": \"CMPRO\",\n                    \"storeId\": null,\n                    \"sameSite\": \"unspecified\"\n                }\n            ]\n}<\/mark><\/code><\/pre>\n\n\n\n<p><br><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Note:<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\">(1) When using the local interface, you need to Enable browser automation settings on the VMLogin client and save the settings. Please refer to the tutorial&nbsp;<strong><a href=\"https:\/\/www.vmlogin.us\/help\/api\/browser-automation-interface.html\" target=\"_blank\" rel=\"noreferrer noopener\">\"Launch the browser automation port\"<\/a><\/strong>;<\/p>\n\n\n\n<p class=\"has-medium-font-size\">(2) For profiled, please refer to the tutorial&nbsp;<strong><a rel=\"noreferrer noopener\" href=\"https:\/\/www.vmlogin.us\/help\/api\/where-is-profile-id.html\" target=\"_blank\">\"Where is the profile ID\"<\/a><\/strong> or use the&nbsp;<strong><a href=\"https:\/\/www.vmlogin.us\/help\/api\/get-list-of-available-browser-profile.html\">profile\/list interface<\/a><\/strong>&nbsp;to get all profileId.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"793\" height=\"540\" src=\"https:\/\/www.vmlogin.us\/help\/wp-content\/uploads\/2023\/07\/5-import-cookie.png\" alt=\"\" class=\"wp-image-3145\" srcset=\"https:\/\/www.vmlogin.us\/help\/wp-content\/uploads\/2023\/07\/5-import-cookie.png 793w, https:\/\/www.vmlogin.us\/help\/wp-content\/uploads\/2023\/07\/5-import-cookie-300x204.png 300w, https:\/\/www.vmlogin.us\/help\/wp-content\/uploads\/2023\/07\/5-import-cookie-768x523.png 768w\" sizes=\"auto, (max-width: 793px) 100vw, 793px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Import cookie to browser profile using the API: Request [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-3144","post","type-post","status-publish","format-standard","hentry","category-api"],"_links":{"self":[{"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/posts\/3144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/comments?post=3144"}],"version-history":[{"count":4,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/posts\/3144\/revisions"}],"predecessor-version":[{"id":3425,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/posts\/3144\/revisions\/3425"}],"wp:attachment":[{"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/media?parent=3144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/categories?post=3144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/tags?post=3144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}