Mário Valney
Forum Replies Created
-
Forum: Plugins
In reply to: [CF7 to Webhook] Integrate with FlodeskAnd my CF7 array shows as follows:
The example in settings ignores code customization.
When I set my URL to:
https://api.flodesk.com/v1/subscribers/[email]/segments
The user isn’t added to the segement, but if I do
https://api.flodesk.com/v1/subscribers/email@email.com/segments
I was able to confirm the plugin is working.
Debuging the hook url it’s requesting
https://api.flodesk.com/v1/subscribers/teste%40gmail.com/segments
because the parameter is url encoded.I guessed Flodesk is not allowing URL encoded and found this:
https://community.make.com/t/flodesk-integration-help-needed/16396/4
A partner asked, so it’s nice to check:
- This subscriber is already set up on Flodesk? To add to a segment, they must already have been created using the subscriber module.
- And their email address is exactly as the one you are passing?
- You’ll need to add the Subscriber. However, you may be able add them to Segments in the same module.
But… If the problem is the encoded value, you can change it:
add_filter( 'ctz_hook_url_placeholder', 'flodesk_ctz_hook_url_placeholder', 10, 4 ); function flodesk_ctz_hook_url_placeholder( $encoded_value, $placeholder, $key, $data ) { if ( $key === 'email' ) { return $data[ $key ]; // Ignoring encoded value } return $encoded_value; }
Forum: Plugins
In reply to: [CF7 to Webhook] Integrate with FlodeskPlease check:
https://wordpress.org/support/topic/change-data-before-send
Let me know if you need more help.
Forum: Plugins
In reply to: [CF7 to Webhook] Change data before sendEXAMPLES:
OTHER HOOKS:
You can try
ctz_post_request_args
to get more options:Forum: Plugins
In reply to: [CF7 to Webhook] Integrate with FlodeskHi. How are you?
In new version 3.0.0 you can use URL placeholders.
https://wordpress.org/support/topic/use-webhook-url-placeholders/
Forum: Plugins
In reply to: [CF7 to Webhook] Integrate with FlodeskI guess you can use it:
https://wordpress.org/support/topic/manipulate-json-before-send/
Forum: Plugins
In reply to: [CF7 to Webhook] Integrate with FlodeskHi!
By now it’s not possible to have placeholders in URL (added this as a feature request).
But you can filter it. For example:
<?php add_filter( 'ctz_hook_url', 'argosantifex_ctz_hook_url', 20, 2 ); function argosantifex_ctz_hook_url( $hook_url, $data ) { $replace = null; if ( isset( $data['id'] ) ) { $replace = sanitize_text_field( $data['id'] ); } if ( ! $replace && ! empty( $data['email'] ) ) { $replace = sanitize_text_field( $data['email'] ); } if ( is_null( $replace ) ) { return $hook_url; } return str_replace( '{id_or_email}', urlencode( $replace ), $hook_url ); }
Forum: Plugins
In reply to: [CF7 to Webhook] ⛔️ Error Message on Submission 😱Hi.
Please do not use older versions from plugins or WordPress.
FYI: I just checked the plugin is working with the last version of WordPress and CF7 and Zapier.
Forum: Plugins
In reply to: [CF7 to Webhook] Integrate with FlodeskHi! How are you?
(I’m writing back from my phone, so I’m sorry for poor formatting…)
About renaming fields, you can add a alias for every field as explained in Readme (plugin’s homepage).
About not sending a field, I’m afraid it’s not possible right now without some code. I would be happy to provide a snippet when I get my notebook back but it’s really necessary? I’ve never integrated with Flodesk but, in general, it’s not a problem to have more fields been sent.
Forum: Plugins
In reply to: [CF7 to Webhook] ⛔️ Error Message on Submission 😱I don’t know. Seems a problem in Zapier.
Please check their support or try to recreate the webhook.
Forum: Plugins
In reply to: [CF7 to Webhook] ⛔️ Error Message on Submission 😱Hi. Your webhook is not working.
I tried it with Postman and didn’t work:
Forum: Plugins
In reply to: [CF7 to Webhook] ⛔️ Error Message on Submission 😱The webhook is from Zapier.
I see… That’s weird as I check my local website against Zapier.
FYI, this is your (CURL) request:
curl -X 'POST' 'https://webhook.site/2198745b-1485-4b4e-8dfd-fe1020025f24' -H 'content-length: 145' -H 'connection: close' -H 'content-type: application/json; charset=UTF-8' -H 'accept-encoding: deflate, gzip' -H 'accept: */*' -H 'host: webhook.site' -H 'user-agent: WordPress/6.4.1; https://pinpoint.finance' -d $'{"YourName":"Test for M\u00e1rio ","Email":"mario@valney.com","tel-636":"07946584494","Message":"Has this worked M\u00e1rio? 2","Acceptance":"1"}'
What is your Zapier’s webhook?
Forum: Plugins
In reply to: [CF7 to Webhook] ⛔️ Error Message on Submission 😱Use this webhook and make a request.
https://webhook.site/2198745b-1485-4b4e-8dfd-fe1020025f24
I’ll see the requisition and past here for you.
Then we should check your real webhook (is it personal? your sistem? any known software?)
Forum: Plugins
In reply to: [CF7 to Webhook] ⛔️ Error Message on Submission 😱No. This is for check we have a conflict between any plugins.
If we don’t have a problem with the new webhook (we know works) I guess your problem is with your webhook. Please check it’s returning 200 with your request (you can get the request from webhook.site).
Forum: Plugins
In reply to: [CF7 to Webhook] ⛔️ Error Message on Submission 😱Sorry. I mean deactivate all except CF7 and this to check we have any conflict.
Forum: Plugins
In reply to: [CF7 to Webhook] ⛔️ Error Message on Submission 😱Would you please try:
- Change the webhook to some from “https://webhook.site/”. If it works, sounds like a webhook problem.
- Deactivate all plugins (CF7 and this) and check it works. If it works, reactivate one by one to find the conflict.