0

I am looking to create a CSV from a string that I can send to a Qualtrics API to run a call. The call I am trying to run is at this URL:

https://api.qualtrics.com/reference#start-response-import

The call asks for a CSV file, but I don't know how to give it a CSV; I only know how to download that CSV using

var CSVAsString = '1,2,3'
var CSV = 'data:attachment/csv,' + encodeURIComponent(CSVAsString)

How would I send a CSV instead of a string of text that can be used to download the CSV? (I don't have trouble sending it, just have trouble creating a CSV document that the APIs can read)

1 Answer 1

0

Duh it should be

'data:text/csv'

NOT

'data:attachment/csv'

Answered my own question!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.