I am trying to distribute an email using the API. It seems to work when on command line but not in my lamer script. My final curl is:
CURL -X POST https://sjc1.qualtrics.com/API/v3/distributions -H 'X-API-TOKEN:XXXXXXXXX' -H 'Content-Type:application/json' -d '{
"header" :
{
"fromEmail" : "bbb@gmail.com",
"fromName" : "Balaji Golla",
"replyToEmail" : "bbb@gmail.com",
"subject" : "Aagain from today - 12/04..."
},
"message" :
{
"libraryId" : "UR_jjjjjjjjj",
"messageId" : "MS_asdfasdf"
},
"recipients" :
{
"contactid" : "MLRP_fasdfasdf",
"mailingListId" : "ML_aasdfasdf"
},
"sendDate" : "2020-12-5T10:36:35Z",
"surveyLink" :
{
"expirationDate" : "2020-12-12T10:36:35Z",
"surveyId" : "SV_asdfasdfasdf",
"type" : "Multiple"
}
}'
Be the first to reply!
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.