Important: This module is no longer maintained
npm install twilio feathers-twilio --save
In progress
Copyright (c) 2016
Licensed under the MIT license.
0.1.0
- Initial release
Copyright (c) 2019
Licensed under the MIT license.
A Feathers service for talking to the Twilio API
License: MIT License
Important: This module is no longer maintained
npm install twilio feathers-twilio --save
In progress
Copyright (c) 2016
Licensed under the MIT license.
0.1.0
Copyright (c) 2019
Licensed under the MIT license.
Twilio Chat is one of the latest products from twilio. And would be a great addition to this repo.
https://www.twilio.com/chat
We use it extensively in my company. Though the legacy systems still run on python for it, we're planning a migration to NodeJS in some time.
I'd be happy to contribute to this repo. Though I feel the current dependencies are quite outdated, and I will have to use the latest twilio-node client for it. Issue is I don't have any experience of working with SMS or calls on twilio, so maybe someone else will have to do the migration for them as I upgrade to the latest client for twilio chat.
There are few other things in my mind to discuss.
@daffl @ekryski Let me know if there is any interest for this.
Add documentation or just write how to create Service of twillio to send SMS .
This service is using an outdated version of the Twilio API library. I've looked a little bit into the new API, but I'm really not sure how to update this service to be compatible with the Feathers Common API, so I'm collecting some perhaps useful information here in hopes someone else might take a look.
Twilio's API library repository docs showing how to use this.list
:
this.list
uses this.each
internally:
sms.js
Here I'm trying to handle pagination based off the mongoose service and what Twilio supports:
class Service {
constructor (options = {}) {
if (!options.accountSid) {
throw new Error('Twilio `accountSid` needs to be provided');
}
if (!options.authToken) {
throw new Error('Twilio `authToken` needs to be provided');
}
this.from = options.from || null;
this.paginate = options.paginate || {};
const twilio = new Twilio(options.accountSid, options.authToken);
this.client = twilio.messages;
}
find (params) {
const paginate = (params && typeof params.paginate !== 'undefined') ? params.paginate : this.paginate;
const result = this._find(params, !!paginate.default,
query => filterQuery(query, paginate)
);
return result;
}
_find (params, count, getFilter = filterQuery) {
const { filters, query } = getFilter(params.query || {});
let opts = {};
if (count) {
// Handle $limit
if (typeof filters.$limit !== 'undefined') {
opts = {
limit: filters.$limit,
pageSize: this.paginate.max
};
} else {
opts = {
limit: this.paginate.default,
pageSize: this.paginate.max
};
}
}
return new Promise((resolve, reject) => {
return this.client.list(opts).then(resolve).catch(reject);
});
}
// Note: I'm really not sure about this code or how to connect Twilio to Feathers.
I'm not sure to what extent this idea of pagination can be supported?
Seeing as the new Twilio API is "streaming" I don't know how that changes things.
statusCallback
Users might want to be able to pass extra options like a statusCallback
URL:
EDIT:
4.3.10
to 4.3.11
.This version is covered by your current version range and after updating it in your project the build failed.
@feathersjs/express is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 7 commits.
2d95bfd
chore(release): publish v4.3.11
079937c
chore(package): Add npm funding field (#1678)
ffe7cf3
fix(authentication-oauth): Allow hash based redirects (#1676)
e1939be
fix(authentication): Retain object references in authenticate hook (#1675)
1ebc58e
chore(package): update @types/config to version 0.0.36 (#1669)
43c654c
Add GitHub sponsorship
b0f5653
chore: Update version and changelog
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
4.3.10
to 4.3.11
.This version is covered by your current version range and after updating it in your project the build failed.
@feathersjs/feathers is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 7 commits.
2d95bfd
chore(release): publish v4.3.11
079937c
chore(package): Add npm funding field (#1678)
ffe7cf3
fix(authentication-oauth): Allow hash based redirects (#1676)
e1939be
fix(authentication): Retain object references in authenticate hook (#1675)
1ebc58e
chore(package): update @types/config to version 0.0.36 (#1669)
43c654c
Add GitHub sponsorship
b0f5653
chore: Update version and changelog
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
4.3.10
to 4.3.11
.This version is covered by your current version range and after updating it in your project the build failed.
@feathersjs/errors is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 7 commits.
2d95bfd
chore(release): publish v4.3.11
079937c
chore(package): Add npm funding field (#1678)
ffe7cf3
fix(authentication-oauth): Allow hash based redirects (#1676)
e1939be
fix(authentication): Retain object references in authenticate hook (#1675)
1ebc58e
chore(package): update @types/config to version 0.0.36 (#1669)
43c654c
Add GitHub sponsorship
b0f5653
chore: Update version and changelog
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
🚨 You need to enable Continuous Integration on all branches of this repository. 🚨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didn’t receive a CI status on the greenkeeper/initial
branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.
If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial
branch in this repository, and then remove and re-add this repository to the Greenkeeper integration’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.
4.3.10
to 4.3.11
.This version is covered by your current version range and after updating it in your project the build failed.
@feathersjs/socketio is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 7 commits.
2d95bfd
chore(release): publish v4.3.11
079937c
chore(package): Add npm funding field (#1678)
ffe7cf3
fix(authentication-oauth): Allow hash based redirects (#1676)
e1939be
fix(authentication): Retain object references in authenticate hook (#1675)
1ebc58e
chore(package): update @types/config to version 0.0.36 (#1669)
43c654c
Add GitHub sponsorship
b0f5653
chore: Update version and changelog
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.