IFTTTWebhook icon indicating copy to clipboard operation
IFTTTWebhook copied to clipboard

How to pass a string value with spaces

Open 14geronimo opened this issue 7 years ago • 2 comments

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?

14geronimo avatar Jan 20 '19 12:01 14geronimo

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.)

14geronimo avatar Jan 23 '19 17:01 14geronimo

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.)

14geronimo avatar Jan 24 '19 21:01 14geronimo