Skip to content

Instantly share code, notes, and snippets.

View T1mmyK0's full-sized avatar

T1mmyK0

View GitHub Profile
@T1mmyK0
T1mmyK0 / api_autoresponder.php
Last active March 9, 2024 17:28
Example of how to process AutoResponder requests with your web server 🤖 Add this php file to your web server and enter the complete URL in AutoResponder (e.g. https://www.example.com/api_autoresponder.php).
<?php
// required headers
header("Access-Control-Allow-Origin: *");
header("Content-Type: application/json; charset=UTF-8");
header("Access-Control-Allow-Methods: POST");
header("Access-Control-Max-Age: 3600");
header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With");
// add this php file to your web server and enter the complete url in AutoResponder (e.g. https://www.example.com/api_autoresponder.php)