Very simple wrapper to the Slack Incoming Message API endpoint.
Very simple wrapper to the Slack Incoming Message API endpoint. Suitable for use in projects that need to push messages to a Slack channel. See https://api.slack.com/ for more information about how to set up a Slack app., (*1)
url, (*2)
The url of your Incoming Notification endpoint in your Slack app. See the api link above for more info., (*3)
message, (*4)
The text message to send to the Slack channel., (*5)
responseCode, (*6)
The HTTP response code returned by slack., (*7)
setURL, (*8)
Sets the url endpoint., (*9)
setMessage, (*10)
Sets the message to be posted to Slack., (*11)
setResponseCode, (*12)
Sets the response code. Call this after the 'send' method to store the HTTP response code from the response., (*13)
getURL, (*14)
Retrieves url endpoint., (*15)
getMessage, (*16)
Retrieves the message., (*17)
getResponseCode, (*18)
Retrieves the response code of the HTTP response from Slack., (*19)
send, (*20)
Uses Curl to post to your incoming hook url., (*21)