Skip to content

Instantly share code, notes, and snippets.

@brendanc
Created February 4, 2015 16:55
Show Gist options
  • Select an option

  • Save brendanc/6b3352c3f17459290933 to your computer and use it in GitHub Desktop.

Select an option

Save brendanc/6b3352c3f17459290933 to your computer and use it in GitHub Desktop.
Create an email test for a single email app int the Litmus reseller api via curl
#!/bin/bash
sed 's/litmusapp/iphone5s/g' 'SingleEmailTestingApp.json' > temp-test.json;curl -i -u username:password -X POST https://previews-api.ltimus.com/api/v1/EmailTests -H "Accept: application/json" -H "Content-Type: application/json" --data @temp-test.json
{
"TestingApplications": [
{
"ApplicationLongName": "",
"ApplicationName": "litmusapp",
"AverageTimeToProcess": 0,
"BusinessOrPopular": false,
"Completed": null,
"DesktopClient": false,
"FoundInSpam": null,
"FullpageImage": null,
"FullpageImageContentBlocking": null,
"FullpageImageNoContentBlocking": null,
"FullpageImageThumb": null,
"FullpageImageThumbContentBlocking": null,
"FullpageImageThumbNoContentBlocking": null,
"Id": 0,
"PlatformLongName": "",
"PlatformName": "",
"RenderedHtmlUrl": null,
"ResultType": 0,
"SpamHeaders": null,
"SpamScore": 0.0,
"State": null,
"Status": 0,
"SupportsContentBlocking": false,
"SupportsSpamScoring": null,
"WindowImage": null,
"WindowImageContentBlocking": null,
"WindowImageNoContentBlocking": null,
"WindowImageThumb": null,
"WindowImageThumbContentBlocking": null,
"WindowImageThumbNoContentBlocking": null
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment