Created
July 24, 2018 10:10
-
-
Save anthonybudd/b9ee8a95839b141f9bece1c0fc462160 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
axios({ | |
url: 'localhost:7777/api/v1/channel/1/messages', | |
method: 'post', | |
data: { | |
message_id: '2kkun2k98fkxhfu8sf2444', | |
message: 'echo', | |
type: 'text', | |
channel: 'presence-lexi-2', | |
channel_id: 1 | |
}, | |
}).then(function (response) { | |
if (typeof onSuccess === 'function') onSuccess(err) | |
}) | |
.catch(function (err) { | |
if (typeof onFailure === 'function') onFailure(err) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment