<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Send info of webhook to api php in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Send-info-of-webhook-to-api-php/m-p/364299#M35853</link>
    <description>&lt;P&gt;I was doing something dumb...&amp;nbsp; Super simple... This will get you data in PHP:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;$json &lt;/SPAN&gt;&lt;SPAN&gt;= file_get_contents(&lt;/SPAN&gt;&lt;SPAN&gt;'php://input'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;error_log(&lt;/SPAN&gt;&lt;SPAN&gt;$json&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;You can do fancy stuff with it after putting it in an array:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;$json &lt;/SPAN&gt;&lt;SPAN&gt;= file_get_contents(&lt;/SPAN&gt;&lt;SPAN&gt;'php://input'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;$response&lt;/SPAN&gt;&lt;SPAN&gt;=json_decode(&lt;/SPAN&gt;&lt;SPAN&gt;$json&lt;/SPAN&gt;&lt;SPAN&gt;, TRUE&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Just a foreach will work.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Aug 2020 20:00:26 GMT</pubDate>
    <dc:creator>starrcopaul</dc:creator>
    <dc:date>2020-08-24T20:00:26Z</dc:date>
    <item>
      <title>Send info of webhook to api php</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Send-info-of-webhook-to-api-php/m-p/264457#M23639</link>
      <description>&lt;P&gt;i have workflow and send webhook when i create a ticket, this info send to a page web external (php) but no recieve nothing. I recieve with "print_r($_POST)"&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 22:57:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Send-info-of-webhook-to-api-php/m-p/264457#M23639</guid>
      <dc:creator>ariel_cu4tro</dc:creator>
      <dc:date>2019-04-10T22:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Send info of webhook to api php</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Send-info-of-webhook-to-api-php/m-p/264902#M23668</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/91750"&gt;@ariel_cu4tro&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you give us some more details about how you're receiving the webhook data? I think I might have found the workflow that you're referring to (ID 2276654). I'm seeing 142 enrollments and when I look at the history I'm seeing succesful POSTs for the webhooks. So I'm wondering if there's something about the way you're receiving the data that's just not picking up the payload. Or if there's another workflow that I should be looking at, let me know. And are you able to receive the webhooks from other workflows, but just not this one?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- Leland&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 16:36:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Send-info-of-webhook-to-api-php/m-p/264902#M23668</guid>
      <dc:creator>lscanlan</dc:creator>
      <dc:date>2019-04-12T16:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Send info of webhook to api php</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Send-info-of-webhook-to-api-php/m-p/363226#M35747</link>
      <description>&lt;P&gt;Different person, same problem.&amp;nbsp; I can see the data using TCPdump:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;15:24:15.899792 IP (tos 0x0, ttl 64, id 57974, offset 0, flags [DF], proto TCP (6), length 1098)&lt;BR /&gt;10.11.101.120.50596 &amp;gt; 10.11.101.170.80: Flags [P.], cksum 0x1dd5 (correct), seq 1:1047, ack 1, win 502, options [nop,nop,TS val 1910695502 ecr 4253394573], length 1046: HTTP, length: 1046&lt;BR /&gt;POST /webhooks/hubspot/ HTTP/1.1&lt;BR /&gt;Host: www1.xxxxxx.xxx&lt;BR /&gt;X-HubSpot-Signature: 708ec3d35c156d2198f2f0ea9afa238f53703a8fa7df7656c9f59ae9181d909d&lt;BR /&gt;X-HubSpot-Signature-Version: v1&lt;BR /&gt;Content-Type: application/json&lt;BR /&gt;User-Agent: HubSpot Connect 2.0 (&lt;A href="http://dev.hubspot.com/" target="_blank"&gt;http://dev.hubspot.com/&lt;/A&gt;) - WebhooksExecutorDaemon-executor&lt;BR /&gt;X-HubSpot-Timeout-Millis: 10000&lt;BR /&gt;X-Trace:&lt;BR /&gt;accept: */*&lt;BR /&gt;X-Forwarded-For: 54.174.55.139&lt;BR /&gt;X-Forwarded-Host: webhooks.xxxxx.com&lt;BR /&gt;X-Forwarded-Server: webhooks.xxxxx.com&lt;BR /&gt;Connection: Keep-Alive&lt;BR /&gt;Content-Length: 525&lt;/P&gt;&lt;P&gt;[{"eventId":303578749,"subscriptionId":xx48xx,"portalId":xxxxx,"appId":xx42xx,"occurredAt":1597868655244,"subscriptionType":"contact.propertyChange","attemptNumber":0,"objectId":xxxxx,"propertyName":"phone","propertyValue":"3143212222","changeSource":"CRM_UI"},{"eventId":1340858813,"subscriptionId":xx48xx,"portalId":xxxxx,"appId":xx42xx,"occurredAt":1597868655244,"subscriptionType":"contact.propertyChange","attemptNumber":0,"objectId":xxxx,"propertyName":"lastname","propertyValue":"Hoch","changeSource":"CRM_UI"}][!http]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried var_dump'ing, printf'ing, json_decode'ing, foreach looping, etc, etc.&amp;nbsp; I'm at a loss as to what else to try.&amp;nbsp; At this point I'm just trying random solutions found online for interpretting JSON POST payloads in PHP.&amp;nbsp; No joy..... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have a &lt;EM&gt;simple&lt;/EM&gt; example for receiving webhook data with PHP?&amp;nbsp; Currently all I seem to be getting is the content length, which isn't terribly helpful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm probably just doing/missing something dumb...&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 20:32:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Send-info-of-webhook-to-api-php/m-p/363226#M35747</guid>
      <dc:creator>starrcopaul</dc:creator>
      <dc:date>2020-08-19T20:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Send info of webhook to api php</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Send-info-of-webhook-to-api-php/m-p/364299#M35853</link>
      <description>&lt;P&gt;I was doing something dumb...&amp;nbsp; Super simple... This will get you data in PHP:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;$json &lt;/SPAN&gt;&lt;SPAN&gt;= file_get_contents(&lt;/SPAN&gt;&lt;SPAN&gt;'php://input'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;error_log(&lt;/SPAN&gt;&lt;SPAN&gt;$json&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;You can do fancy stuff with it after putting it in an array:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;$json &lt;/SPAN&gt;&lt;SPAN&gt;= file_get_contents(&lt;/SPAN&gt;&lt;SPAN&gt;'php://input'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;$response&lt;/SPAN&gt;&lt;SPAN&gt;=json_decode(&lt;/SPAN&gt;&lt;SPAN&gt;$json&lt;/SPAN&gt;&lt;SPAN&gt;, TRUE&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Just a foreach will work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 20:00:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Send-info-of-webhook-to-api-php/m-p/364299#M35853</guid>
      <dc:creator>starrcopaul</dc:creator>
      <dc:date>2020-08-24T20:00:26Z</dc:date>
    </item>
  </channel>
</rss>

