{"id":83331,"date":"2018-03-22T04:29:45","date_gmt":"2018-03-22T04:29:45","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/lh-webhooks-api\/"},"modified":"2018-03-22T04:29:45","modified_gmt":"2018-03-22T04:29:45","slug":"lh-webhooks-api","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/lh-webhooks-api\/","author":2531614,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.00","stable_tag":"trunk","tested":"4.9.29","requires":"3.0.","requires_php":"","requires_plugins":"","header_name":"LH Webhooks Api","header_author":"Peter Shaw","header_description":"Extends the rest api for easy use of webhooks","assets_banners_color":"988cc1","last_updated":"2018-03-22 04:29:45","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/lhero.org\/portfolio\/lh-webhooks-api","header_plugin_uri":"https:\/\/lhero.org\/plugins\/lh-webhooks-api\/","header_author_uri":"https:\/\/shawfactor.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":777,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1844674","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1844674","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1844674","resolution":"1544x500","location":"assets"},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1844674","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[1556,35804,11059,2299,34953],"plugin_category":[],"plugin_contributors":[83584],"plugin_business_model":[],"class_list":["post-83331","plugin","type-plugin","status-closed","hentry","plugin_tags-api","plugin_tags-ifttt","plugin_tags-maker","plugin_tags-rest","plugin_tags-webhooks","plugin_contributors-shawfactor","plugin_committers-shawfactor"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/lh-webhooks-api_988cc1.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin allows you to create and delete token authenticated webhook enpoints for WordPress users (as many as you need).<\/p>\n\n<p>It also comes with a programming api to define methods which is the action is taken on the data posted to said endpoints.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the entire <code>lh-webhooks-api<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Navigate to Settings-&gt;Webhooks and create endpoints<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Upload the entire <code>lh-webhooks-api<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Navigate to Settings-&gt;Webhooks and create endpoints<\/li>\n<\/ol><\/dd>\n<dt>How do I programatically define a new method for handling data posted to the webhooks?<\/dt>\n<dd><ul>\n<li>Each webhook msut have a method, this is passed to the endpoint as a GET string i.e. ?method=my_post_handler.\nWhat happens to the posted data is defined by you programically by you. An example method 'log_via_email' is defined in the code (with explanatory comments).<\/li>\n<\/ul>\n\n<p>The first step is to define the allowed methods, via the lh_webhooks_api_allowed_methods filter.<\/p>\n\n<p>The second step is to define what happens to the posted data. this is done via a variable filter, i.e. lh_webhooks_api_**** , where the **** portion of the filter name is the name of your method. in the example this is 'lh_webhooks_api_log_via_email'.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<p><strong>1.00 March 20, 2018<\/strong><br \/>\nInitial release.<\/p>","raw_excerpt":"Adds an API for adding your own webhooks in WordPress","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/83331","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=83331"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/shawfactor"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=83331"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=83331"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=83331"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=83331"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=83331"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=83331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}