Skip to content

Instantly share code, notes, and snippets.

@caioagiani
Created August 14, 2022 14:58
Show Gist options
  • Save caioagiani/180e4f042161911ed1eefcd913637133 to your computer and use it in GitHub Desktop.
Save caioagiani/180e4f042161911ed1eefcd913637133 to your computer and use it in GitHub Desktop.
import axios from "axios";
const options = {
method: 'GET',
url: 'https://api.mobizon.com.br/service/Message/SendSmsMessage',
params: {
apiKey: 'BR_API_KEY'
},
headers: {
cookie: 'PHPSESSID=lcr84bu8621skf2298e55rus35',
'Content-Type': 'application/json'
},
data: {recipient: '551199900000', text: 'API SMS Mobizon'}
};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment