how to use google feed api to detect feeds updates - php

Because I run a blog aggregator website which checks a large list of RSS feeds for new posts every hour so I will be happy if its possible to use google feed api or Google AJAX Feed API instead of making the cron jobs to read the whole feed to know if its updated or not.
like this link text

You can use the Google Feed API, however instead of polling the feed source every hour you will still need to poll the google feed API every hour. It doesn't notify you of feed updates. If you want to be notified when to update feeds, then you should look into using a ping server, http://en.wikipedia.org/wiki/Ping_blog to determine when feeds are updated so that you know it is time to fetch the feed again. Not all feeds use a ping server, but it might help you for those that do.

As Nanek said, the Google Feed API won't notify you when a feed is changed... for this you'll have to use the PubSubHubbub protocol or services like Superfeedr which is a Google Feed API alternative.

Related

Can we get previous tweet using Twitter Streaming API?

I am working with Twitter REST API [PHP] for a month. Now I try STREAMING API because REST API has several downsides.
I use fennb/phirehose to work with Streaming API.
But after several trial and error, I realise that I can't got past/previous tweets using Streaming API.
I run the script
I post tweet
console/cmd will catch my tweet immediately
I stop the script
I post tweet
I run the script
console not return any result.
The problem is, in programming and server, sometimes shit happen. Let's call it server down or lost internet connection. I will never get all previous tweet which posted when my server down. (I have 40 search term and more later).
So. i wanna ask:
Can we get previous tweet using Streaming API?
How to prevent/solve this case (console throw error, server restart, internet down, etc)?
Twitter's basic streaming API is realtime and about 1% of the actual firehouse of Tweets. You cannot retrieve older Tweets via the stream, and would need to fallback to the basic REST API to check for anything missed in the event of disconnection.
Twitter's enterprise data APIs include historical PowerTrack which can let you get older Tweets, as well as a replay capability in the event of disconnection, but these APIs are commercial.

Twitch API Live Callback Service

I am integrating the Twitch user account API into my platform and had a look through the API to see if there was a callback section of some sort to send an update to my server when a user starts streaming, but I can't seem to find any reference for one.
Is there currently any services that offer this sort of thing? If not, what would be the best way of running regular checks on all of my users in my Database to see when they are streaming, of course doing this alone would kill the server with database queries, so I'm stuck as to where to go now.
What I am looking to do is receive a callback and then create a post in a social feed that the user has started streaming.
Based on the discussions at the links below, the API doesn't support webhooks and won't anytime soon. Instead, they expect you to use polling. Basically you would set up a worker process that makes requests periodically, such as every five minutes, then creates appropriate social feed posts, etc. You can batch them together if you have a bunch of channels to check (exaple from from the github issue):
https://api.twitch.tv/kraken/streams?channel=riotgames,dota2ti,machinima,esltv_hearthstone
https://github.com/justintv/Twitch-API/issues/211
https://discuss.dev.twitch.tv/t/notifications-using-twitch-api-and-php/1009

Count subscribers of RSS feed

After Google decided to shut down the API of feedburner, I've unsuccessfully searched the web for another way of displaying the current subscribers of an RSS feed.
Is there any way of doing this in PHP without the old feedburner API?

Get number of RSS Subscribers for a website

I need to get the number of rss subscribers for a website. Say http://blog.twitter.com. How do I do that in PHP? Please help thanks. Google RSS subscribers.
Just tracking the calls to your rss feed via PHP will not give you accurate results as google reader (or other webbased services) ges the feed only once for all subscribers.
You can use an external Service like Feedburner (feedburner.google.com) which gives you subscriber metrics. You basically just proxy your feed through their system.

twitter msg automatically post to facebook

Am not sure there is a feature like ,
automatically update twitter tweet in to facebook ,
May i know is there any like automatic update ,
For Should i use API or CURL , or anything else ,
Thanks
just i find one thread from google
link text
Is there any thing else then this thread...
You can do it using the twitter application on facebook. There is more helpful information here
There are a couple existing ways to do this. As Shadi suggested you can use the official twitter app. or if you would like more control on what is sent to facebook you can use tweelay.net (full disclosure: i am the sole developer of tweelay)
If you wanted to roll your own:
I suggest using the Twitter Streaming API backed up by a standard statuses/home_timeline call from a cron job every minute or so to grab tweets. then with the tweets you can send them to facebook using the Graph API.
There are several existing libraries that can be used to get you started.

Categories