asbell
Forum Replies Created
-
The reason why I knew it was your plugin is when I disabled it everything was fine again. I am happy to record my screen so you can see
I added the header in my first example.
Here is what I copied from the receiving app
THIS WAS IN THE HEADER
———————-
{
‘content-type’: [
‘application\/x-www-form-urlencoded’
],
‘content-length’: [
‘391’
],
‘connection’: [
‘close’
],
‘referer’: [
‘https:\/\/putp.flexie.io\/listener\/f719b3e223c19a79954a540742605fb2\/5027ca5a586ae33703becf03d4beb5e9’
],
‘accept-encoding’: [
‘deflate, gzip’
],
‘accept’: [
‘*\/*’
],
‘user-agent’: [
‘WordPress\/4.9.8; https:\/\/halfgenius.wpengine.com’
],
‘host’: [
‘putp.flexie.io’
]
}THIS WAS IN THE PAYLOAD
———————-
{
‘{\’cid\’:\’28882\’,\’permalink\’:\’https:\\\/\\\/halfgenius_wpengine_com\\\/?post_type’: ‘topics’,
‘#038;p’: ‘28882\’,\’slug\’:\’future-what-if-i-dont-want-to-fix-everything-before-selling-do-i-have-to-fix-everything\’,\’title\’:\’FUTURE: What if I don\\u2019t want to fix everything before selling? Do I have to fix everything?\’,\’excerpt\’:\’\’,\’modified\’:\’August 25, 2018 9:07 am\’,\’source_type\’:\’topics\’,\’source\’:\’wp_putp\’}’
}{
“cid”: “26535”,
“permalink”: “https://halfgenius.wpengine.com/about-us/”,
“slug”: “about-us”,
“title”: “About Us”,
“excerpt”: “About Jonathan Asbell”,
“modified”: “August 27, 2018 8:51 am”,
“source_type”: “page”,
“source”: “wp_putp”
}Here is the data sent
Request Details permalink
URL POST https://webhook.site/a9dd2366-f043-4a29-8224-b9c1c8a3b1ba
Host 35.193.95.153
Date 2018-08-27 12:51:53
ID 6f57dd72-783c-4cf2-b526-198faa59f3e4
Headers
content-length 223
connection close
content-type application/json
referer https://webhook.site/a9dd2366-f043-4a29-8224-b9c1c8a3b1ba
accept-encoding deflate, gzip
accept */*
user-agent WordPress/4.9.8; https://halfgenius.wpengine.com
host webhook.site
{“cid”:”26535″,”permalink”:”https:\/\/halfgenius.wpengine.com\/about-us\/”,”slug”:”about-us”,”title”:”About Us”,”excerpt”:”About Jonathan Asbell”,”modified”:”August 27, 2018 8:51 am”,”source_type”:”page”,”source”:”wp_putp”}Here is what the support people at the receiving app side said about the request
_____________Checked by details your workflows, and found some different issues in different parts as following:
Please check the payload, as the payload is not json, I pushed a json payload as following in order for you to have a working example:
{
‘cid’: ‘25640’,
‘permalink’: ‘https:\/\/halfgenius.wpengine.com\/referral-agent-library\/’,
‘slug’: ‘referral-agent-library’,
‘title’: ‘AGENT \u2013 Referral Agent Library’,
‘excerpt’: ‘short’,
‘modified’: ‘August 26, 2018 6:01 pm’,
‘source_type’: ‘page’,
‘source’: ‘wp_putp’
}
And The excerpt field was empty
Sorry, let me explain better.
1) I have content that I wrote inside WordPress and customers in a CRM
2) The content is stored as 1 of 9 post types, and may be associated with any of 4 collections. Pods is behind the majority of it.
3) I keep the metadata related to my content within my CRM so that it can run logic and workflows based off of that.
4) Whenever a specific Post Types change, I want that change reflected in my CRM. This plugin is updating the content metadata in my CRM whenevr it changesPayload
{“cid”:”25640″,”permalink”:”https:\/\/halfgenius.wpengine.com\/referral-agent-library\/”,”slug”:”referral-agent-library”,”title”:”AGENT \u2013 Referral Agent Library”,”excerpt”:””,”modified”:”August 26, 2018 6:01 pm”,”source_type”:”page”,”source”:”wp_putp”}Well yes I understand that as it is written today it cannot do that. However, as I mentioned the ability to trigger on Draft of a list of Post Types, on Update of a list of post types, and on Publish of a list of post types makes our work easier and your plugin more powerful
RE-Confirming that shortcodes are not working with update, draft, and publish triggers on PODS types
Just tested it with a POD and it worked WITHOUT using shortcodes, and when I “Drafted” it the webhook ran 2x
Ok I just verified this again. When I send to a url that IS NOT a shortcode it works, and in fact when its Draft is sends it 2x. When I add the shortcode it does not work, and the setting is unchecked for stripping shortcodes. This is for a “Page”, which is standard WP type. FYI I am putting the shortcode in the URL’s field https://drive.google.com/open?id=1geTqhtIcAFm1lTbcLmIaX_5fht4Vmnn-
@sc0ttkclark Yes! Love it when the big boys get involved! Scott I am using this to send several PODS metadata into a CRM. Whenever the POD is published, Drafted, or updated it should trigger this gentleman’s webhook and update the CRM. Its not triggering in some cases, it appears as though shortcodes are not executing, and its not sending metadata in the right format in some cases. I will record some screen shots and post for everyone. This plugin has great middleware potential and is a tighter integration than Zapier and without relying in a 3rd party.
Im using the current config
I have your notification plugin triggering and then sending to another application using Json. I will post snapshots of the configuration. the support people at the other application are telling me that it’s only coming in as text