Whatsapp-cmb account node

Hello,
i'm using this node and it's fine, author Daniel doing a great job for this (thanks for this), it works perfectly as proponed.
if you dont'know it see here or from node-red palette manager:
https://github.com/PfisterDaniel/node-red-contrib-whatsapp-cmb
Now i need to use this node with phone number & api key from tex inut field node from ui, but in the whatsapp node these account information are placed in configuration node, not from variable.
Any suggestion / idea on how to do ?

thank

Hi @robertobuti

Looking at the Node's source code - it does not allow passing Creds in a message, it can only be set at Node level (in this case the Account Node).

This will need to be raised as a feature request with the author.

With that said, you can actually achieve this if you want to go about it yourself with the added benefit of Learning Node RED at the same time :nerd_face:

[{"id":"0a0bbe2cf8be2537","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"7e94b257fac58d73","type":"function","z":"0a0bbe2cf8be2537","name":"Encode","func":"let URI = `https://api.callmebot.com/whatsapp.php?`\nURI += `phone=${msg.payload.phone}`\nURI += `&text=${encodeURIComponent(msg.payload.message)}`\nURI += `&apikey=${msg.payload.apiKey}`\nURI += `&source=nodered`\n\nreturn {\n    url: URI\n}\n\n","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":290,"y":115,"wires":[["3ca73dbf9197dba2"]]},{"id":"b155c33874bbf572","type":"inject","z":"0a0bbe2cf8be2537","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"phone\":\"000000\",\"message\":\"Hello, World\",\"apiKey\":\"xxxxxx\"}","payloadType":"json","x":135,"y":115,"wires":[["7e94b257fac58d73"]]},{"id":"3ca73dbf9197dba2","type":"http request","z":"0a0bbe2cf8be2537","name":"","method":"GET","ret":"obj","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":305,"y":190,"wires":[["43ca70dcb26bb108"]]},{"id":"43ca70dcb26bb108","type":"debug","z":"0a0bbe2cf8be2537","name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":530,"y":190,"wires":[]}]
1 Like

Fine,
it's a good workaround , i play on this.
then i will propone a improvement suggestion on githut to Daniel.
Thanks :grinning:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.