Comments (4)
On the SDK itself the only change is that it now points to the v2 of our API.
The main change on the v2 of the API is regarding webhook, where we no longer have the content type JSON, which were mainly used to expose visitor data, which on the v2, it has a field for it.
from zenvia-sdk-node.
this is my code:
import * as zenvia from '@zenvia/sdk';
const client = new zenvia.Client(config.ZENVIA_API_TOKEN);
const sms = client.getChannel('sms');
const textContent = new zenvia.TextContent(content);
const response = await sms.sendMessage(from, to, textContent);
should I worry about it?
from zenvia-sdk-node.
Nope.
When sending messages (like in your code), the only changes is that there is more channel and content options.
Meanwhile, on webhook, some channels there is "minor" differences regarding information about the user (like name). You code do not seem to use webhook, but if even you do, the SMS channel will not be affected.
from zenvia-sdk-node.
Hi! I have created a small changelog, so going forward, the changes should be described in it: changelog
from zenvia-sdk-node.
Related Issues (13)
- request is deprecated HOT 1
- Please clarify how TOKEN works HOT 2
- TSLint is deprecated
- Typing and viewed in WhatsApp HOT 3
- WhatsApp Ref parameter HOT 10
- TypeError: Cannot read property 'forEach' of undefined HOT 2
- PIN code validation HOT 1
- Using WhatsApp Message Batch HOT 1
- how can I enable callbackOption ? HOT 2
- is there an endpoint to consult sms status ? HOT 1
- Install Zenvia with yarn add @zenvia/sdk HOT 2
- latest version of request is vulnerable HOT 1
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 zenvia-sdk-node.