- ๐ Hi, This is @piusalfred
- ๐๏ธ I love open source.
- ๐จโ๐ป Software Engineer (Backend)
- ๐น๐ฟ
twitter @thepiusalfred
golang wrapper for whatsapp cloud api
License: MIT License
twitter @thepiusalfred
Some messages are complex and there is no single way of building them. Examples of these are template messages
and interactive messages
.
Impemetation of QR codes management
Create documentation for its use.
I am passing button with index 0 in template message but in request payload its omitted.
buttonParams := []*models.TemplateParameter{{
Type: "text",
Text: "1234",
}}
components := []*models.TemplateComponent{
{
Type: "button",
SubType: "url",
Index: 0,
Parameters: buttonParams,
},
}
Generated payload
{"messaging_product":"whatsapp","to":"+***********","recipient_type":"individual","type":"template","template":{"name":"templ1","language":{"code":"en_US"},"components":[{"type":"button","sub_type":"url","parameters":[{"type":"text","text":"1234"}]}]}}
I debugged issue and found that its because of `omitempty` defined in TemplateComponent struct.
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.