{"id":30017,"date":"2014-06-11T21:27:16","date_gmt":"2014-06-11T21:27:16","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/gravitate-gforms-api-helper\/"},"modified":"2014-06-24T21:12:59","modified_gmt":"2014-06-24T21:12:59","slug":"gravitate-gforms-api-helper","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/gravitate-gforms-api-helper\/","author":12292343,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.1","stable_tag":"trunk","tested":"3.9.40","requires":"3.5","requires_php":"","requires_plugins":"","header_name":"Gravitate Gforms API Helper","header_author":"","header_description":"","assets_banners_color":"3a3a3c","last_updated":"2014-06-24 21:12:59","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.gravitatedesign.com","header_author_uri":"","rating":5,"author_block_rating":0,"active_installs":10,"downloads":1609,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":"1317578","resolution":"128x128","location":"assets"},"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":"1317578","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"938025","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"938034","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"938034","resolution":"2","location":"assets"}},"screenshots":{"1":"Link the form by adding a \"Custom API Call\". You can have multiple by separating with commas.","2":"Select which fields to send. Specify the exact field ID needed by the custom API Call."}},"plugin_section":[],"plugin_tags":[1556,33533,1655],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-30017","plugin","type-plugin","status-closed","hentry","plugin_tags-api","plugin_tags-gravitate","plugin_tags-gravity-forms","plugin_committers-gravitate"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/gravitate-gforms-api-helper_3a3a3c.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/gravitate-gforms-api-helper\/assets\/screenshot-1.png?rev=938034","caption":"Link the form by adding a \"Custom API Call\". You can have multiple by separating with commas."},{"src":"https:\/\/ps.w.org\/gravitate-gforms-api-helper\/assets\/screenshot-2.png?rev=938034","caption":"Select which fields to send. Specify the exact field ID needed by the custom API Call."}],"raw_content":"<!--section=description-->\n<p>Author: Gravitate http:\/\/www.gravitatedesign.com<\/p>\n\n<p>Description: This is Plugin Helper to allow you to easily setup an External API on Gravity Form Submissions. You can link multiple API calls to a single Gravity Form Submission. This does require a Developer to complete the API sections.<\/p>\n\n<p>How to Use it:\nhttp:\/\/wordpress.org\/plugins\/gravitate-gforms-api-helper\/other_notes\/<\/p>\n\n<h3>Requirements<\/h3>\n\n<ul>\n<li>Gravity Forms Plugin<\/li>\n<li>WordPress 3.5 or above<\/li>\n<\/ul>\n\n<h3>HOW TO USE<\/h3>\n\n<p>Once installed and Activated you will be able to go into your Gravity Forms Settings and Add in a Custom API Call.\nEx. Sales Force\n* You can create multiple calls separated by commas<\/p>\n\n<p>Once you save that field you will now be able to go into a field in the the Form Editor and go the the Advanced Tab and place in the Field Name for the API you named.<\/p>\n\n<p>Now everytime the form is submitted it will call any actions your create and submit the fields and their values.<\/p>\n\n<p>To create actions just place the below code in your functions.php file of your theme or in another plugin.\nreplace {your_api_name} with the sanitized (lowercase with underscores) API name you added to the Form Settings.\nThen place your own code in the \"Send $data to API Here\".<\/p>\n\n<pre>\nadd_action(\"ggah_submission_{your_api_name}\", \"your_function_hook_name_here_{your_api_name}\", 10, 3);\n\nfunction your_function_hook_name_here_{your_api_name} ($data, $form, $api)\n{\n    $api_failed = false;\n\n\n    \/\/ Send $data to API Here\n\n\n    \/\/ If Api Failed then set $api_failed = true;\n\n\n    \/\/ This will send a Simple Email to the Admin to notify them of the error.\n    if($api_failed)\n    {\n        if(function_exists('ggah_error_notification'))\n        {\n            $email = '';    \/\/ leave blank to use Admin Email\n            $subject = '';  \/\/ leave blank to use Default\n            $message = '';  \/\/ leave blank to use Default\n\n            ggah_error_notification($email, $api, $subject, $message);\n        }\n    }\n}\n<\/pre>\n\n<p>If using multiple calls then duplicate the code and place in your own code accordingly.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>gravitate-gforms-api-helper<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Fixed Empty values from not Submitting.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial Creation<\/li>\n<\/ul>","raw_excerpt":"This is Plugin Helper to allow you to easily setup an External API on Gravity Form Submissions","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/30017","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=30017"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/gravitate"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=30017"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=30017"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=30017"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=30017"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=30017"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=30017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}