Pinterest api - Get user detail - api

I want to fetch user detail of pinterest's logged in user.
Currently, I am able to to login through api and I get access token also.
Now I want to get that user's detail.
I tried to search for it but not a luck.
Note : I want to fetch that user's pin so I am using below api.
https://api.pinterest.com/v3/pidgets/users/(USERNAME)/pins/?access_token=ACCESSTOKEN
For this I want (USERNAME).

https://api.pinterest.com/v2/me?access_token=YOUR_ACCESS_TOKEN
returns the user data
{“username”: “Name”,
“image_url”: “http://d30opm7hsgivgh.cloudfront.net/avatars/image.jpg”,
“full_name”: “xyz abc”,
}
call this API and get users Details

Related

How to get an Instagram user's profile picture url?

I have an app that our employs Facebook Login and has our users connect their Instagram accounts via Instagram Basic Display API.
So I have an Instagram basic display access token for each of our user's and I have their 'account ids' but I cannot figure out how to get the user's profile picture through this API?
If you could get the users username you could use this link as GET request: https://www.instagram.com/username/?__a=1
Example would be:
https://www.instagram.com/instagram/?__a=1
Then you get the user information for the user instagram
You get source URL to the picture in "profile_pic_url": & "profile_pic_url_hd" in the message Body which is the link to the profile photo, hope it helps.
AS you have a user access-token that means you can have a user Instagram id.
GET graph.facebook.com/v10.0/{instagram-user-id}
response : {.....,
has_profile_picture: bool type
profile_pic : url sting type
....
}
The above API will help you and for more, you can follow the below link it has all the info required to get user details.
https://developers.facebook.com/docs/graph-api/reference/instagram-user/
Have you integrated Instagram's Graph API?
Reference: https://developers.facebook.com/docs/instagram-basic-display-api/reference/user

Load instagram images from user's feed via API

I am trying to display only the images the client uploaded to instagram on their website. The client's user ID# is 176722013. According to the API this URL will provide just such a feed:
https://api.instagram.com/v1/users/176722013/media/recent
As indicated by the error message, I need to provide either a client_id or an auth_token. Since I don't want to deal with authentication I went ahead and created an "app" in instagram developers to get a client_id # 5b5a6e95469f465f9f70e4ebcf9ee3a6
Yet when I add it to the URL I still get an error that I needed to provide an auth_token. How does that make sense?
https://api.instagram.com/v1/users/176722013/media/recent?client_id=5b5a6e95469f465f9f70e4ebcf9ee3a6
The app is in sandbox mode. When I attempt to submit it for review I must provide the purpose for the app. Upon selecting " I want to display my Instagram posts on my website." as the purpose I get the following message:
You do not need to submit for review for this use case. If you are a
developer and you want to display Instagram content on your website,
then you do not need to submit your app for review. By using a client
in sandbox mode, you can still access the last 20 media of any sandbox
user that grants you permission.
I am truly at a loss for how to proceed. Thanks for any support
As of June 1st, 2016, you need access_token to access API, where did u read: either a client_id or an auth_token ?
authenticate and get access_token and use to get API response.
#snucky you don't need authentication but you do need the users permission - from what I gather, instagram is accessible only by registered users - so you still need the access token - but instead of a server-explicit you need client-implicit.
Make a http request from your client to the api/authorize with the ?client_id=ID AND A redirect_uri=http://yoursite.com/ when the user allows the application, you'll receive an access_token in the url, which you will then use in every subsquent instagram call
read more here

How to fetch user and page/company posts from linkedin

I have been checking the available linkedin API methods but cant see on how to fetch post by user and by page/company. What I need to do is that, user can enter username or a page/company name then, fetch news posts by it. Maybe you know some workarounds. Thanks
References:
https://developer.linkedin.com/docs/rest-api
https://apigee.com/console/linkedin?authTypeVal=oauth2&afterSuccessfulAuth=true
Since October 2016 Linkedin updated the API an restricted actions to sign in, share content and manage companies, so you only can fetch the company's posts.
If you already have the user(company's admin) token access use this endpoint for get the posts of the page:
GET "https://api.linkedin.com/v1/companies/{id}/updates?format=json"
Detail Infomation
For search user
https://api.linkedin.com/v1/people/~
Method : GET
Add a format=json URL argument to the end of your API call.
Add this
HTTP header to your API call: x-li-format: json

How to get information about logged in user by google plus api?

I am using the Google Plus API to get information about the logged in user. I wrote the following URL:
https://www.googleapis.com/plus/v1/people/114518101688116406504?key=AIzaSyCedmALgpuHY1FjfwKBg6LOeo-OxCxgPKc
But with this link, I am only able to access the user with id="114518101688116406504". I want information for the current logged in user.
For example, in Facebook's API we write /me.
What parameter should I include in my URL so that I can access the current logged in user's information?
You can use the special id of me instead of the userid for this as well. See https://developers.google.com/+/api/latest/people/get for further details.

Question about twitter api

I want to create a simple Twitter application, but I have a problem. I want to show the user information about his followers, but this requires one API request to get a list of all user IDs following him, and then many additional API requests to get the user information corresponding to the user IDs that were just fetched. Is it possible to get user info for many followers in one request?
Use the Followers method:
http://api.twitter.com/1/statuses/followers.xml (Twitter API Documenation)
It returns detailed information about each follower.