Created
October 31, 2017 15:42
-
-
Save georgioupanayiotis/084d55c040e80059d91adcef8f1a5bda to your computer and use it in GitHub Desktop.
Create multiple zendesk tickets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(x=0; x<500; x++) { | |
var title = "Ticket #" + x; | |
var subject = "Test ticket #" + x; | |
var body = "This is test ticket #" + x; | |
$.ajax({ | |
url: '/api/v2/tickets.json', | |
contentType:'application/json', | |
type: 'POST', | |
data: JSON.stringify({"ticket": {"subject": subject , "comment": { "body": body }}}) | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment