https://github.com/antoniopresto/zenvia-meteor
Simple Zenvia SMS integration for Meteor
https://github.com/antoniopresto/zenvia-meteor
Last synced: 3 months ago
JSON representation
Simple Zenvia SMS integration for Meteor
- Host: GitHub
- URL: https://github.com/antoniopresto/zenvia-meteor
- Owner: antoniopresto
- Created: 2015-06-29T18:27:51.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-16T02:27:55.000Z (almost 10 years ago)
- Last Synced: 2025-01-31T01:53:27.680Z (4 months ago)
- Language: CoffeeScript
- Homepage:
- Size: 148 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Zenvia SMS integration
```meteor add presto:zenvia```
## Sending a simple SMS
### Zenvia account:
```javascript
Zenvia.password = '12345';
Zenvia.username = 'xico_mineiro';
```> Also accepts environment variables: ```ZENVIA_PASSWORD``` and ```ZENVIA_USERNAME```
### Sending:
```javascript
var args = {
to: "551199999999",
msg: "Teste " + Date.now()
};var response = Zenvia.send(args);
```or
```javascript
Zenvia.send(args, function(response) {
console.log(response.error);
console.log(response.body);
});
```> [http://docs.zenviasms.apiary.io/#introduction/](http://docs.zenviasms.apiary.io/#introduction/)