Skip to content

Instantly share code, notes, and snippets.

@anotherxx
Last active October 16, 2018 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anotherxx/a43c5a27f1294fbf9544ccbad1d90d77 to your computer and use it in GitHub Desktop.
Save anotherxx/a43c5a27f1294fbf9544ccbad1d90d77 to your computer and use it in GitHub Desktop.
static registerCallBack(personName, personPhone) {
return axios.post(`${BASE_URL}/api/client/v2/callback_messages`, {
name: personName,
phone: personPhone
}).then(resp => resp.data)
.catch(err => {
throw err
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment