Re: [twitter-dev] Deleting twitter updates from Java
Thanks a lot Yusuke, it was really helpful !!! much easier than using twitter POST API !! :) On Tue, May 31, 2011 at 7:19 PM, Yusuke Yamamoto yus...@mac.com wrote: Hi, Here you can find an example using Twitter4J. https://github.com/yusuke/twitter4j/blob/master/twitter4j-examples/src/main/java/twitter4j/examples/tweets/DestroyStatus.java Best, -- Yusuke Yamamoto yus...@mac.com this email is: [x] bloggable/tweetable [ ] private follow me on : http://twitter.com/yusukeyamamoto subscribe me at : http://samuraism.jp/ On May 31, 2011, at 19:53 , Udara Alwis wrote: Hey Everyone ! Can someone please tell how to use Twitter POST API to delete tweets from java ? http://dev.twitter.com/doc/post/statuses/destroy/:id a simple code snippet would be very useful as i'm a beginner for twitter API. -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk
[twitter-dev] Re: Adding more users to the twitter stream listener
Trying this second method and it seems if there are just a few follow ids I dont get the tweets for those users, I'm curious to know if there is some sort of buffer. It would also seem to appear that I loose connection if its idle too long. Any ideas/thoughts are welcome Ray Slakinski On May 9, 12:17 pm, Arnaud Meunier arn...@twitter.com wrote: Hey Faustino, Yes, you can use an auxiliary connection (reducing your loss window using a delta scheme, as explained in the doc) to manage query velocity. But that really makes sense in a large predicates (higher access level) + frequent updates context. Arnaud / @rno http://twitter.com/rno On Mon, May 9, 2011 at 1:21 AM, Faustino Forcén f...@forcen.com wrote: El 9/5/11 08:01, Arnaud Meunier: There is a list of best practices on how to update your Filter Predicates in the Streaming API doc: http://dev.twitter.com/pages/streaming_api_concepts#updating-filter-p... Arnaud. Thanks for pointing us to these best practices. I now have a question regarding the use of two users, the main one and the new-users one. Does it mean that we can make two connections with different users from the same IP? I'll give it a try. Thanks again -- Twitter developer documentation and resources:https://dev.twitter.com/doc API updates via Twitter:https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk
[twitter-dev] OAuth webpage on Windows Phone 7
Recent changes in the OAuth WebPage has problems on Windows Phone 7's browser. When you click the username or passwork box, the watermark doesn't disappear, and you end up typing your information on top of the watermark. This makes the text completely unreadable. -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk
[twitter-dev] How to obtain user demography using Twitter API in our apps?
Hi All We have used Twitter API as per the documentation in our mobile app. The API status shows the usage and other technical stats. But we could not come across user demography stats such as age group, gender, active users set, country/state etc. Is there anyway we can find these on the Twitter API/Developer portal? Thanks -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk
Re: [twitter-dev] How to obtain user demography using Twitter API in our apps?
I don't recall ever entering that info when signing up for Twitter. Without data you can't give that kind of information. Tom On 6/3/11 12:54 PM, GDPL wrote: Hi All We have used Twitter API as per the documentation in our mobile app. The API status shows the usage and other technical stats. But we could not come across user demography stats such as age group, gender, active users set, country/state etc. Is there anyway we can find these on the Twitter API/Developer portal? Thanks -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk
[twitter-dev] Re: New Photo upload feature: What's new coming on the API side
I've written a quick tutorial for getting and displaying the media in PHP. http://shkspr.mobi/blog/index.php/2011/06/displaying-twitter-photos-via-entities/ Looking forward to seeing the upload API. -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk
[twitter-dev] Bug with oAuth headers supplied as querystring parameters for /users/lookup.json
I think I've found a bug when using the /users/lookup.json API call and supplying the oAuth headers as querystring parameters. My code generates both forms of oAuth header so I can test (regular Authorization: style and the querystring kind) Using an API call like /friends/ids.json is fine using querystring oAuth params: curl -v -H 'Accept: application/json' 'https://api.twitter.com/1/ friends/ids.json?user_id=60173realm=https://api.twitter.com/1/friends/ ids.jsonoauth_consumer_key=KKKoauth_token=TTToauth_nonce=601731307115467oauth_timestamp=1307115467oauth_signature_method=HMAC- SHA1oauth_version=1.0oauth_signature=SSS%3D' But for /users/lookup.json it fails with an Incorrect signature error: curl -v -H 'Accept: application/json' 'https://api.twitter.com/1/users/ lookup.json?user_id=60173realm=https://api.twitter.com/1/users/ lookup.jsonoauth_consumer_key=KKKoauth_token=TTToauth_nonce=601731307115963oauth_timestamp=1307115963oauth_signature_method=HMAC- SHA1oauth_version=1.0oauth_signature=SSS%3D' (where KKK, TTT SSS are placeholders for my actual values) If I use Authorization headers, rather than querystring params for the oAuth data, then everything is fine: curl -v -H 'Authorization: OAuth realm=https://api.twitter.com/1/ users/ lookup.json,oauth_consumer_key=KKK,oauth_token=TTT,oauth_nonce=601731307115963,oauth_timestamp=1307115963,oauth_signature_method=HMAC- SHA1,oauth_version=1.0,oauth_signature=SSS%3D' https://api.twitter.com/1/users/lookup.json?user_id=60173 I thought it might initially be because I was using HTTPS urls rather than HTTP, but the result is the same. For the /users/lookup.json API call, using either HTTP or HTTPS and supplying the oAuth headers as querystring parameters, you will always receive an Incorrect signature error. The only way to call this method is by supplying the oAuth values as Authorization headers. This is a problem for me, as I need to call the /users/lookup.json as JSONP and I can't supply the headers other than as querystring parameters. -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk
[twitter-dev] Store last tweet ID of my followers which @mention me and have a hashtag.
Hi, I'd like store my followers latest status tweet containing that hashtag #RT and the mention of my name. For example if one of my followers status was HEY watch my video #RT @myusername then I'd like to retweet this. When you visit the following xml page we can get the followers last tweet. https://api.twitter.com/1/statuses/followers/bbclick.xml I'd just like to store the tweet id which @mention me and contain the hashtag #RT. The ID would be stored in a mysql table using php. I'm having difficulty looping through all my follower stauses. I do understand that it'd have to be the last status update of my follower for this to work. Can you please assist me. Many Thanks, ayath -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk
[twitter-dev] Oauth in Twitter via Python
Hi, I am collecting Twitter data for my research. The API says that : [1] Anonymous calls are based on the IP of the host and are permitted 150 requests per hour. This classification includes unauthenticated requests (such as RSS feeds), and authenticated requests to resources that do not require authentication. [2] OAuth calls are permitted 350 requests per hour. I want to seek a clarification on point [1]. Lets say I want to access a list of followers of a user id (which is public). Would this be counted as rate limiting under point [1] or point [2] ? --Regards, Denzil -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk
[twitter-dev] Does Twitter Photos require the use of tweet entities?
Are tweet entities required for parsing Twitter Photos? Many clients do their own parsing and can figure out when a link is an image based on the URL (twitpic, yfrog, etc). It looks like Twitter Photos will use t.co in which case it doesn't look possible to figure out whether the link is an image based on URL. Is this correct? Are tweet entities required for Twitter Photos? When will tweet entities no longer be an optional parameter for the REST API? Thanks. -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk
Re: [twitter-dev] Oauth in Twitter via Python
The way I'm reading it it falls under 1. But I might be mistaken. --James Gifford http://jamesrgifford.com On Jun 3, 2011, at 17:01, Correa Denzil mcen...@gmail.com wrote: Hi, I am collecting Twitter data for my research. The API says that : [1] Anonymous calls are based on the IP of the host and are permitted 150 requests per hour. This classification includes unauthenticated requests (such as RSS feeds), and authenticated requests to resources that do not require authentication. [2] OAuth calls are permitted 350 requests per hour. I want to seek a clarification on point [1]. Lets say I want to access a list of followers of a user id (which is public). Would this be counted as rate limiting under point [1] or point [2] ? --Regards, Denzil -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk
Re: [twitter-dev] Does Twitter Photos require the use of tweet entities?
Not at all! Embed.ly also parses them! http://api.embed.ly/embed?url=http%3A%2F%2Ftwitter.com%2Ftwitter%2Fstatus%2F76360760606986241%2Fphoto%2F1 Tom On 6/3/11 11:02 PM, SM wrote: Are tweet entities required for parsing Twitter Photos? Many clients do their own parsing and can figure out when a link is an image based on the URL (twitpic, yfrog, etc). It looks like Twitter Photos will use t.co in which case it doesn't look possible to figure out whether the link is an image based on URL. Is this correct? Are tweet entities required for Twitter Photos? When will tweet entities no longer be an optional parameter for the REST API? Thanks. -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk
Re: [twitter-dev] Oauth in Twitter via Python
Ah! I feel similar. Which essentially means that despite acquiring data which is publicly available I will be limited to 150 requests per hour and even OAuth will not help increasing it to 350 ? --Regards, Denzil On Sat, Jun 4, 2011 at 2:32 AM, James Gifford ja...@jamesrgifford.com wrote: The way I'm reading it it falls under 1. But I might be mistaken. --James Gifford http://jamesrgifford.com On Jun 3, 2011, at 17:01, Correa Denzil mcen...@gmail.com wrote: Hi, I am collecting Twitter data for my research. The API says that : [1] Anonymous calls are based on the IP of the host and are permitted 150 requests per hour. This classification includes unauthenticated requests (such as RSS feeds), and authenticated requests to resources that do not require authentication. [2] OAuth calls are permitted 350 requests per hour. I want to seek a clarification on point [1]. Lets say I want to access a list of followers of a user id (which is public). Would this be counted as rate limiting under point [1] or point [2] ? --Regards, Denzil -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk
[twitter-dev] Re: New Status Using A Query String
Bumping this thread to give you guys the last update on this bug. As you know, the status parameter is an old hack belonging to the classic web version of twitter.com. On the other hand, Web Intents were developed specifically for this purpose, they are optimized to load quickly, they are mobile friendly, and we fully support them on the API side. We've heard your feedback: We know there are still many implementations of the old status hack out there, and we understand that it's painful to change all these URLs. That's why we're going to seamlessly redirect these old endpoints to the share intent. That will fix the issue with legacy integrations, without requiring any changes on your side. Please note that we encourage you to replace these old URLs for the Share Intent (that will save an unnecessary 301 hit). While we don't yet have an ETA for this change, we are getting closer to rolling this out and wanted to give you as much advance notice as we could. Arnaud / @rno On May 17, 10:49 pm, DustyReagan dustyrea...@gmail.com wrote: Right on. Thanks for the update Arnaud! :) On May 17, 7:55 pm, omegdadi omegd...@gmail.com wrote: +1. Thanks for the update Arnaud. This is affecting all of our customers at the moment. Cheers, Omar -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk
Re: [twitter-dev] Oauth in Twitter via Python
If you authenticate, all requests (except for search) will go into the 350 requests. If you want 500, then perform 150 unauthenticated and 350 authenticated. If you need even more, use more accounts to do the requests. Tom On 6/3/11 11:06 PM, Correa Denzil wrote: Ah! I feel similar. Which essentially means that despite acquiring data which is publicly available I will be limited to 150 requests per hour and even OAuth will not help increasing it to 350 ? --Regards, Denzil On Sat, Jun 4, 2011 at 2:32 AM, James Giffordja...@jamesrgifford.com wrote: The way I'm reading it it falls under 1. But I might be mistaken. --James Gifford http://jamesrgifford.com On Jun 3, 2011, at 17:01, Correa Denzilmcen...@gmail.com wrote: Hi, I am collecting Twitter data for my research. The API says that : [1] Anonymous calls are based on the IP of the host and are permitted 150 requests per hour. This classification includes unauthenticated requests (such as RSS feeds), and authenticated requests to resources that do not require authentication. [2] OAuth calls are permitted 350 requests per hour. I want to seek a clarification on point [1]. Lets say I want to access a list of followers of a user id (which is public). Would this be counted as rate limiting under point [1] or point [2] ? --Regards, Denzil -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk
[twitter-dev] Re: How to obtain user demography using Twitter API in our apps?
We have used Twitter API as per the documentation in our mobile app. The API status shows the usage and other technical stats. But we could not come across user demography stats such as age group, gender, active users set, country/state etc. Is there anyway we can find these on the Twitter API/Developer portal? for associating demographics data, you would be better off using a tool like Rapleaf or Flowtown. I am not sure if they still let you associate twitter ids with demographics data, because they work based on email or street address/locality as key. You can also check out cdyne.com's offerings. - Mohan http://www.mohanarun.com -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk
Re: [twitter-dev] Store last tweet ID of my followers which @mention me and have a hashtag.
hi, i think the the tag status is the last status updated by your follower. please check both web twitter and the response //kamesh On Sat, Jun 4, 2011 at 12:09 AM, Ayath ayat...@googlemail.com wrote: Hi, I'd like store my followers latest status tweet containing that hashtag #RT and the mention of my name. For example if one of my followers status was HEY watch my video #RT @myusername then I'd like to retweet this. When you visit the following xml page we can get the followers last tweet. https://api.twitter.com/1/statuses/followers/bbclick.xml I'd just like to store the tweet id which @mention me and contain the hashtag #RT. The ID would be stored in a mysql table using php. I'm having difficulty looping through all my follower stauses. I do understand that it'd have to be the last status update of my follower for this to work. Can you please assist me. Many Thanks, ayath -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk
[twitter-dev] Re: list/statuses
Try using per_page=200 instead of count=100... it's a documentation error. On May 31, 3:24 am, ogierepier ogierschel...@gmail.com wrote: I have already tried asking for 200 tweets, but the results stay the same because the api divides it in pages of 20 and you get the first page back. You used to be able to determine the results per page, but that doesn't seem to work anymore since the api was renewed. Is there a way I can maybe retrieve several pages in one call? Because looping through the pages means an exponential growth of my calls made to the API and I don't want to hit my limit. On 29 mei, 17:08, Tom van der Woerdt i...@tvdw.eu wrote: You can''t. The 20 is the number of tweets received from Twitter's database. It will then simply not send the ones which come from private users, deleted ones (?), retweets, etc. If you want 20, ask for 50 and limit it yourself. Tom On 5/29/11 11:20 AM, ogierepier wrote: Now I have a public list that includes private accounts. I'm retrieving the result by calling statuses.json. The list is followed by a few people. I have a gadget on my site which retrieves the latest statuses. The private tweets are left out, which is fine by me, but they're taking the place of the public tweets. Which means if for example the 20 latest tweets on the first page of the results contain 19 private tweets you get only one tweet back. I do not want to remove the private accounts from the list because the people following the list can see this private tweets on twitter.com. How can I exclude the private tweets from the query so that my results of the latest 20 tweets contain 20 public statuses? -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk