Why doesn't the google plus user search api return any results? - google-plus

I'm having trouble with the google plus API.
Trying to use the user search API, all it returns is a selflink and structure data.
What am I doing wrong?
And how can I use this API by only sending a HTTP request?

Related

How do i get user images on twitter using Twitter API?

I'm trying to download users timeline images (including tweets images). How do i get user images on twitter using Twitter API.
[https://api.twitter.com/labs/2/tweets/1138505981460193280?expansions=attachments.media_keys&tweet.fields=created_at%2Cauthor_id%2Clang%2Csource%2Cpublic_metrics%2Ccontext_annotations%2Centities][1]
This API proved all the details about a single tweet. If any possible solution to get all images from a standard twitter app. Or this feature only available in premium account ?
You can do this using the v2 User timeline endpoint:
twurl "/2/users/786491/tweets?max_results=100&expansions=attachments.media_keys&media.fields=url,media_key"
You can retrieve up to 3200 of the user's most recent Tweets using this method. You can get additional information by adding further fields and expansions to the request, if you need them.

Using Instagram's Graph API, how can I retrieve post data (media url, caption, poster username, etc)

I want to use Instagram's Graph API on my backend server to retrieve data about an Instagram post. On my frontend, users will submit a post URL (like https://www.instagram.com/p/CAvPIm2lszQ/). Then on my backend, I want to take the ID of the post from that URL (so in this case CAvPIm2lszQ) and then I'm hoping that I can pass that ID thru the Instagram Graph API and then retrieve the data that I need (media URL, caption, poster username, etc.).
So would that be possible? I did find documentation on "IG Media" for the Graph API, but under permissions, it says, "A Facebook User access token from a User who created the IG Media object, with the following permissions.."
Unless I'm misunderstanding it, I'm not sure if I'll be able to access posts from various public accounts. I think it's also worth mentioning that my users are not logging into their Instagram accounts to use my service so the only possible "User access token" would be my own.
Any ideas on how I can go about this? I was using the instagram.com/p/{post_id}/?__a=1 endpoint to meet my needs before but it doesn't work on my production server for some reason. So I'm kinda stuck.
Most probably you will not be able to achieve that using Instagram API. First of all the ID you are referring to CAvPIm2lszQ is not the ID that you will use for getting IG Media. The ID is different (it's numeric value like in the sample request from the page you've linked). The full URL that includes CAvPIm2lszQ is in the shortcode field.
At the moment it is not possible to look for the post detail using shortcode. If you want to use that endpoint you need to get the real post ID first, for instance by listing list of posts from given user.
But in order to do so - you need to use Facebook login authorization window to get token from given user. Alternatively you can try to request https://developers.facebook.com/docs/instagram-api/guides/business-discovery but it requires going through App review and having your own company to pass the Business Verification. Keep in mind that this endpoint returns information only about Instagram Professional accounts (Business/Creator account). You will not be able to get information about regular accounts.
And the last thing about ?__a=1 endpoint. This is not the official Instagram API. They use it only for their own purposes. Most probably your server IP address has been blocked due to sending too many requests.

Is it possible to get instagram media for a location with a foursquare id in a single call?

I have a bunch of foursquare ids and I want to be able to pull instagram media with those foursquare ids.
Currently I only see one way to do this and it requires two API calls. You must first do a call to the search API using foursquare_v2_id (example call). That will return the instagram ID. Then I must do a second call to the media API using the instagram id to retrieve media (example call).
Does anyone know how to achieve these results (getting media for a location based on just a foursquare_id) with only one api call?
You can get this information through the foursquare API, with the venues/photos endpoint. See the documentation here.
This will return a list of photos for the venue, including their source. You can use this to either return all images for a venue, or just those from instagram.
After contacting Instagram it is clear that there is no way to do this at this time. If that ever changes I will come back and re-answer this question with the proper solution.
I think you have to user below api to get instagram images:
https://api.foursquare.com/v2/venues/423a1a00f964a5202f201fe3/photos?oauth_token=Z5RRDGQUWEAFCANX2OT0R2O5QUWYOP1EMOCNXT1PQWKMHVNG&v=20130706&limit=200
Using foursquare id and foursquare oaurh token you can get perticular venue images.
In response, you can check "source":{"name":"Instagram","url":"http://instagram.com"}.
source name is Instagram means it is a instagram image.
Refer: https://developer.foursquare.com/docs/venues/photos

Get all the information on the website through LinkedIn API

I'm working on an app for LinkedIn. I want to access all the information available on the website but the API doesn't return most of them. I was wondering how to get them.
I can use screen scraping but I wonder why the API doesn't return the information when I can easily access it on the website?
For instance this profile has many education information and it's public but none is returned via the API!!!
The LinkedIn API is purposely designed to return certain datasets, some that are only accessible via the website and not the API.
Also, scraping any part of LinkedIn's website or its content is in violation of the LinkedIn API Terms of Use: https://developer.linkedin.com/documents/linkedin-apis-terms-use

Get tweet from the user?

What is the best way to get twitts from the user on iPhone. Is it possible to get twitts with help of search twitter API? twitter search api doc
I need load more than 20 twitts.
Tweets are returned from Twitter's servers in JSON format. There are a half-dozen JSON libraries for cocoa, all very good.
Fetching tweets can be done using a simple URL request, for unauthenticated tweet data (e.g. users tweets are public). e.g. http://api.twitter.com/1/statuses/user_timeline.json?screen_name=sn00ki&include_entities=true
Or if you need access to tweets that might be private, you are going to have to log in, probably using OAuth. I would suggest a twitter library. MGTwitterEngine, for example.
If you can go iOS 5 only, you can use the new built in Twitter Framework