Google+ API: Can I get friends' private information? - authorization

I'm testing Google+ API v1.
I kepp fail to get my friends' personal information with the APIs with the authorization in the sandbox at the reference page.
I found the APIs in the documentation page, https://developers.google.com/+/api/latest/people/get,
and I understood that I can get my friends' personal information if these are open to me.
Is it google's policy that I can only retrive public data regardless of the circular relation between me and my friend, or do I need any other authorization more than plus.login and plus.me.
Please help me, if you are familiar with Google+ APIs.
Thanks.

The current API only allows you to get public information about any user. Even if they have permitted the data to you, if it is not available to everyone, it won't be available in the API.

Related

linkedin api v2: "Not enough permissions to access" for /people

My question is similar for Linkedin v2 api: Not enough permissions to access: GET /countriesV2, LinkedIn V2 api: Not enough permissions to access /me GET, Not enough permissions to access /me GET and others, but works with /v2/organizations/ endpoint (that's why I think the app is already applied for api: https://business.linkedin.com/marketing-solutions/marketing-partners/become-a-partner/marketing-developer-program).
That's not my app - my client's one.
My task is getting members' info, but any calls to /v2/people/ endpoint fall.
The r_basicprofile permission is set and I no need for extra profile fields.
Now I see a couple of problems with linkedin REST API:
most of examples are for v1
v1 doesn't work at all
links to the linkedin site (like https://developer.linkedin.com/comment/NNNNN#comment-NNNNN%23comment-NNNNN) mostly don't work (about 95-99%)
I can't even call samples from developer.linkedin.com
I asked about this on linkedin help forum. I don't understand is this api works or not?
Does anyone have a successful experience with /v2/people/ endpoint?
if you really want to use V2 apply to the partnership that is required.
but because you need only basic profile info try this :
https://api.linkedin.com/v1/people/~:(id,first-name,last-name,headline,picture-url,email-address,public-profile-url)?format=json
this will return the information of the person who is loggedin.
if you want information of another person try this:
https://api.linkedin.com/v1/people/[user_id]:(id,first-name,last-name,headline,picture-url,email-address,public-profile-url)?format=json
hopefully this works for you.

How to get twitter accessToken from java?

I'm creating a web application which needs some details of the user's twitter account. How can I get the twitter accessToken and access the twitter API. When I was searching this, I found that I had to create my application in twitter developers site Which I dont want at all. I've created my simple web application in java, in which i need to use twitter API. Is that possible??? Please help me out.
Generally speaking, Stack Overflow / Stack Exchange work best when you have a specific code question that we can clarify for you. This question is very broad so it is less simple to provide you with a direct solution.
In order to access the details of a user's Twitter account, you need to use the Twitter API. Twitter uses OAuth for authentication, so you'll need to code the login flow to get a user accessToken. You also need to register an app with Twitter on apps.twitter.com in order to get a consumerKey and consumerSecret to uniquely identify your app.
Since you're using Java, you might find Twitter4J a useful library for helping you with this. It comes with some pretty good samples that should help you to understand what you'll need to build.

Public content from Instagram API

So I know that you can access your own photos with Instagram API, but why not the public content?
When I try to get permissions for non-sandbox mode, the it tells me,
This use case is not supported. We do not approve the public_content permission for one-off projects such as displaying hashtag based content on your website. As alternative solution, you can show your own Instagram content, or find a company that offers this type of service (content discover, moderation, and display).
So, I'm guessing that's not possible, but I am able to screen scrape all the public photos...
Is this the only way?
yes unfortunately this is the case and yes its extremely frustrating. Beyond a couple of apps the limitations of sandbox make it impossible to develop alot of apps.
My suggestion to you is to use a third parties access token from an access token generator with the scopes you need or go through the labour of getting your app approved

After Google+ People API list endpoint is deprecated. It is possible to get the visible friends list in circle?

Using "https://www.googleapis.com/auth/plus.login" api, we are getting the access to a list of people in the user's circles in addition to their name and profile information. After api deprecation, we using people.connections.list api "https://people.googleapis.com/v1/people/me/connections" as per documentation but we get list contacts only, not friends list in google+. please help us to retrieve the friends list in google-plus. Thank you
This is probably only telling you what you already know or have guessed.
From the deprecated People API page: "... calls to the API return empty circle data for those new sign-ins." and "In place of the social connection data from the Google+ People API, you can get rich contacts data from the new Google People API."
It seems that there will no longer be a public API for getting a Google+ friends list. Consider supporting an alternate social media platform for your app or utilizing Google Contacts.
It sounds like the People API will actually be more powerful than the G+ people.list method. The G+ API only listed people that the user had circled--that isn't the same as being a friend or close contact. The people API likely better reflects closer connections between individuals as well as exposing a broad number of contacts to apps. I think for most apps, this is an improvement.

Google+ api login

I am trying to create a site where you can login with Google+, but I am having some problems understanding the Google+ API.
Can anyone explain to me how to fetch information, such as e-mail, name, id, etc. or give me a good link for a site where I can find some documentation about this.
Before you suggest me to this site I have already read it but not finding out how to fetch info.
Google+ Sign-In provides users the ability to authorize your application to retrieve data from the Google APIs based on the scopes that you set for your button. When a user authorizes your app, the sign-in callback returns you an OAuth 2.0 access token. This token gives you the ability to queries any of the APIs that your scope granted access to, this is not limited to Google+ APIs. You pass your access tokens to the API when you make requests.
Basically, you read the prereqs and didn't continue reading the API docs for the lower level details specific to the API that you are interested in. In this case, it sounds like you want to retrieve a person's profile (A "Person resource") by using the people.get method. At the bottom of that page are code examples for a variety of languages.