Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

twilio node first commit #8

Merged
merged 2 commits into from
Nov 13, 2013
Merged

twilio node first commit #8

merged 2 commits into from
Nov 13, 2013

Conversation

thiseldo
Copy link
Contributor

Pull request for Twilio.com output node.

Cheers

Andrew

// module.exports = { account:'My-ACCOUNT-SID', authtoken:'TWILIO-TOKEN',from:'FROM-NUMBER' }

try {
var twiliokey = require(process.env.NODE_RED_HOME+"/settings").twilio || require(process.env.NODE_RED_HOME+"/../twiliokey.js");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should not try loading the main RED settings file directly - as it may not be the file being used... especially if node-red is being embedded.

Instead, you should use:

var twiliokey = RED.settings.twilio || require(process.env.NODE_RED_HOME+"/../twiliokey.js");

@knolleary
Copy link
Member

Just spotted you probably copied that from the imap node - which I'll be fixing in a moment.

@thiseldo
Copy link
Contributor Author

and pushbullet. Just updating now. Re-running it to make sure it still works.

knolleary added a commit that referenced this pull request Nov 13, 2013
twilio node first commit
@knolleary knolleary merged commit 336ad78 into node-red:master Nov 13, 2013
@knolleary
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants