Google Reader Feed Import - jsonp

I'm working on a social RSS reader website, and with the news that Google Reader is shutting down, we'd like to capitalize on that by providing a feature for users to automatically import their Google Reader feeds in the same way that they might import contacts. I can't seem to find a good API for this.
The one solution I found, sending a request to http://www.google.com/reader/api/0/subscription/list, doesn't work, because we have to be authenticated to receive results. This means that either the user sends their google accounts password to us, obviously unacceptable, or we do the request client side. However, that API doesn't seem to support jsonp, and so we're unable to do a cross-site query.
Does anyone have any suggestions or links I've overlooked?

I am working on similar feature for my app, and i got the list of all the subscriptions (using the following URL) making a GET call with the access_token obtained via authenticating user using OAuth 2.0 for google reader API.
https://www.google.com/reader/api/0/subscription/list?output=json&access_token=USER_ACCESS_TOKEN

You can use OAuth so that users give you permission to execute that server side request on behalf of them.
If you are developing with Java you can use readr (a Google Reader client I have developed).

Related

How can I create OAuth based login with Open AI api?

I'm trying to build an app using GPT3 APIs and would like users to login to the app using OpenAI's credentials so as to use their account for GPT3 APIs requests, however there is no support for 3rd party login so far in Open AI's documentation. Anyone has ideas on how this can be done?
As far as I'm concerned Open ai does not have an oauth API like Google (for example). The only idea that occurs to me is to ask the user for their Open ai Api key and make the requests through that key

API authentification token

I have recently learnt about API and started using them for learning purpose.
I have tried the twitter API,but there is something I don't understand
Process of sending tweets with an API
Get your API token (need to tell a lot of informations and wait some time before it's validated)
Make http post request with the token to 'https://api.twitter.com/1.1/statuses/update
Tweet posted successfully
Process of sending tweets with your browser:
Create an account (don't need that much information, it's instant)
Login, write a tweet
When you click on submit, a http post request is sent (to the same url that above) and there is a Bearer token in the request header
Tweet posted successfully
So that leads to my question, why should I contact twitter to have an API token, if I can have one just by creating an account ?
How do twitter back-end know that the request is coming from a browser (normal use) or if it's coming from a third part app ?
The direct answer to your question is that the only approved way (inside of the Terms of Service) of sending Tweets programmatically is to use the official API.
There are a variety of ways in which websites and web services can detect browser automation or usage, and that's not really a question for a programming community like Stack Overflow.
What exactly are you trying to do, and why would you choose not to use the supported official API?

Google Authentication via PHP Client Library/oAuth2

I have searched long and far for this on Google Identity documentation but my question seems to be out of it's scope (https://developers.google.com/identity/protocols/OAuth2).
This is what I have:
I have an app that is using Google's PHP Client library to authenticate a user via oAuth2. My application stores the retrieved token & refresh token from a user. I am able to use this token and refresh token to pull in information from various Google API's (Drive, Calendar, Mail, etc). I am also storing a cookie in browser to keep the user logged in to the application when the user closes the browser. I have created a simple way for users to login to the application via a QR code that matches up their stored token and refresh token. After the first login they are able to simply use a badge to login to the application.
This is what I want but don't know how to do
When a user logs into the application with their QR badge everything work perfectly (I am still able to pull in anything via the PHP Client Library/Google API's), however when a user goes to Gmail, Drive, or other Google service, Google is asking them to login (it's because they are not technically authenticated with accounts.google.com (only my application)). Is there a way to programmatically authenticate a user to accounts.google.com via a stored token/refresh token?
I was searching for a proper way to implement authentication of users with Google accounts into an app I'm developing. One thing led to another and I found this:
https://github.com/thephpleague/oauth2-google
They have a few implementations depending on how you may wish to implement OAuth2 (via separate repositories). I believe this directly answers your question, albeit 3.4 years later. Hopefully it will help someone else who is looking for this info.

Embed credentials in Yammer.com api

I want to use an external software Alteryx to access the api so I can crawl some JSON data. When I call https://www.yammer.com/api/v1/messages.json, it keeps on popping "HTTP/1.1 403 Forbbiden".
I guess there is something wrong with the authentication. Does anybody know how to embed the credentials in the URL? Or is there any other ways to authenticate so an external software can access?
I can do it perfectly with normal browser after logged in.
Thanks
Yammer's Rest API for retrieving data implements OAUTH 2.0. This is because any application trying to access the data is making the request as an "App" which will then have access to a user's specific data.
Yammer's OAUTH flow is decribed here: https://developer.yammer.com/docs/oauth-2
I do not yet know of an easy way to implement the authentication using anything other than development within a browser for this process.
You may be better off exporting the json messages to a file and then importing into your external software.

Import user accounts data from other websites with user sign-in

dealsgoround.com and citypockets.com access user accounts and their daily deals from livingsocial.com and other daily deal websites. These websites ask users to give their credentials to sign them in to respective websites and then import account details. LivingSocial and other deal website don't provide API access to user accounts.
I also want such access to other websites and import data from there. But I am unable to find out the backend process by which dealsgoround.com and citypockets.com import data from Groupon and LivingSocial etc.
By now I am able to find out that web crawlers/spiders can be used to scrap data from web pages. But I am not sure web crawlers can be useful in a scenario where we need user sign in and the page urls are encrypted or at least are dynamically generated urls.
Please help me and suggest me a way to do this. If crawlers are the solution to this please provide links to some web crawler APIs that I can use in my .net application.
Thanks
Atif
The ability to sign in using alternate credential such as Facebook or Google ID is called Open Auth or OAuth (pronounced Oath).
Incidentally you should not import the data without the users express permission and be vigilent of security issues.
There is a lot of documentation available and a lot of it rather heavy. The best place to start is to read specification RFC 5849
The OAuth website is also useful http://oauth.net
I was able to find the answer... Yes web crawler is the solution in this scenario.
We can use PHP, ASP.net or any other server side scripting language to send an httppostrequest with post parameters (user_name/password). This will authenticate (sign in) the user. After sign-in we can read the contents of any url with user information who has been signed-in.
Note: In my case this isn't unauthorized access to user accounts as users provide their credentials themselves to import their data from deal websites as in dealsgoround.com and citypocket.com