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?
671 views Asked by John At
2
There are 2 answers
Related Questions in PHP
- How to add the dynamic new rows from my registration form in my database?
- Issue in payment form gateway
- How to create a facet for WP gridbuilder that displays both parent and child custom fields?
- Function in anonymous Laravel Blade component
- How to change woocomerce or full wordpress currency with value from USD to AUD
- General questions about creating a custom theme Moodle CMS
- How to add logging to an abstract class in php
- error 500 on IIS FastCGI but no clue despite multiple error loggings activated
- Composer installation fails and reverts ./composer.json and ./composer.lock to original content
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Laravel: Using belongsToMany relationship with MongoDB
- window.location.href redirects but is causing problems on the webpage
- Key provided is shorter than 256 bits, only 64 bits provided
- Laravel's whereBetween method not working with two timestamps
- Implementing UUID as primary key in Laravel intermediate table
Related Questions in API
- Google Sheets API - Append Request not working
- Is there really no product for docs that has these?
- How to show suggested content in response using Azure Cognitive Search?
- error message when closing current position in binance futures, using ccxt library
- How to filter API data in React Native
- I have fetched an API with JS, but the output looks really bad and I don't know how to fix it
- Session is not storing in react and Asp Dot Core Web API
- Apex charts not rendering series value, showing cannot map values of NULL
- Configure IIS to accept API calls only from API Manager, Deny from direct calls
- Problems with API return using the Axios library in NextJS
- How to query by Iteration in pyral?
- Is there a way to have a user enter a url query and have a single function filter a database?
- Cant get value in Vue from data
- Read stories/posts using instagram API
- Need To Make Minor Change To REST API Response
Related Questions in WEBSUB
- What are limits and pricing for PubSubHubbub google?
- Trying to send a request to Google WebSub by getting error hub.mode invalid
- Pubsubhubbub subscription error: "Challenge mismatch."
- What are the limitations when working with PubSubHubbub (youtube API)?
- Check if youtube channel ID is valid
- How does https://pubsubhubbub.appspot.com/ actually works and what kind of response am I expected to receive?
- A transfer error has occurred using webusb in chrome for pl2303 based device
- Know the event receive by Youtube Push Notificationy - PubSubHubbub
- Maximum value for hub.lease_seconds in PubSubHubbub
- How to calculate signature for YouTube PubSubHubbub data
- How to specify a HUB in my RSS to conform with WebSub?
- Keep getting empty notifications from PubSubHubBub
- Youtube API - is there a way to get real-time information about youtube channels like new video being uploaded?
- C# Forms - I need a way to get alerted that a feed has been updated
- How to rule out duplicate messages in Pubsub without using Dataflow and without using ACK in Python?
Related Questions in RSS-READER
- Avoid image div while parsing description tag
- I can't find the url of upwork RSS Feed
- I can't catch "media:content url" . From rss feed response in Node.js
- What's best practice for reading RSS feeds from a single machine?
- How do I scrape data from within an HTML element based on an existing URL?
- Gitlab Activity feed needs authentication
- fetch data from more than one rss feed with nextjs
- how can spilit img src form this js html variable ( this is rss that i call it )
- getting error in rss feed when adding unsplash image
- How Can I sort my parsed RSS feed by most recent?
- Howto enable RSS feed autodetection for dynamically added `<link>` tags via JavaScript
- TLDR; Does RSS-Feeds transport bulk or update?
- RSS Feeds are not getti ng update automatically
- How to display multiple RSS feeds using PHP?
- I'm using the Newsblur API and I want to export a list of all the stories in a feed to a file. But when I enter my password, I get an error
Related Questions in SUPERFEEDR
- Is there any way to generate links with rel="hub" with the feedgen package in Python?
- How can I save a Superfeedr feed to a database?
- Unable to receive RSS updates to my webhook setup using Django. Replay option sends empty POST and GET data
- Retrieving Superfeedr aggregated feeds to the node library
- Superfeedr response not working in laravel
- Subscribe using Superfeedr PubSubHubbub generating error hub.topic not found
- How can I use Superfeedr to notify my android app about an update from a Blogspot blog?
- Remove expired data from Superfeedr
- Superfeedr won't reach Parse.com callback URL
- SuperFeedr making request on EC2 private IP
- Confused about using Superfeedr to subscribe and download RSS feeds using XMPP or Pubsubhubbub
- How to integrate Parse.com with Superfeedr
- Handling duplicate notifications from superfeedr
- XMPP support in Google App Engine
- Make POST requests from Superfeedr on localhost
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?
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)
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!