Comments (6)
I have tested.
var catapult = require("node-bandwidth");
catapult.Client.globalOptions.userId = "u-xxxxx";
catapult.Client.globalOptions.apiToken = "t-xxxxx";
catapult.Client.globalOptions.apiSecret = "xxxxxx";
catapult.Message.create( {to: "+12520000000", from: "+1910000000", text: "test"}, function(err, message){
if(err){
return console.error("Error: %s", err);
}
console.log(message);
});
And
var catapult = require("node-bandwidth");
var client = new catapult.Client("u-xxxxx", "t-xxxxx", "xxxxx");
catapult.Message.create(client, {to: "+12520000000", from: "+1910000000", text: "test"}, function(err, message){
if(err){
return console.error("Error: %s", err);
}
console.log(message);
});
Both pieces of code work fine.
node-bandwidth
is 1.0.8, node
is 0.12.0. Tested on Mac OS X 10.10.3 and Debian Linux 8
from node-bandwidth.
Could you try it again with node 0.10.x? It isn't working for me either. I
see the Travis build uses 0.10, but there might be something odd going on.
I'll put a stack trace in the issue with my node and client versions too
within a couple of hours.
On May 6, 2015 2:30 AM, "avbel" [email protected] wrote:
I have tested.
var catapult = require("node-bandwidth");
catapult.Client.globalOptions.userId = "u-xxxxx";
catapult.Client.globalOptions.apiToken = "t-xxxxx";
catapult.Client.globalOptions.apiSecret = "xxxxxx";
catapult.Message.create( {to: "+12520000000", from: "+1910000000", text: "test"}, function(err, message){
if(err){
return console.error("Error: %s", err);
}
console.log(message);
});And
var catapult = require("node-bandwidth");
var client = new catapult.Client("u-xxxxx", "t-xxxxx", "xxxxx");
catapult.Message.create(client, {to: "+12520000000", from: "+1910000000", text: "test"}, function(err, message){
if(err){
return console.error("Error: %s", err);
}
console.log(message);
});Both pieces of code work fine.
node-bandwidth is 1.0.8, node is 0.12.0. Tested on Mac OS X 10.10.3 and
Debian Linux 8β
Reply to this email directly or view it on GitHub
#8 (comment)
.
from node-bandwidth.
Node 0.10.38. Same result
from node-bandwidth.
Here is a globally configured client example. It works.
Here is a non-globally configured client example. It also works.
I'm using node v0.10.38 on Ubuntu 15.04. Thanks for the thoroughness in checking out @avbel !
from node-bandwidth.
I was basing my previous comment off memory.
from node-bandwidth.
Okay, this actually is working for me now. I'm not sure what was different when it didn't work before. Thanks guys!
from node-bandwidth.
Related Issues (20)
- Recording FileFormat for create/edit call missing
- Add rate limiting features to endpoints
- Downloading mms image files HOT 5
- BXML Phone Number Verb HOT 4
- Media download binary data issue HOT 17
- Filter messages by deliveryState 'not-delivered' fails with error HOT 1
- branch: local-v2 message.sendGroup promise error HOT 1
- Response errors don't go up the stream HOT 2
- Media tests break on node v8.1.2 HOT 1
- Trouble with SDK Honoring Promises HOT 2
- Conference:createMember returns different object than declared in docs
- Canβt purchase a specific number HOT 2
- Problem with Media.download HOT 6
- vNext API suggestions HOT 2
- Dashboard Auth - Do not use main password, rather use a token
- Are there release notes for 3.0.0? HOT 2
- New Release HOT 1
- Updated for V2 HOT 1
- Unnecessary Production Dependency: Gulp
- No release notes with v4.0 release
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-bandwidth.