Created
March 30, 2017 11:21
-
-
Save kaweesi/ca8351addaa6313f4a0969168213dc06 to your computer and use it in GitHub Desktop.
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
var settings = { | |
"async": true, | |
"crossDomain": true, | |
"url": "http://82.196.9.250:8080/api/dataElements", | |
"method": "POST", | |
"headers": { | |
"authorization": "Basic a2F3ZWVzaTpSb2NraWVjYXNoMDA5NjE0", | |
"content-type": "application/csv", | |
"cache-control": "no-cache", | |
"postman-token": "5a2e223a-a044-43c0-322e-0d368ec7dcbf" | |
}, | |
"data": "name,shortName,code\ntestN1,testsN1,code1" | |
} | |
$.ajax(settings).done(function (response) { | |
console.log(response); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment