{"id":8683503,"date":"2017-01-22T07:13:54","date_gmt":"2017-01-22T07:13:54","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/receiving-json-data\/"},"modified":"2017-01-22T07:13:54","modified_gmt":"2017-01-22T07:13:54","slug":"receiving-json-data","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/receiving-json-data\/","title":{"rendered":"Receiving JSON data?"},"content":{"rendered":"<p>Hi,<br \/>\nI use a plugin to run all WordPress generated emails through SendGrid. Primarily for post notifications to subscribers.<\/p>\n<p>SendGrid will notify a URL of my choice via HTTP POST with information about events that occur as SendGrid processes my email.<\/p>\n<p>QUESTION: How do I receive that HTTP POST in WordPress?<\/p>\n<p>When someone enters an email address in my form (along with other form fields) and submits it, I want to send a test email to that address and receive the HTTP POST from SendGrid regarding the email I sent. Such as, did it get delivered.<\/p>\n<p>If the HTTP POST reveals the email was delivered, I will accept their form submittal. Otherwise, I&#8217;ll reject it and advise the user.<\/p>\n","protected":false},"template":"","class_list":["post-8683503","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8683503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8683503\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8683503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}