CURL --output command in Servicenow

ark6
Mega Guru

Hi,

I am using below CURL command to download a file from third-party which is working fine using CURL.

curl -X GET --user "apikey:{api-key}" \--output "test.docx" \

"https://api.us-south.language-translator.watson.cloud.ibm.com/instances/{instance-name}/v3/documents/{document_id}/translated_document?version=2018-05-01"

However, I am not finding an option of how to write the --output command in ServiceNow to download the file or at-least convert it to B64 & save as attachment.

Please help.

@Chuck Tomasi @Göran Lundqvist Please let me know if you have some idea

5 REPLIES 5

Yes, using attachment api to attach it to a ticket is the next step. However, the first step is to GET the file from IBM watson which is not working as I am not able to use the - - output command as in CURL