API Import cookie to browser profile:
Request Url:
http://127.0.0.1:35000/api/v1/profile/cookies/import/webext
Request Type: POST
Name | Type | Description | required |
profileId | string | Browser profile ID | true |
body | string | cookie json (need base64 encode ) | true |
Body
x-www-form-urlencoded
{
"profileId": "86AE6678-CFA1-4A38-94C2-6265CB25C404",
"body": [
{
"hostOnly": false,
"secure": false,
"httpOnly": false,
"domain": ".xlogin.us",
"session": false,
"expirationDate": 1620743803,
"value": "Xrli9YsFVTw.0AAAEC",
"path": "\/",
"name": "CMID",
"storeId": null,
"sameSite": "unspecified"
},
{
"hostOnly": false,
"secure": false,
"httpOnly": false,
"domain": ".xlogin.us",
"session": false,
"expirationDate": 1596983803,
"value": "9960",
"path": "\/",
"name": "CMPRO",
"storeId": null,
"sameSite": "unspecified"
}
]
}
Note:
1. Enable browser automation settings and save the settings on the XLogin client. For the tutorial, please refer to the "Launch the browser automation port";
2. profileId: Please refer to the "Where can the Profile ID be Found?" tutorial or use the profile/list interface to get all profileId.