I need to generate RSS feed and get title and urls of the posts and so on. I decided to use Superfeedr for it. So in this situation, I'm a subscriber in Superfeedr. There is callback (the subscriber URL) field to get data, but I don't know what should be written in callback file. I researched the net for example code, but I found nothing about example code. BTW, I want to do this process in PHP. So if you know what should I need write to this file, please comment.
What should be written in callback file of Superfeedr?
669 Views Asked by John At
2
There are 2 best solutions below
Related Questions in PHP
- php Variable name must change in for loop
- register_shutdown_function is not getting called
- Query returning zero rows despite entries existing
- Retrieving *number* pages by page id
- Automatically closing tags in form input?
- How to resize images with PHP PARSE SDK
- how to send email from localhost using codeigniter?
- Mariadb max Error while sending QUERY packet PID
- Multiusers login redirect different page in php
- Imaginary folder when I use "DirectoryIterator" in PHP?
- CodeIgniter + XDebug: debug only working in the main controller, index() function
- PHP script timeout when I use sleep()
- posting javascript populated form to another php page
- AJAX PHP - Reload div after submit
- PHP : How can I check Array in array?
Related Questions in API
- SuiteCRM how to retrieve all account related contacts
- how do i submit a pastebin or pastee from an android app and get the url back
- BigCommerce PHP API delete Category which contains products
- Interact with chrome bookmarks outside of extensions
- purchase individual items and subscriptions in the same PayPal REST API transaction
- youtube api v3 insert comments
- Youtube api v3 duration
- Responding to an Office 365 event invite via REST
- Convert youtube video to mp3 using Quick MP3 API
- How to real-time monitor the emails?
- Laravel - Fractal - Using Find() in transformer file- is it correct or can it be done more efficiently?
- return data from a Azure API json
- Accessing Picasa Web API using PHP
- RAML multivalued form parameter
- TestFlight API and stats with as3
Related Questions in WEBSUB
- Adding pubsubhubbub link tag to Atom feed
- Pubsubhubbub on Tumblr
- convert rss feed into real time email
- http://pubsubhubbub.appspot.com/subscribe 407 authenticationrequired
- What should be written in callback file of Superfeedr?
- What does pubsubhubbub mean for a front-end developer?
- Pubsubhubub to get "POST" response from the hub
- Handling PubSubHubbub Subscriber POST notifications into Custom Post Type WordPress
- Is PubSubHubbub automatically supported for every Feedburner feed
- Pubsubhubbub guaranteed delivery
- RSS pubsubhubbub implementation
- Something like pubsubhubbub that does not depend on google app engine
- Pubsubhubbub library for NodeJs
- PubSubHubBub in Java: can't subscribe
- pubsubhubbub - What is the difference between sync and async when sucribing to a feed?
Related Questions in RSS-READER
- RSS Feed Reader Shown error while uploading feeds
- Synchronize Digg Reader and Feedly
- How to retrieve feed from Facebook when Facebook stopped supporting rss feed?
- showing RSS feeds on public website, how expensive is that?
- Why list view lines are white after refresh?
- How can I programmatically/dynamically create data pipelines that include workers using Kafka and Java?
- Unable to show feed data after clicking ion-item - Ionic 2
- Find rss feed by search query
- How digg reader finds the feed url[s] for a given site?
- RSS Feed Search Engine
- Android Storing RSS feed parsed data in a database for offline use
- Yahoo YQL Query feed reader not working
- Ajax,PHP,Javascript rss Feed Reader Application
- Audio Podcast Feed Reader Service
- Google Chrome Extension: Notification System, RSS Reader
Related Questions in SUPERFEEDR
- What should be written in callback file of Superfeedr?
- Can't get Superfeedr callback response in CakePHP
- How to use EventMachine(superfeeder-ruby gem) within a Rails controller?
- How can I save a Superfeedr feed to a database?
- Pubsubhubbub library for NodeJs
- Unable to receive RSS updates to my webhook setup using Django. Replay option sends empty POST and GET data
- Confused about using Superfeedr to subscribe and download RSS feeds using XMPP or Pubsubhubbub
- Remove expired data from Superfeedr
- Make POST requests from Superfeedr on localhost
- How can I use Superfeedr to notify my android app about an update from a Blogspot blog?
- Subscribe using Superfeedr PubSubHubbub generating error hub.topic not found
- SuperFeedr making request on EC2 private IP
- Retrieving Superfeedr aggregated feeds to the node library
- XMPP support in Google App Engine
- Python and Visual Studio needed to install a Node.js module (Superfeedr Node.js wrapper)
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
John, I think you got it... which is good. Now, what to write in your PHP: this callback url (your PHP file) will be called in 2 different cases:
I'm no PHP person, but I'll dscribe the algorithm for you
To differentiate between the two, you just have to look at the type of request. If it's a GET request, then, it's the verification of intent, and if it's a POST request, then it's the notification of new content.
If it's the verification of content, you just have to echo the hub.challenge provided as a GET param (I believe
echo $_GET['hub.challenge'];should work). You should also verify that you really want to the subscription, but that the logic of your app and I don't know it (most people just look up the$_GET['hub.topic']in their database and if it's there, echo the challenge. If not, echo something else.If it's the notification of new content, it's a bit more complex. You have to access the BODY of the HTTP request (again, not sure how PHP does it, but I'm sure somebody can help), then, parse it to extract the title and urls, and handle them as you would want (most people will save that in their databases).
I hope this helps!