Slack Webhooks with Angular $http POST
<p>I am trying to learn some basic Slack API stuff and am starting with building a webhook for an app I am building. </p>

<p>I have the following code:</p>

<pre><code>$scope.postToSlack = function(){
    $http({
        url: 'https://hooks.slack.com/services/xxx/xxxx/xxxxx',
        method: "POST",
        payload:{"text": "This is a line of text in a channel.\nAnd this is another line of text."}
    })
    .then(function(response) {
        console.log(response)
    }, 
    function(response) {
        console.log(response)
    });
}
</code></pre>

<p>But keep getting a 500 error saying No Payload Received.</p>

<p>Any ideas on why this wouldn't work?</p>