cmdotcom / text-sdk-javascript Goto Github PK
View Code? Open in Web Editor NEWJavascript SDK to send messages with CM.com
Home Page: https://www.cm.com/communications-platform/
License: MIT License
Javascript SDK to send messages with CM.com
Home Page: https://www.cm.com/communications-platform/
License: MIT License
Can you bump axios to fix this vulnerability? GHSA-wf5p-g6vw-rhxx
See https://github.com/cmdotcom/text-sdk-java/issues/25 for the same issue.
Looking at this code: Array of channels
You can notice Telegram is missing while its added to other sdk's.
We've got a report, that in newer version of node.js, http
doesn't contain the ClientResponse
anymore.
See this issue for extra information:
request/request#678
Request is also used as dependency, which is out-of-service for a while now.
Expected result:
Message should be sent as SMS anytime you call sendTextMessage. I'm seeing in the console that the message is being sent as an MMS.
I think the cause is that I previously sent an MMS and CM is somewhere remembering that my allowedChannels
is ["MMS"]
.
I'll submit a pull request shortly.
This package depends on request
which
request
should be replaced by an alternative.
The SDK is throwing the response when a request fails, while an error is expected.
const send = async () => {
try {
const client = new CM.MessageApiClient('token')
const result = await client.createMessage().send()
} catch (e) {
console.log(e) // this is a http response
throw new Error(e.body.messages[0].messageErrorCode, e.body.messages[0].messageDetails)
}
}
why WhatsApp interactive not implemented?
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.