Hello,
   Here is some sample code that I used to get the notification data.  I
have put my implementation on hold, but if this helps someone else, that is
great.



if (strcmp($_GET['hub_mode'], "subscribe") == 0 ) {
  // Make sure that the verification code
  if (strcmp($_GET['hub_verify_token'], "verify") == 0 ) {
    error_log("verify matched");
    echo($_GET['hub_challenge']);;
  }
  else {
    header("HTTP/1.0 404 Not Found");
  }
} else {
  error_log(print_r($GLOBALS['HTTP_RAW_POST_DATA'], TRUE));

  // Get the xml from the notification
  $notificationData = $GLOBALS['HTTP_RAW_POST_DATA'];

  notifyPubsubSubcribers($notificationData);

}


--Paul

On Thu, Jan 14, 2010 at 6:48 AM, DDLuis <[email protected]> wrote:

> Hi Paul,
>
> I have same problem, and can't figure to solve this!!!
>
> I use RSS with FeedBurner with PingShot activated, to publish to the
> Hub: http://pubsubhubbub.appspot.com/
> I publish the RSS in the Hub.
> But in the subscriber side have problems to get notifications.
>
> I make a script in PHP and I can subscribe, but notifications are the
> problem.
>
> Is possible to you post a source code of subscriber side to figure how
> I can solve this issue?
>
> Regards,
> DDLuis
>
> On Oct 10 2009, 5:08 pm, pwestbro <[email protected]> wrote:
> > Hello,
> >    I am trying to write a client to subscribe to feed update
> > notifications.  This code is able to subscribe, and receives the
> > verification call successfully.  The problem arrises when the feed is
> > updated.  My coded is called, but no parameters are passed in, either
> > with GET or POST.  This makes it impossible to know which feed is
> > actually updated.
> >
> > This happens when I use the reference server athttp://
> pubsubhubbub.appspot.com/.
> > The feed that I am subscribing to is:
> http://news.google.com/news?pz=1&cf=all&ned=us&hl=en&topic=h&num=3&ou...
> >
> > Any help that you can give would be appreciated.
> >
> > Thanks,
> >
> > Paul
>



-- 
Paul Westbrook
[email protected]

Reply via email to