How to pass a string value with spaces
When I'm trying to trigger a webhook with a value with a space in it, that doesn't work. IFTTT doesn't even register that my applet was called:
- e.g.:
webhook.trigger("Hello World!");
When I remove the space, my applet runs like clockwork:
- works fine:
webhook.trigger("Hello_World");
I've tried variations, to no avail:
- with single quotes:
webhook.trigger("'Hello World!'"); - with escaped double-quotes:
webhook.trigger("\"Hello World!\"");
When using the Webhooks Service Documentation page on IFTTT, I can trigger an Event successfully by entering Hello World! in the value1 field.
I suspect this is therefore this library itself which doesn't support spaces, rather than Webhooks?
I have worked on a fix for this, which is a better approach (I think) than the one attempted on the urlencode branch. Struggling to create a pull request though, do I need specific permissions for this? (I'm no Git expert so this might be a silly question.)
Issue fixed by pull request #9. When the patch is accepted, this issue can be closed.
(Thanks to the excellent How To Contribute To A Project On Github page by @qpleple for the no-nonsense guide to GitHub pull requests.)