I am working on a project, that compiles the tweets of 4 or 5 different twitter accounts related to a particular subject - and I do not control them.
This was possible with the 1.0 API. A simple ajax call to the API would return the JSON, and off you went.
With the implementation of OAuth for Version 1.1, it seems as though it is no longer possible to retrieve the tweets from accounts you do not own.
My question, is there a work around using the current API to retrieve tweets from another user? Perhaps using the GET search/tweets interface?
The API call you need is statuses/user_timeline
As the documentation says
Returns a collection of the most recent Tweets posted by the user indicated by the screen_name or user_id parameters.
So, if you want all of my tweets, you would call
https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=edent
You will need to be authenticated with the Twitter API. I suggest that you use a library for your preferred language.
Related
Need to work with the Instagram API
Need these types of data, when I search an Instagram Hashtag #
Get All recent posts with this hashtag
Get Comments_Count, Likes_Count
Account name (of post writer)
Image URL (of post)
URL of post
I tried to work with the Instagram Graph API, having a bit difficulty since its API looks quite different than other APIs, did you manage to find where they put it?
Here is the relevant reference for hashtags, but you can see that there are some significant restrictions on the endpoint.
https://developers.facebook.com/docs/instagram-api/guides/hashtag-search/
You can get data for 30 hashtags a week per Business or Creator account that has authorized your app, so the endpoint is not that useful outside of a few use cases.
If you don't need to track that many hashtags, I believe you can get all of the information EXCEPT the Account Name for the post creator. You would need to register and code an app that can pass review for the Instagram Public Content Access feature and the instagram_basic permission, and then the Business or Creator account would need to authorize your app (and keep it authorized).
When interacting with the Twitter with the UI, there is an option to retrieve similar accounts to the one being selected, e.g. if I am checking an account like #MacoubD Twitter suggests to me other similar accounts.
Is it possible to retrieve this list using Twitter API v2? I checked the docs but could not find the endpoint.
No. There are no API functions that provide this in v1.1 or in v2.
I'm creating a tool for a person to login into their google+ account and to lists all communities they were created or joined. I had googling around for a day and read google+ api references, but I couldn't find any information on:
Url of the API for accessing user's created or joined comminities,
Request parameters to perform such query
My tool has already succeed to perform oauth login and get access_token and ready to make any API call, But now I'm stuck trying to find the right Url and requirements to perform the API call as I wanted.
Please help
There currently is no API method to do this. If you would like to see such a feature added, you can star this feature request.
I've been building an app which allows the user to search through recent (i.e. 6-9 days worth) public tweets on Twitter using the Twitter Search API.
Currently, the site is entirely public - that is, users do not need to sign in to Twitter (or even be Twitter users at all) to use my app.
However, the upcoming changes to the Twitter API have left me confused, particularly the fact it would appear that every request to Twitter's API will need to be authenticated.
My limited understanding of how Twitter's API works is that I need to authenticate my app using OAUTH, which in turn means that, if I want to continue accessing the Twitter Search API, users will need to sign in to my site before they can use the functionality related to the Search API - hence, only Twitter users will be able to use that section of my app.
Am I understanding this correctly, or is the Twitter Search API exempt from the changes? If I authenticate my app, does this mean the rate at which users can search Twitter status updates through my app is increased (or any other advantages over having non-authenticated apps)? Note that I am currently implementing a caching feature to cache related searches.
Thanks!
The changes to the Twitter API would affect your application depending on how your application works. These are the changes that you should be aware of:
All requests used to be anonymous. Now, all requests must be authenticated via OAuth.
With the old rate limits, according to my tests, you where able to make about one request per second per IP address. Now you can make 180 requests per 15 minute block per authenticated user (1 request every 5 seconds on average).
Not related, but still worth mentioning, the data that the new API returns is more similar to the data that the Streaming API returns. It's much more complete.
So, according to these changes, if your application uses some kind of a bot which polls the Search API, stores the results into a database, and then your users search within these stored results; you will have to implement OAuth with your own access token, which you can get by creating an application at dev.twitter.com.
But, if your application connects to the Search API every time that your users interact with it, and you think that you will have to make more than one request every 5 seconds on average, then you will have to ask your users to authenticate in order to get their access tokens for your requests.
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