API Automation

API Execute Script

API Execute Script:


Request Url:


http://127.0.0.1:35000/api/v1/profile/ExecuteScript


Request Type: POST


NameTypeDescriptionrequired
profileIdstringBrowser profile IDtrue
bodystringjs code (need base64 encode)true


Body
x-www-form-urlencoded


{
    "profileId": "056FEE67-A1E2-412B-866F-78DEA5AF2D22",
    "body": "js code..."
}



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.