pranavms13 / whatsapp-node-api

A Simple NodeJS API Wrapper for WhatsApp
Other
475 stars 183 forks source link

Can't send Messages #13

Closed ismaelivan closed 3 years ago

ismaelivan commented 3 years ago

Hello, good day!,

Thanks by share your api

i try test your api with postman, but i recived this error

dd

How pass the params?

With the get methods i havent problem

dd2

Thanks in advance

pranavms13 commented 3 years ago

the request body is wrong. you are sending [{"message":"test"}] which is an array

the body accepts only a single object with a message key try sending {"message":"test"}