[twitter-dev] [Tweetr API] Send Cyrillic character (OAuth)
I use Tweetr v1.0b2. I create application on AIR 1.5 Problem: I want to update my status. I logged with OAuth and I write message: тест. My code: private function initTweet() { tweetr = new Tweetr(); tweetr.useAuthHeaders = true; tweetr.addEventListener(TweetEvent.COMPLETE, handleTweetEvent, false, 0, true); tweetr.addEventListener(TweetEvent.FAILED, handleTweetEvent, false, 0, true); } private function createOauth(newOauth:Object){ oauth = new OAuth(); oauth.addEventListener(OAuthEvent.COMPLETE, handleOAuthEvent, false, 0, true); oauth.addEventListener(OAuthEvent.ERROR, handleOAuthEvent, false, 0, true); oauth.consumerKey = newOauth.consumerKey; oauth.consumerSecret = newOauth.consumerSecret; oauth.oauthToken = newOauth.oauthToken; oauth.oauthTokenSecret = newOauth.oauthTokenSecret; tweetr.oAuth = oauth; tweetr.verifyCredentials(); } private function clickPost(e:Event) { tweetr.updateStatus(managerMess.message); //managerMess.message = тест; } After performing the function clickPost, in Windows XP SP2 appears window Connecting to api.twitter.com(link picture - files.z-13.ru/ auth.jpg) If you fill it and press OK, it appears again! How to send Cyrillic characters? Please help me. Thank you.
[twitter-dev] Streaming API (filtered) missing Tweets
Hi I am using the PHP library Phirehose to consume the streaming API, however I don't seem to receive the tweets from the people I am interested in - I am connecting to the url: http://stream.twitter.com/1/statuses/filter.json - Connecting without the filter I get about 27 tweets a second, with it is only about 1 a second, implying the filter is working - manually checking the tweets with the filter they all seem to mention or be @ the people I am interested in, but not from them - I can see that some of the users have tweeted by visiting the website Is this a limitation of the garden hose access or is it likely there is something wrong with my code?
[twitter-dev] Re: XAuth access approval?
Hi Taylor, I sent in an e-mail to a...@twitter.com with a request to enable xAuth within our mobile and desktop clients that we're developing. The request was sent early last week, however have not received any response back, could you give an indication as to the time the queue is taking to process, as we're really keen to get stuck into this. Thanks in advance, Richard On Mar 4, 5:02 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Caizer, We've got a bit of a queue on these right now and are working on clearing out. Thanks for you patience. Taylor On Thu, Mar 4, 2010 at 8:16 AM, Caizer cai...@gmail.com wrote: Hi, I have requested xauth access for my 2 apps 3 days ago.. I mentioned my app id with consumer keys and secrets. And I received a reply saying I can go check at http://help.twitter.com/forums/31935/entries about problem(?) I have. Is this normal?.. if so... How long does it take time to get approval? Does anybody has an experience to share? Thanks.
[twitter-dev] signature error (xAuth)
Hi I am using a curl command similar to the one given below (here I am using fake data for app_key, app_secret, username, password) NOTE: new lines are for display purpose only curl -k -x 192.168.1.1:8921 -d x_auth_username=tomlarryx_auth_password=tomislarryx_auth_mode=client_auth -H Authorization: OAuth oauth_consumer_key=\54df5df4df596561fbGXxhw \,oauth_nonce= \0f8610fa7a83bc52846dab0f01831fa7\,oauth_signature_method=\HMAC- SHA1\,oauth_timestamp=\1268637371\,oauth_version= \1.0\,oauth_signature=\vGfzwDTGguZDKSOUILyLQ4nYh6Q%3D\ https://api.twitter.com/oauth/access_token But it gives error Failed to validate oauth signature and token Sample data (all these values are fictitious) that I used for writing this example is: username = tomlarry password = tomislarry app_key = 54df5df4df596561fbGXxhw app_secret = 54jh5k4d5f4f2gjh5tj6j1j656f1g6j1dfghwstjd3 Timestamp = 2010-03-15 07:16:11 (GMT) Please correct me where I am making mistake.
[twitter-dev] Getting permission for collecting IP of user
Hi, Can I develop a Twitter application which asks for permission of user so that I can collect his IP details from the tweets he sends ? If not then Is there any other way by which I can collect IP information of user to get his exact location. Thanks. (Praveen kumar)
Re: [twitter-dev] Getting permission for collecting IP of user
Nope. Sorry. On Mar 16, 2010, at 5:47 AM, PRAVEEN KUMAR erpraveen2...@gmail.com wrote: Hi, Can I develop a Twitter application which asks for permission of user so that I can collect his IP details from the tweets he sends ? If not then Is there any other way by which I can collect IP information of user to get his exact location. Thanks. (Praveen kumar)
Re: [twitter-dev] Getting permission for collecting IP of user
Twitter has implemented Geolocation. If the user wishes to share their location, they can do so, and it's provided in the Tweet. A suggestion: Looking IP addresses sounds like you are building a phishing app. -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc. On Tue, Mar 16, 2010 at 5:47 AM, PRAVEEN KUMAR erpraveen2...@gmail.comwrote: Hi, Can I develop a Twitter application which asks for permission of user so that I can collect his IP details from the tweets he sends ? If not then Is there any other way by which I can collect IP information of user to get his exact location. Thanks. (Praveen kumar)
Re: [twitter-dev] Getting permission for collecting IP of user
Use Geo-location API instead. http://blog.twitter.com/2009/08/location-location-location.html On Tue, Mar 16, 2010 at 7:47 AM, PRAVEEN KUMAR erpraveen2...@gmail.comwrote: Hi, Can I develop a Twitter application which asks for permission of user so that I can collect his IP details from the tweets he sends ? If not then Is there any other way by which I can collect IP information of user to get his exact location. Thanks. (Praveen kumar) -- Regards, Atul Kulkarni
Re: [twitter-dev] Streaming API (filtered) missing Tweets
Do those same users show in search? If not, chances are that those users are filtered for quality from both Search and Streaming. If the users do show in Search, there's probably something wrong with your filter predicates. Note that track only searches on status text, not on the entire status object. If you want to follow given users directly, you need to also specify them with the follow parameter. -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc. On Tue, Mar 16, 2010 at 3:13 AM, stevew stevewhite...@gmail.com wrote: Hi I am using the PHP library Phirehose to consume the streaming API, however I don't seem to receive the tweets from the people I am interested in - I am connecting to the url: http://stream.twitter.com/1/statuses/filter.json - Connecting without the filter I get about 27 tweets a second, with it is only about 1 a second, implying the filter is working - manually checking the tweets with the filter they all seem to mention or be @ the people I am interested in, but not from them - I can see that some of the users have tweeted by visiting the website Is this a limitation of the garden hose access or is it likely there is something wrong with my code?
[twitter-dev] Incorporating the api into a site
How would I incorporate this api into my website.?
Re: [twitter-dev] Getting permission for collecting IP of user
http://groups.google.com/group/twitter-development-talk/browse_thread/thread/c1fd5f79cb6e62b5?pli=1 On Tue, Mar 16, 2010 at 9:04 AM, PRAVEEN KUMAR erpraveen2...@gmail.comwrote: Hi, Can you please provide me a sample of how I can use Geo Location API ? Thanks. On Tue, Mar 16, 2010 at 7:12 PM, Atul Kulkarni atulskulka...@gmail.comwrote: Use Geo-location API instead. http://blog.twitter.com/2009/08/location-location-location.html On Tue, Mar 16, 2010 at 7:47 AM, PRAVEEN KUMAR erpraveen2...@gmail.comwrote: Hi, Can I develop a Twitter application which asks for permission of user so that I can collect his IP details from the tweets he sends ? If not then Is there any other way by which I can collect IP information of user to get his exact location. Thanks. (Praveen kumar) -- Regards, Atul Kulkarni -- Regards, Atul Kulkarni
Re: [twitter-dev] Getting permission for collecting IP of user
Hi, Can you please provide me a sample of how I can use Geo Location API ? Thanks. On Tue, Mar 16, 2010 at 7:12 PM, Atul Kulkarni atulskulka...@gmail.comwrote: Use Geo-location API instead. http://blog.twitter.com/2009/08/location-location-location.html On Tue, Mar 16, 2010 at 7:47 AM, PRAVEEN KUMAR erpraveen2...@gmail.comwrote: Hi, Can I develop a Twitter application which asks for permission of user so that I can collect his IP details from the tweets he sends ? If not then Is there any other way by which I can collect IP information of user to get his exact location. Thanks. (Praveen kumar) -- Regards, Atul Kulkarni
Re: [twitter-dev] Re: Twitter Search: The page you were looking for doesn't exist.
First, your query string isn't a valid search API query string. Copying and pasting from advanced search is frowned upon. If you strip it down to the basics of what you're trying to do you end up with this http://search.twitter.com/search.json?q=from:gp04lchsince=2010-03-01rpp=15 Note that 1) You need to supply a content type for the query 2) You can't have a within on the API, look at the doc http://apiwiki.twitter.com/Twitter-Search-API-Method:-search and use the geocode param 3) Blank parameters generally aren't a good idea 4) The from operator doesn't work in the API, instead use from:user in the query Even after all that there does appear to be a bug in the search API, as I get the result {error:Couldn't find Status with ID=9796641788} I'll let that team know. ---Mark http://twitter.com/mccv On Mon, Mar 15, 2010 at 7:48 PM, Chung Han Lau arbuquerq...@gmail.comwrote: funny no one seems to be taking any interest in this thread. am i missing something? On Mar 15, 11:14 am, Chung Han Lau arbuquerq...@gmail.com wrote: hi, am using twitter search returning json for webpage output. just got this messag returned with this url: http://search.twitter.com/search?q=ands=phrase=ors=nots=tag=lan... seems i cannot use the 'Since this date' and 'Until this date'. please rectify. regards
Re: [twitter-dev] API Rate Limit For Followers List - Cache Problem?
This could conceivable happen even between requests. The results are ordered by the time somebody started following you, so if you want to have a (fairly) complete list of your followers, just take a second pass and stop when you start seeing people already in your cache. Detecting people who have stopped following you isn't possible with this method, so at the moment you'll always be a bit out of date on this front. ---Mark http://twitter.com/mccv On Mon, Mar 15, 2010 at 8:08 PM, GoogleRock redrockso...@yahoo.com wrote: I understand the twitter API has a rate limit of 150 requests per hour. I want to download a total list of followers. When I download followers I cache the information (100 followers at a time). However if I run out of requests and have to wait until the next hour to begin again how do I know that my cache is still good? Couldn't someone un-follow while I am waiting until the next hour and then my cache is dirty? Any one have insight into this problem? Thanks
[twitter-dev] OAuth API calls not succeeding for APIs *always* requiring authentication - Incorrect Signature
I'm sure this is my fault, but I have kind of a bizarre scenario, where OAuth is working for certain APIs, but not the ones for which Requires Authorization is always true. * I am able to obtain access tokens, both through the PIN process and through xAuth. * I can successfully use these access tokens to make certain API calls using GET. These are APIs that may have different results if the user is authenticated or not (user_timeline, rate_limit_status, etc). I get the expected results for successful authentication (ie.user_timeline shows tweets for a protected user; lists/my_list/ statuses shows tweets for my private list). * However, for APIs that *always* require authentication (eg verify_credentials, mentions, myusername/lists, etc), I get a 401 with Incorrect signature I'm not sure what to do. It was my understanding that OAuth was pretty unforgiving, so I'm surprised that it seems to half work... Is this the right forum for this question? I would be grateful for any wise counsel! Dan B
[twitter-dev] virus help
I got a virus when Jason Mraz's account got hacked (and I, ironically, took the IQ quiz) - it's the one that blocks spybot so I can't get rid of it. Can anyone help?
Re: [twitter-dev] Incorporating the api into a site
You would read the documentation at http://apiwiki.twitter.com and implement it into your website. On 3/16/10 7:33 AM, Tony ayoun...@googlemail.com wrote: How would I incorporate this api into my website.?
[twitter-dev] Re: OAuth API calls not succeeding for APIs *always* requiring authentication - Incorrect Signature
Actually, this sounds a lot like a confirmed defect: http://code.google.com/p/twitter-api/issues/detail?id=1345 I verified my signature using the calculator here: http://hueniverse.com/2008/10/beginners-guide-to-oauth-part-iv-signing-requests/ On Tue, Mar 16, 2010 at 11:27 AM, Dan B pivotdevb...@gmail.com wrote: I'm sure this is my fault, but I have kind of a bizarre scenario, where OAuth is working for certain APIs, but not the ones for which Requires Authorization is always true. * I am able to obtain access tokens, both through the PIN process and through xAuth. * I can successfully use these access tokens to make certain API calls using GET. These are APIs that may have different results if the user is authenticated or not (user_timeline, rate_limit_status, etc). I get the expected results for successful authentication (ie.user_timeline shows tweets for a protected user; lists/my_list/ statuses shows tweets for my private list). * However, for APIs that *always* require authentication (eg verify_credentials, mentions, myusername/lists, etc), I get a 401 with Incorrect signature I'm not sure what to do. It was my understanding that OAuth was pretty unforgiving, so I'm surprised that it seems to half work... Is this the right forum for this question? I would be grateful for any wise counsel! Dan B
Re: [twitter-dev] virus help
Try: http://securitytango.com/ ∞ Andy Badera ∞ +1 518-641-1280 Google Voice ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me: http://www.google.com/search?q=andrew%20badera On Tue, Mar 16, 2010 at 11:00 AM, jitterbug212 heathertarr...@gmail.com wrote: I got a virus when Jason Mraz's account got hacked (and I, ironically, took the IQ quiz) - it's the one that blocks spybot so I can't get rid of it. Can anyone help?
[twitter-dev] Status ids are not delivered in sequential order in home_timeline
Just wrote up this bug: http://code.google.com/p/twitter-api/issues/detail?id=1529 I'm aware of several other developers of mobile Twitter clients that are affected by this issue. If you are as well, please chime in and star the bug. Thanks! -ch
Re: [twitter-dev] Streaming API Basic Auth
Would JSONP be a fit for your situation? ∞ Andy Badera ∞ +1 518-641-1280 Google Voice ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me: http://www.google.com/search?q=andrew%20badera On Mon, Mar 15, 2010 at 8:06 PM, Lawrence lipeng...@gmail.com wrote: Hi Everyone, I am developing a Twitter program,which needs to get access for the Twitter streaming API. I can use Http Clients (Apache Wink) to get data from streaming API with no problem. However, my application needs to use JavaScript to access the Streaming API and receive data. I got failure in the first step: trying to pass the basic auth... Instead, i always got the 401 reply from twitter streaming api (unauthorized) Here is some snippet from my code, function send(arg) { CreateXMLHttpRequest(); xmlhttp.onreadystatechange = callhandle; xmlhttp.open(GET,url); xmlhttp.setRequestHeader(Authorization, Basic bXXXyZWXTY4OTE4dHxxlc==); // for my account security reason, i changed the string for my password and user name, but I am pretty sure the string in my original code is correct because I got it from the printing of my successful http clients example. xmlhttp.send(arg); } Is this because the cross-domain restriction? Is there any way which i can use JS to access the streaming API to obtain data? Cheers Lawrence
[twitter-dev] Re: XAuth access approval?
Hey Richard, I cannot find a ticket from this email address in our system. Did you write in from another email address? You can reply to me directly and I'll look for it. Brian On Mar 16, 4:55 am, westwired rich...@e-man.co.uk wrote: Hi Taylor, I sent in an e-mail to a...@twitter.com with a request to enable xAuth within our mobile and desktop clients that we're developing. The request was sent early last week, however have not received any response back, could you give an indication as to the time the queue is taking to process, as we're really keen to get stuck into this. Thanks in advance, Richard On Mar 4, 5:02 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Caizer, We've got a bit of a queue on these right now and are working on clearing out. Thanks for you patience. Taylor On Thu, Mar 4, 2010 at 8:16 AM, Caizer cai...@gmail.com wrote: Hi, I have requested xauth access for my 2 apps 3 days ago.. I mentioned my app id with consumer keys and secrets. And I received a reply saying I can go check at http://help.twitter.com/forums/31935/entries about problem(?) I have. Is this normal?.. if so... How long does it take time to get approval? Does anybody has an experience to share? Thanks.
[twitter-dev] Re: Historical user information
Twitter newb question: Mark, I want to be clear that I'm not questioning the accuracy of your answer at all; I'm sure you're correct. However, I can't fathom why there would be this much redundancy in the data returned by the Twitter API. If I understand correctly, if I get the 20 most recent status posted by a user, then that user's data will be returned 20 times - one with each returned status. Ed's original reply sounded plausible (and interesting), as it at least provided a reason for the repeated inclusion of user objects, inefficient though it might have been. Even a basic normalization would include just the id in the status as opposed to the entire user object. I have to assume that the user is there for a reason, however it's one that I can't figure out. Can you or someone else educate me about why this data is present? Thanks very much, Kenneth On Mar 15, 3:48 pm, Mark McBride mmcbr...@twitter.com wrote: This is incorrect. The user object returned with a status is intended to be represent the current user object, not a historical one. However. There are currently several bugs open around this, so the user object currently represents a snapshot of the user some time in the fairly recent past. ---Mark http://twitter.com/mccv On Mon, Mar 15, 2010 at 1:04 PM, M. Edward (Ed) Borasky zzn...@gmail.comwrote: Yep ... but you don't get all of their tweets. You get the most recent 3200 of their *original* tweets. If they used the built-in retweet, those retweets won't show up in the pages. Try it on @znmeb (me), who built-in-retweets a lot. ;-) -- M. Edward (Ed) Borasky borasky-research.net/m-edward-ed-borasky/ A mathematician is a device for turning coffee into theorems. ~ Paul Erd?s Quoting Raymond Camden rcam...@gmail.com: Hmm. So if the API for getting a user's tweets allows you to get _all_ of them (via paging, not in one request), that would be a way to trend their data over time, right? I'd rather not use twitalyzer - I want to use the Twitter API natively if I can. On Mar 15, 2:01 pm, M. Edward (Ed) Borasky zzn...@gmail.com wrote: Well, you can retrieve the user's most recent tweets via statuses/user_timeline. Each returned tweet will have a created_at date/time stamp and an embedded user object. Inside this embedded user object will be the number of friends and followers the user had when the tweet was created. Plot the date/time stamps on the X axis and the friends on the Y axis and do a kernel regression. ;-) Or, you could go to twitalyzer.com, key in the user's Twitter screen name, then use the Trends menu item to display the user's metrics. ;-) -- M. Edward (Ed) Borasky borasky-research.net/m-edward-ed-borasky/ A mathematician is a device for turning coffee into theorems. ~ Paul Erd?s Quoting Raymond Camden rcam...@gmail.com: Is it possible to get information about a user based on a certain time? For example, the number of friends for an account can easily be returned - but it is for the time of the call itself. Is there a way to get those values from arbitrary date times?
[twitter-dev] Undefined Index Notice with PHP w/ statues/mentions method
Like many others who post on these type of boards, I'm going to first mention that I'm a newb. Note: I'm using the PHP library TwtterLibPHP (http://github.com/jdp/ twitterlibphp) I'm trying to pull out various pieces of information (in this case the user name) using the status/mentions method in the json format and while it works, it keeps giving me the followin g notice: Notice: Undefined index: screen_name in /opt/lampp/htdocs/xampp/ twitter/index.php on line 18 I searched online for an answer, some mentioned to just hide the notice, but that doesn't really fix it...anybody have an idea to resolve this? Thanks, Cassidy Here is my code snippet: ?php require_once('twitlib/twitter.lib.php'); $username = 'theusername'; $password = 'thepassword'; $twitter = new Twitter($username, $password); $mentions = $twitter-getMentions(array('page'=1), 'json'); $mentions_decode = json_decode($mentions); echo @ . $mentions_decode['screen_name'] . just mentioned me; \ \The line giving me the notice ?
Re: [twitter-dev] Undefined Index Notice with PHP w/ statues/mentions method
That just means you have PHP set to display helpful errors, such as the use of a variable that was not initialized before first use. The hosting service will likely have these errors turned off. You can edit the library and correct such notices, or you can just use them as feedback on your locahost dev server. ~PK On Wed, Mar 17, 2010 at 10:01 AM, Cassidy cassc...@gmail.com wrote: Like many others who post on these type of boards, I'm going to first mention that I'm a newb. Note: I'm using the PHP library TwtterLibPHP (http://github.com/jdp/ twitterlibphp) I'm trying to pull out various pieces of information (in this case the user name) using the status/mentions method in the json format and while it works, it keeps giving me the followin g notice: Notice: Undefined index: screen_name in /opt/lampp/htdocs/xampp/ twitter/index.php on line 18 I searched online for an answer, some mentioned to just hide the notice, but that doesn't really fix it...anybody have an idea to resolve this? Thanks, Cassidy Here is my code snippet: ?php require_once('twitlib/twitter.lib.php'); $username = 'theusername'; $password = 'thepassword'; $twitter = new Twitter($username, $password); $mentions = $twitter-getMentions(array('page'=1), 'json'); $mentions_decode = json_decode($mentions); echo @ . $mentions_decode['screen_name'] . just mentioned me; \ \The line giving me the notice ?
Re: [twitter-dev] Undefined Index Notice with PHP w/ statues/mentions method
$mentions_decode should be an array. Try something like foreach ($mentions_decode as $status) { echo @ . $status-user-screen_name . just mentioned me; } Abraham On Tue, Mar 16, 2010 at 20:01, Cassidy cassc...@gmail.com wrote: Like many others who post on these type of boards, I'm going to first mention that I'm a newb. Note: I'm using the PHP library TwtterLibPHP (http://github.com/jdp/ twitterlibphp) I'm trying to pull out various pieces of information (in this case the user name) using the status/mentions method in the json format and while it works, it keeps giving me the followin g notice: Notice: Undefined index: screen_name in /opt/lampp/htdocs/xampp/ twitter/index.php on line 18 I searched online for an answer, some mentioned to just hide the notice, but that doesn't really fix it...anybody have an idea to resolve this? Thanks, Cassidy Here is my code snippet: ?php require_once('twitlib/twitter.lib.php'); $username = 'theusername'; $password = 'thepassword'; $twitter = new Twitter($username, $password); $mentions = $twitter-getMentions(array('page'=1), 'json'); $mentions_decode = json_decode($mentions); echo @ . $mentions_decode['screen_name'] . just mentioned me; \ \The line giving me the notice ? -- Abraham Williams | Community Advocate | http://abrah.am TwitterOAuth | http://github.com/abraham/twitteroauth This email is: [ ] shareable [x] ask first [ ] private.