Comments (9)
@lulucious can you share the exact code you are running so we can try and replicate?
from vonage-node-sdk.
nexmo.message.sendSms sender, recipient, message, {}, (err,nexmoRes)->
console.log err
console.log "-"
console.log nexmoRes
from vonage-node-sdk.
@lulucious mind fleshing this out a bit more? I need some code I can run as is, so I need to know what sender
and message
are.
from vonage-node-sdk.
i tried with string values and got the same error msg : sender:"hello" , recipient:"33622222222", message:"hello"... I know it sounds basic but it's not working!
Works perfectly with request...
from vonage-node-sdk.
@lulucious what happens if you just do:
nexmo.message.sendSms "lulucious", "33622222222", "Hello World"
??
from vonage-node-sdk.
@lulucious just tried this and it works fine:
Nexmo = require('nexmo')
nexmo = new Nexmo({apiKey: 'your_api_key', apiSecret: 'your_secret'})
nexmo.message.sendSms "lulucious", "your_number", "Hello World"
from vonage-node-sdk.
If the TO number is a non UK number e.g. a US number then the FROM value
must be a Nexmo virtual number for your account.
from vonage-node-sdk.
@leggetter thanks for reminding me. Still works fine for me though:
Nexmo = require('nexmo')
nexmo = new Nexmo({apiKey: 'key', apiSecret: 'secret'}, {debug: true})
nexmo.message.sendSms "my_number", "33622222222", "Hello World", (err, res) ->
console.log(res)
returns
{ 'message-count': '1',
messages:
[ { to: '33622222222',
'message-id': '070000000F6411EA',
status: '0',
'remaining-balance': '12.33580000',
'message-price': '0.05940000',
network: '20810' } ] }
from vonage-node-sdk.
Closing due to inactivity
from vonage-node-sdk.
Related Issues (20)
- Not able to install Vonage/server-sdk HOT 9
- packages/verify/lib/interfaces/VerifyControlError.ts contains a broken import path HOT 5
- Documentation missing/unclear HOT 8
- Latest beta release uses deprecated "request" package, which has an open CVE HOT 3
- How can I create new User with this SDK??? HOT 1
- 401 Error when sending Whats App message HOT 5
- error Couldn't find package "@vonage/verify2@^1.3.0" required by "@vonage/server-sdk@^3.0.12" on the "npm" registry. HOT 3
- Typescript SyntaxError: Unexpected token '.' during compilation HOT 1
- WebsocketEndpointObject incorrect type
- Request timeout option is broken HOT 1
- Importing @vonage/server-sdk causes TypeScript errors because of incorrect imports in @vonage/voice HOT 14
- Error while trying to import library HOT 3
- [question] How to authenticate to the video package? HOT 2
- Request timeout option is still broken HOT 1
- Cannot send Whatsapp auth template message HOT 4
- readme example does not compile in TS HOT 2
- Messages CLI not working HOT 3
- Vonage.sms.verifySignature doesn't work with inbound SMS message HOT 3
- [Bug]: Issue with npm install HOT 1
- [Bug]: Error: secretOrPrivateKey must be an asymmetric key when using RS256 HOT 8
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 vonage-node-sdk.