CURL --output command in Servicenow
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2020 03:03 PM
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.
Labels:
- Labels:
-
Integrations
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2020 10:10 PM
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