Github Dashboard-Feed via API or RSS? - github

When loading the github.com page, I see a dashboard feed showing a list of "pushed" / "starred" updates for all of my followed repos.
When checking the Network tab on Chrome, I can see that this feed comes from this endpoint:
https://github.com/dashboard-feed
How do I get this data via the github api? Is it also available via RSS?
Thanks

I don't think it will be available via RSS because to access this type of endpoint it requires authentication.
So what I think is, you can create your own activity feed with the help of individual RSS feeds (Atom feeds in case of GitHub) of the people's activity you want to get notified.
For example see codeSTACKr's RSS feed: https://github.com/codeSTACKr.atom
You can also use this API https://api.github.com/users/USERNAME/following to get all the following people (so you don't have to add individual user names without authentication).
For example see codeSTACKr's following list: https://api.github.com/users/codeSTACKr/following

Inspired by Rahul's reply which is very close, I did some googling and found this article on how to build a python crawler for Github's API which mentioned this recent events endpoint...
https://api.github.com/users/headwinds/received_events
...which lists the star events in order and you could use that rebuild a dashboard replacing the username.

Related

Share content to an company page on linkedin using api v2

I'm trying to publish some content in a company page on Linkedin using api v2. Reading the docs I've found two ways to share content, using ugcPosts and shares API. I successfuly shared content on a USER page using the ugcPosts. But, I cannot share a content in a COMPANY page using the ugcPosts. It looks like that using shares API I can share content in a company page. But the same documentation says that SharesAPI will be deprecated soon.
I have two questions. First, there is a way to post content to a company page using ugcPosts? If not, it is safe to use the shares API since it will deprecated soon?
You have to apply for the linkedin partner program to get the manage pages permissions.
https://business.linkedin.com/marketing-solutions/marketing-partners/become-a-partner/marketing-developer-program

Facebook api supports saved items?

Does the Facebook api allow you to pull the information from saved articles on Facebook to download and read it in another app?
No, not anymore. It used to be accessible until early 2016.
See also: Facebook API to read bookmarked items.
As for a manual solution, see Scrape your Facebook saved links ( scroll to the bottom of the list, paste a js to console → it generates a text list of urls). I'd guess one ccould automate that further, via a headless browser instance.
As of now they don't have an api for saved items. Read this techcrunch post for more details .
I’ve asked Facebook whether websites and Page admins will get
analytics on how often they’re Saved, which could help refine their
content and promotion strategies, and better understand what to share
on Facebook. It tells me “Not at this time.” There are currently no
plans for an API or external Save button that developers could use to
let people add to their Saved list from outside of Facebook. You also
can’t natively export from Save to other read-it-later apps, which
would be nice.

Stop receiving real time updates for a Facebook page

I have followed the instructions on this page:
https://developers.facebook.com/docs/reference/api/page/#realtime
But I can't get the Deleting an App section to work.
This is the case with both the PHP SDK and with Facebook's Graph API Explorer.
First I add an app to get real time updates by POSTing to
/<page_id>/tabs
with the app_id parameter set to my App ID. I also pass an Access Token for the page.
This returns 'true' in the Graph Explorer, and '1' with the PHP SDK, which I understand means success in both cases. I know this is true as I have received data to my real time endpoint.
However, I also need to be able to delete these subscriptions, per page.
The documentation suggests this is done by performing a DELETE to
/<page_id>/tabs/app_<app_id>
Again passing the same Access Token as before.
In both the Graph Explorer and the PHP SDK, this returns:
(#100) Tab is not installed or not removable: <The same app_id I passed>
I've seen a couple of other people reporting the same issue, but apparently no solutions. If anyone has managed to figure this out, I would hugely appreciate your thoughts.
There are two possible alternatives:
Go to https://www.facebook.com/{page_id}/settings?tab=apps and manually remove the application from the page. If the app is not there, it has already been removed.
Or:
You can use the Real-time Update documentation and use a DELETE API call to unsubscribe the page from real-time updates. However, if your application is used with more than once page, it will also unsubscribe the other pages.

Wall content on my website

What I want is to be able to put the wall content of my facebook page in my website. I want to include the posts and comments of others and mines.
I have 2 questions:
Activity feed:
Here is what the FB docs say :
<fb:activity
site="jerrycain.com"
action="critiqueapp:despise,critiqueapp:review,critiqueapp:grade">
</fb:activity>
Where can I get a list of all possible actions? Can I specify that I want posts and comments?
OpenGraph:
I was able to get an access token yesterday, that is not valid anymore. I was able to see a json object of the wall content. What is the best way to have this permanently?
Activity feed social plugin is using OpenGraph actions in action field so the complete list is simply not available due to possibility to create custom actions for every application, there is several Built-in Action Types:
Watch - Video, Movie, TV Show, or TV Episode
Read - Article
Currently specifying like also works but it's not documented. Aside of those pre-defined actions you may Define Actions. Neither posts or comments is listed as supported actions in documentation.
Access tokens are expired and need to be extended if you need longer life-time of a token. Also you may use application access_token to access public posts from your page (without need to get the token from user)...

How to access a feed with historic items (like in Google Reader) of a given feed url without authentication?

One feature of Google Reader is that it maintains a history of all items of a subscribed feed and you have access to those items when you keep scrolling down the list.
In contrast if you visit the original feed from a blog or a news site, the feed will only contain the latest 10-20 posts, but Google Reader can show you more than that.
This is a very handy feature and I was wondering if there is a kind of API available to access the RSS or ATOM Feed as displayed by Google Reader.
I came across this site that describes an unofficial API for Google Reader:
http://code.google.com/p/pyrfeed/wiki/GoogleReaderAPI
And it includes the API method I was looking for:
http://www.google.com/reader/atom/feed/url of feed?n=number of items (default 20)
This works – however the drawback is that you need to be authenticated first.
I am looking for a simple solution to access a feed with all historic items of a given feed url from Google without the need to be authenticated. The idea is to use this as an input for further processing (e.g. in Yahoo Pipes)
You can instead use http://www.google.com/reader/public/atom/feed/<escaped_feed_url> to get at this data without needing authentication.