I am trying to use the PSHB protocol to notify me of my Google alerts. I use the code found here . However, it is not clear to me how to implement a callback (or endpoint).
Can someone provide a trivial example showing how I can access the data that POSTed sent to my endpoint?
A (slightly modified) google code snippet is below:
<?php
include("subscriber.php");
$hub_url = "http://pubsubhubbub.appspot.com";
$callback_url = "http://www.example.com/mycallback.php";
[[Edit]]
I have added some pseudo-codes below to help clarify the question further ...
<?php
$pubsub_post_vars = $_POST[WHAT_NAME_AM_I_LOOKING_FOR];
$feed_id = $pubsub_post_vars[SOME_VARIABLE]
$feed_title = $pubsub_post_vars[ANOTHER_VARIABLE]
$contents = $pubsub_post_vars[YET_ANOTHER_VARIABLE]
$author = $pubsub_post_vars[YET_ANOTHER_VARIABLE_1]
$perma_link = $pubsub_post_vars[YET_ANOTHER_VARIABLE_2]
$pub_date = $pubsub_post_vars[YET_ANOTHER_VARIABLE_3]
?>
, () , , RSS/ATOM, POSTED. , , , , , ... ..