By following these steps, U-xer will trigger the specified scenario each time Windows starts up.
1. Retrieve the Scenario Run Curl Request:
• Use the Scenario Run curl request from the API documentation page to trigger the scenario. You can refer to the API documentation for detailed instructions.
• API Documentation: U-xer API Documentation
Example Curl Command:
curl -X 'GET' \
'https://gateway.u-xer.com/api/Scenario/b7a2f014-11c0-416e-ae06-aff509fd6269/run' \
-H 'accept: */*' \
-H 'Authorization: Bearer eyJhbG……..'
2. Convert the Curl Command to a Windows Batch File:
• Add @echo off at the top of the file.
• Add ^ at the end of each line to indicate line continuation.
• Add “-k” after curl command to dismiss Certificate issues.
• Open Notepad, paste the modified command, and save the file with a .bat extension (e.g., MyBatchFile.bat).
• Ensure the file format is .bat.
Example Batch File:
@echo off
curl -k -X GET ^
"https://gateway.u-xer.com/api/Scenario/b7a2f014-11c0-416e-ae06-aff509fd6269/run" ^
-H "accept: */*" ^
-H "Authorization: Bearer eyJhbG……."
3. Place the Batch File in the Windows Startup Folder:
• Press Win + R, type shell:startup, and press Enter.
• Move the .bat file to the Startup folder.