Last active
April 12, 2018 17:40
-
-
Save deepfry/231fa3b452592e140acfd77db743d9b9 to your computer and use it in GitHub Desktop.
Post to slack using Javscript
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
$.ajax({ | |
data:'payload='+ JSON.stringify({ | |
"text":"testing" | |
}), | |
dataType:"json", | |
processData:"false", | |
type:'POST', | |
url:URL, | |
success:function(res){ | |
console.log(res) | |
} | |
}).fail(function(res){ | |
console.log(res) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment