[twitter-dev] JQuery references from @anywhere | Ability to switch off pleas
I have read previously that JQuery is loaded when using vanilla @anywhere to ensure that a properly tested and approved version of JQuery is served for the @anywhere platform. I completely agree with this procedure when a standard/non-programmer type user is implementing it. It falls down when you are a more capable web developer and is already referencing JQuery from either google or directly. I've found that it affects how my pages are loading and impacts on performance and compatibility directly. If you are doing this you are already going to be checking to see if the functionality is still all working and thus would negate the need to serve JQuery twice especially when the version numbers are out a little (@anywhere 1.4.2 vs JQuery 1.4.4) It would be great if we could switch off the reference if you know what you are doing or supply a version that does not reference it at all. Cheers Mark -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Facilitating one-click login with OAuth
Hi all, First off apologies if this has already been covered somewhere, but I've been struggling to find the correct nomenclature and therefore haven't been able to find anything relevant with a search. I'm using OAuth to connect Twitter users with my app and it's all working great. However I noticed this week that when I use my Twitter account to log in at (for example) TwitBlock (http:// www.twitblock.org/) I am instantly redirected back to the app because I have already approved access for this application. Conversely, when I log into my own application I get presented with the Authorize Access Twitter page regardless of whether or not I've already approved my app for access. Am I missing a setting somewhere? I've already selected use Twitter for login as suggested by a friend, but this doesn't seem to have changed anything (I made this change about ten minutes ago). This is a CakePHP app and the library I'm using for OAuth is this one (http://code.42dh.com/oauth/), FYI. Please let me know if I can help by providing any further info. Thanks for reading! Biggs -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Facilitating one-click login with OAuth
Hi Biggs, I think what you're looking for is sign in with twitter. Check out this help doc: http://dev.twitter.com/pages/sign_in_with_twitter -- Thomas Mango On Dec 14, 2010, at 7:32 AM, BigglesZX biggle...@gmail.com wrote: Hi all, First off apologies if this has already been covered somewhere, but I've been struggling to find the correct nomenclature and therefore haven't been able to find anything relevant with a search. I'm using OAuth to connect Twitter users with my app and it's all working great. However I noticed this week that when I use my Twitter account to log in at (for example) TwitBlock (http:// www.twitblock.org/) I am instantly redirected back to the app because I have already approved access for this application. Conversely, when I log into my own application I get presented with the Authorize Access Twitter page regardless of whether or not I've already approved my app for access. Am I missing a setting somewhere? I've already selected use Twitter for login as suggested by a friend, but this doesn't seem to have changed anything (I made this change about ten minutes ago). This is a CakePHP app and the library I'm using for OAuth is this one (http://code.42dh.com/oauth/), FYI. Please let me know if I can help by providing any further info. Thanks for reading! Biggs -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Facilitating one-click login with OAuth
Perfect! Many thanks, Thomas! Biggs On Dec 14, 12:43 pm, Thomas Mango tsma...@gmail.com wrote: Hi Biggs, I think what you're looking for is sign in with twitter. Check out this help doc:http://dev.twitter.com/pages/sign_in_with_twitter -- Thomas Mango On Dec 14, 2010, at 7:32 AM, BigglesZX biggle...@gmail.com wrote: Hi all, First off apologies if this has already been covered somewhere, but I've been struggling to find the correct nomenclature and therefore haven't been able to find anything relevant with a search. I'm using OAuth to connect Twitter users with my app and it's all working great. However I noticed this week that when I use my Twitter account to log in at (for example) TwitBlock (http:// www.twitblock.org/) I am instantly redirected back to the app because I have already approved access for this application. Conversely, when I log into my own application I get presented with the Authorize Access Twitter page regardless of whether or not I've already approved my app for access. Am I missing a setting somewhere? I've already selected use Twitter for login as suggested by a friend, but this doesn't seem to have changed anything (I made this change about ten minutes ago). This is a CakePHP app and the library I'm using for OAuth is this one (http://code.42dh.com/oauth/), FYI. Please let me know if I can help by providing any further info. Thanks for reading! Biggs -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker:http://code.google.com/p/twitter-api/issues/list Change your membership to this group:http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] api@twitter not responding?
Hi, I'm a web app developer and I'm looking to get my track access level raised beyond the default of 400 keywords. I've tried to contact a...@twitter.com for over a week now, and I'm getting zero response from them. On their support pages, Twitter state that they answer their email within 72 hours... I'm looking for advice on how to get in touch with Twitter dev support. Best, Shachar -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Garden Hose Access
For academic research purposes, we provide only the basic limits (~1%) available to you when authenticating to stream.twitter.com. Taylor On Mon, Dec 13, 2010 at 6:06 PM, Cherhan andy@gmail.com wrote: Hi all, I have been reading and trying to find some information related to the garden hose access. My question is, how do we access to the garden hose and is it now only 3% compare to the spritzer ? Is there any similar around 10~15% access because I need to use it for academic research purpose. Thank you. Regards, Andy -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] How to get twitter oauth callback url returned to activity (on Android)?
Consider the oauth callback that you set in your application record as not much more than a placeholder. In OAuth 1.0A, it is required to send the oauth_callback you want to use explicitly on the request token step -- so regardless of what you set on dev.twitter.com, you still have to provide a URL during the OAuth sequence. While the UI on dev.twitter.com will not allow custom URI schemes, the request token step will. So, put a placeholder in on your application record, preferably pointing to a website representing your application, and explicitly declare your custom callback on the request token step. Taylor On Mon, Dec 13, 2010 at 5:27 PM, Mathias Lin m...@mathiaslin.com wrote: How to get twitter oauth callback url returned to activity (on Android) when it's a callback url starting with http - or alternatively: how to register a callback url that doesn't start with http? I want to use signpost/OAuth with Twitter in my native Android app so that I have an activity handling the callback url (and user doesn't need to enter the pin or the pin doesn't need to be screen scraped). I found many posts with samples like: Oauth Callback not found after allowing the app on Twitter. http://dev.bostone.us/2009/07/16/android-oauth-twitter-updates/#idc-cover http://code.google.com/p/agirardello/ and they all use a callback url that doesn't start with http. For example: data android:scheme=myapp android:host=twitt/data But how to register a callback url in the twitter app settings? I'm always getting 'invalid url format' when submitting the app settings form. I suppose, since I am in the browser already when the twitter site calls the callback url, I cannot just use http as the scheme (I tried to use http://www.mydomain.com and set http as the scheme and www.mydomain.com as the host). At least in my test, I won't be redirected to the app but remain in the browser and the callback url is opened in the browser. (I also cleared the defaults of the browser app before.) data android:scheme=http android:host=www.mydomain.com/data -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Search API cURL strangeness
I'm building an application that uses the search API to check for data related to particular domains, and suddenly (within the last week or so), I have started to experience a strange problem. Some of my requests are coming back with a cURL error Empty reply from server, but only when I am searching for a specific set of domains (all of the other domains work fine). I wrote a small test script to try and track down the problem, and it seems that the UserAgent I am setting with cURL seems to be causing the problem (or part of the problem). If I change the UserAgent to anything else, I get a normal response. I remember reading in the documentation that Twitter expects a unique UserAgent for the application, so that's what I did, but that seems to be causing problems. This seems like it's likely some sort of blacklist problem, but I can't figure out why it would work in this manner (only blocking a small subset of my queries, and not IP-based). Here are some sample queries I am trying to cURL: http://search.twitter.com/search.json?q=batteryoperatedcandles.netrpp=100since_id=9431322892177408since=until= http://search.twitter.com/search.json?q=carnationbreakfastessentials.comrpp=100since_id=since=2010-12-14until= http://search.twitter.com/search.json?q=apple.comrpp=100since_id=since=2010-12-14until= The first two don't work unless I change my UserAgent to something else, but the last one works no matter what. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Search API cURL strangeness
And your UserAgent is? Tom On 12/14/10 5:02 PM, Brian Medendorp wrote: I'm building an application that uses the search API to check for data related to particular domains, and suddenly (within the last week or so), I have started to experience a strange problem. Some of my requests are coming back with a cURL error Empty reply from server, but only when I am searching for a specific set of domains (all of the other domains work fine). I wrote a small test script to try and track down the problem, and it seems that the UserAgent I am setting with cURL seems to be causing the problem (or part of the problem). If I change the UserAgent to anything else, I get a normal response. I remember reading in the documentation that Twitter expects a unique UserAgent for the application, so that's what I did, but that seems to be causing problems. This seems like it's likely some sort of blacklist problem, but I can't figure out why it would work in this manner (only blocking a small subset of my queries, and not IP-based). Here are some sample queries I am trying to cURL: http://search.twitter.com/search.json?q=batteryoperatedcandles.netrpp=100since_id=9431322892177408since=until= http://search.twitter.com/search.json?q=carnationbreakfastessentials.comrpp=100since_id=since=2010-12-14until= http://search.twitter.com/search.json?q=apple.comrpp=100since_id=since=2010-12-14until= The first two don't work unless I change my UserAgent to something else, but the last one works no matter what. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Search API cURL strangeness
UserAgent is 'PivotalVeracity/0.4' Here's the test script that helped me track down the problem: [code] ?php $timeout = 30; $useragent = 'PivotalVeracity/0.4'; #$useragent = 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv: 1.9.2.13) Gecko/20101203 Firefox/3.6.13'; $url = 'http://search.twitter.com/search.json? q=batteryoperatedcandles.netrpp=100since_id=9431322892177408since=until='; #$url = 'http://search.twitter.com/search.json? q=carnationbreakfastessentials.comrpp=100since_id=since=2010-12-14until='; #$url = 'http://search.twitter.com/search.json? q=apple.comrpp=100since_id=since=2010-12-14until='; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_TIMEOUT, $timeout); $content = curl_exec($ch); if(curl_errno($ch)) { print curl error: .curl_error($ch).\n; print_r(curl_getinfo($ch)); } print_r($content); [/code] On Dec 14, 11:03 am, Tom van der Woerdt i...@tvdw.eu wrote: And your UserAgent is? Tom On 12/14/10 5:02 PM, Brian Medendorp wrote: I'm building an application that uses the search API to check for data related to particular domains, and suddenly (within the last week or so), I have started to experience a strange problem. Some of my requests are coming back with a cURL error Empty reply from server, but only when I am searching for a specific set of domains (all of the other domains work fine). I wrote a small test script to try and track down the problem, and it seems that the UserAgent I am setting with cURL seems to be causing the problem (or part of the problem). If I change the UserAgent to anything else, I get a normal response. I remember reading in the documentation that Twitter expects a unique UserAgent for the application, so that's what I did, but that seems to be causing problems. This seems like it's likely some sort of blacklist problem, but I can't figure out why it would work in this manner (only blocking a small subset of my queries, and not IP-based). Here are some sample queries I am trying to cURL: http://search.twitter.com/search.json?q=batteryoperatedcandles.netrp... http://search.twitter.com/search.json?q=carnationbreakfastessentials http://search.twitter.com/search.json?q=apple.comrpp=100since_id=s... The first two don't work unless I change my UserAgent to something else, but the last one works no matter what. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Re: Search API cURL strangeness
Tested it myself with : tom-mbp:~ tom$ curl --user-agent PivotalVeracity/0.4 http://search.twitter.com/search.json?q=batteryoperatedcandles.netrpp=100since_id=9431322892177408; Result : {results:[],max_id:14696108638863361,since_id:9431322892177408,refresh_url:?since_id=14696108638863361q=batteryoperatedcandles.net,results_per_page:100,page:1,completed_in:0.006856,since_id_str:9431322892177408,max_id_str:14696108638863361,query:batteryoperatedcandles.net} Seems to work fine... Getting exactly the same results when using the default User Agent. Tom On 12/14/10 5:15 PM, Brian Medendorp wrote: UserAgent is 'PivotalVeracity/0.4' Here's the test script that helped me track down the problem: [code] ?php $timeout = 30; $useragent = 'PivotalVeracity/0.4'; #$useragent = 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv: 1.9.2.13) Gecko/20101203 Firefox/3.6.13'; $url = 'http://search.twitter.com/search.json? q=batteryoperatedcandles.netrpp=100since_id=9431322892177408since=until='; #$url = 'http://search.twitter.com/search.json? q=carnationbreakfastessentials.comrpp=100since_id=since=2010-12-14until='; #$url = 'http://search.twitter.com/search.json? q=apple.comrpp=100since_id=since=2010-12-14until='; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_TIMEOUT, $timeout); $content = curl_exec($ch); if(curl_errno($ch)) { print curl error: .curl_error($ch).\n; print_r(curl_getinfo($ch)); } print_r($content); [/code] On Dec 14, 11:03 am, Tom van der Woerdti...@tvdw.eu wrote: And your UserAgent is? Tom On 12/14/10 5:02 PM, Brian Medendorp wrote: I'm building an application that uses the search API to check for data related to particular domains, and suddenly (within the last week or so), I have started to experience a strange problem. Some of my requests are coming back with a cURL error Empty reply from server, but only when I am searching for a specific set of domains (all of the other domains work fine). I wrote a small test script to try and track down the problem, and it seems that the UserAgent I am setting with cURL seems to be causing the problem (or part of the problem). If I change the UserAgent to anything else, I get a normal response. I remember reading in the documentation that Twitter expects a unique UserAgent for the application, so that's what I did, but that seems to be causing problems. This seems like it's likely some sort of blacklist problem, but I can't figure out why it would work in this manner (only blocking a small subset of my queries, and not IP-based). Here are some sample queries I am trying to cURL: http://search.twitter.com/search.json?q=batteryoperatedcandles.netrp... http://search.twitter.com/search.json?q=carnationbreakfastessentials http://search.twitter.com/search.json?q=apple.comrpp=100since_id=s... The first two don't work unless I change my UserAgent to something else, but the last one works no matter what. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Is includes_rts=true for statuses/mentions broken?
I've also been facing this issue for quite a long time. I've told myself that this can't be a problem with the API (since nobody else is complaining) but I can't see what is wrong on our end. For example, I have the following status that was retweeted a few times: http://twitter.com/#!/anilchawla/status/14437959797313536 This is the request URL that is generated when I request my mentions using count=200, include_rts=true, and since_id = 13978625736970241 (OAuth tokens omitted): https://api.twitter.com/1/statuses/mentions.json?count=200include_rts=1since_id=1.397862573697E%2B16 The four mentions of the above status are not present in the response even though those retweets and the original status have an ID greater than since_id. Omitting count and since_id does not make a difference. As a work-around, we have to pull both statuses/mentions and statuses/retweets_of_me and merge them together. It's hard to believe that everyone else has been doing the same and ignoring this API parameter. Any idea what the issue is? -Anil -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] How're Special Characters Treated in the Search API?
Hi Everyone, The following query, which includes a period, returns nonsensical results: http://search.twitter.com/search.atom?q=%22Battle+for+Bean+Street%22+OR+%22Battle+for+Bean+St.%22page=1rpp=11 Removing the period fixes it. I've looked at http://apiwiki.twitter.com/w/page/22554756/Twitter-Search-API-Method:-search and can't find anything about how special characters are treated. Which characters are considered special and what're the rules regarding them? Thanks all! -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: friendships/destroy Could not authenticate you
Turned out to be a red herring for a totally different problem. Please disregard. On Dec 13, 7:39 pm, Matthew matt.c.w...@gmail.com wrote: Here's the code: $params = array('user_id'= 16685316); $oauth = new TwitterOAuth( TWITTER_OAUTH_CONSUMER_KEY, TWITTER_OAUTH_SECRET_KEY, $user-getOauthToken(), $user-getOauthTokenSecret() ); Log::debug(params, $params); $result = $oauth-post('friendships/destroy', $params); Log::debug(result, $result); if (isset($result-error)) { return false; } return true; Problem is all requests to both friendships/destroy and friendships/ create fail with the following: stdClass Object ( [request] = /1/friendships/destroy.json [error] = Could not authenticate you. ) HOWEVER, using the exact same user object in memory I can successfully get my personal timeline. ?? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] user stream best practices
In other words, if I want to disambiguate the stream, I have to filter it myself. Well, humph… Not impossible, just a pain in the butt. From an information organization standpoint, it seems odd: The REST API is broken out into separate calls. The stream has everything glommed together. It would be no big deal if you only needed one or the other, but you have to do backfill with the REST API, so you always need both. The REST API has hierarchy in the endpoints. The Stream API has hierarchy in the schema. Why not make the hierarchies (at least roughly) the same? You don't have to answer, I'm just mouthing off. I'll get back to work writing a track-term to nspredicate converter. ;-) isaiah http://twitter.com/isaiah On Dec 13, 2010, at 9:30 AM, John Kalucki wrote: Roughly: If the tweet is from a following, place it in the home timeline. If the tweet refers to the user (to or from), or contains the @screenname place it in mentions If it's a message - messages. What remains is probably a track term. -John Kalucki http://twitter.com/jkalucki Twitter, Inc. On Fri, Dec 10, 2010 at 5:58 PM, isaiah isa...@mac.com wrote: Hi, I'm implementing user streams in my client and looking for some advice on best practices. My client supports viewing multiple timelines at the same time, so it's quite possible to, for example: view a saved search, the user's own home timeline, and another user's recent tweets. Of course, I'd love to implement these in user streams. My concern is that if each of these timelines were to open a separate stream simultaneously, then the user could easily cross over their limit of active streams. Another potential solution seems to be adding the search and the second user as tracking parameters to a single user stream. That works fine and the track parameter limitations seem to be similar to the limitations of the UI/UX of my app, so it seemed like a good fit. The challenge is that once track parameters are added to the stream I get a whole bunch of new statuses returned but i can't tell which are associated with each parameter. Or, well, I couldn't figure out how to tell short of building a regex for each of my track parameters and trying to sort the items by hand (yuck!). So my question: 1. Is there some way to disambiguate statuses returned as a specific track parameter from those returned for other reasons? 2. Is there some other way to skin this cat that I'm missing? Thanks, Isaiah -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] 4294967295
Anybody else seeing user.listed_count occasionally coming back as 4294967295? That value just happens to equate to: 1 + (2 * Integer.MAX_VALUE) Sure looks like an unsigned version of -1 to me... Anyway, it's breaking twitter4j.TwitterStream stuff. I've mentioned that separately on the twitter4j list, but I wanted to raise the issue here since the root cause is twitter sending the weird value. Thanks, Dan -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] 4294967295
Hi Dan, Do you continue to see events like this happening? Can you provide a recent example in as-provided JSON or XML? Thanks, Taylor On Tue, Dec 14, 2010 at 2:13 PM, Dan Checkoway dchecko...@gmail.com wrote: Anybody else seeing user.listed_count occasionally coming back as 4294967295? That value just happens to equate to: 1 + (2 * Integer.MAX_VALUE) Sure looks like an unsigned version of -1 to me... Anyway, it's breaking twitter4j.TwitterStream stuff. I've mentioned that separately on the twitter4j list, but I wanted to raise the issue here since the root cause is twitter sending the weird value. Thanks, Dan -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] GET users/show 401
Hi all, I'm calling GET /1/users/show.json?screen_name= in my application using Apache commons httpclient 4.0 java with oauth-signpost, and I used to get successful responses back. Today I tried it again and I'm now getting 401, and I see that this request is being challenged with authentication. Looking at the docs, it says it needs no authentication. I wonder what has changed, or I'm doing something wrong? Thanks, Tim -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] GET users/show 401
Though the resource does not require authentication if you're providing malformed or invalid auth credentials to the method, there are times when we will evaluate the credentials you provide. Make sure that your implementation isn't attaching malformed/unsupported/invalid authentication details to methods not requiring auth. For instance, if you're providing an OAuth header with a non-existant oauth_token you may get a failure as we don't support two-legged OAuth. Make sure you aren't sending a basic auth header of any kind. Taylor On Tue, Dec 14, 2010 at 3:20 PM, Tim Chen t...@evri.com wrote: Hi all, I'm calling GET /1/users/show.json?screen_name= in my application using Apache commons httpclient 4.0 java with oauth-signpost, and I used to get successful responses back. Today I tried it again and I'm now getting 401, and I see that this request is being challenged with authentication. Looking at the docs, it says it needs no authentication. I wonder what has changed, or I'm doing something wrong? Thanks, Tim -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] 4294967295
Understandable, Dan. Can you tell me the last time an event like this happened? Taylor On Tue, Dec 14, 2010 at 3:41 PM, Dan Checkoway dchecko...@gmail.com wrote: I know this is the weenie answer, but I haven't been able to track a specific offending JSON object down yet, since it only seems to happen on the firehose, and we're using twitter4j to process that. If we were able to connect to the firehose more than once at a time, I could easily write a tool to detect and highlight the issue. Short of that, I'll try watching the sample stream for a while to see if the same issue pops up there. Will report any findings... Thanks, Dan On Tue, Dec 14, 2010 at 6:19 PM, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Dan, Do you continue to see events like this happening? Can you provide a recent example in as-provided JSON or XML? Thanks, Taylor On Tue, Dec 14, 2010 at 2:13 PM, Dan Checkoway dchecko...@gmail.com wrote: Anybody else seeing user.listed_count occasionally coming back as 4294967295? That value just happens to equate to: 1 + (2 * Integer.MAX_VALUE) Sure looks like an unsigned version of -1 to me... Anyway, it's breaking twitter4j.TwitterStream stuff. I've mentioned that separately on the twitter4j list, but I wanted to raise the issue here since the root cause is twitter sending the weird value. Thanks, Dan -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] 4294967295
Yeah, you bet. Twitter4j isn't logging a timestamp when it happens, but here are a handful of timestamps for unrelated stuff that got logged no more than 10 seconds *prior* to the 4294967295 error popping out...so they're fairly close: Dec 14, 2010 12:34:11 PM PST Dec 14, 2010 1:13:07 PM PST Dec 14, 2010 1:22:48 PM PST Dec 14, 2010 1:27:22 PM PST Dec 14, 2010 1:29:48 PM PST Dec 14, 2010 1:33:36 PM PST Based on the twitter4j stack trace, I can tell you that it was *always* user.listed_count that had the funky value: Exception in thread Twitter Stream Handling Thread[Receiving stream] java.lang .NumberFormatException: For input string: 4294967295 at java.lang.NumberFormatException.forInputString(NumberFormatException. java:48) at java.lang.Integer.parseInt(Integer.java:459) at java.lang.Integer.valueOf(Integer.java:553) at twitter4j.internal.util.ParseUtil.getInt(ParseUtil.java:120) at twitter4j.UserJSONImpl.init(UserJSONImpl.java:103) Thanks, Dan On Tue, Dec 14, 2010 at 6:42 PM, Taylor Singletary taylorsinglet...@twitter.com wrote: Understandable, Dan. Can you tell me the last time an event like this happened? Taylor On Tue, Dec 14, 2010 at 3:41 PM, Dan Checkoway dchecko...@gmail.com wrote: I know this is the weenie answer, but I haven't been able to track a specific offending JSON object down yet, since it only seems to happen on the firehose, and we're using twitter4j to process that. If we were able to connect to the firehose more than once at a time, I could easily write a tool to detect and highlight the issue. Short of that, I'll try watching the sample stream for a while to see if the same issue pops up there. Will report any findings... Thanks, Dan On Tue, Dec 14, 2010 at 6:19 PM, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Dan, Do you continue to see events like this happening? Can you provide a recent example in as-provided JSON or XML? Thanks, Taylor On Tue, Dec 14, 2010 at 2:13 PM, Dan Checkoway dchecko...@gmail.com wrote: Anybody else seeing user.listed_count occasionally coming back as 4294967295? That value just happens to equate to: 1 + (2 * Integer.MAX_VALUE) Sure looks like an unsigned version of -1 to me... Anyway, it's breaking twitter4j.TwitterStream stuff. I've mentioned that separately on the twitter4j list, but I wanted to raise the issue here since the root cause is twitter sending the weird value. Thanks, Dan -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Unauthorized: Incorrect signature for protected users
Hi folks, every time requesting the follower or friends id-list (api call followers/ids friends/ids) or calling account/verify_credentials with valid oauth credentials I get an 401 error Unauthorized: Incorrect signature. Methods like statuses/update using the same creden are fine. I tried Zend_Oauth in several versions from a whitelisted client but only requests with users that are not protected are successful. Has anybody similar problems? ps: the system time is correct Cheers, Niklas -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] How to pull tweets excepting all that include @username and/or are Retweets?
Thanks. Yeah had to write a php filter to clean up the noise once it arrives. G -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Unauthorized: Incorrect signature for protected users
Ni Niklas, In most of these cases the issue is to do with character encoding, specifically commas not being encoded as %2C properly. Could you share your basestring so we can check this. Best, @themattharris Developer Advocate, Twitter http://twitter.com/themattharris On Tue, Dec 14, 2010 at 3:48 PM, Niklas Hellenbart niklas.hellenb...@gmail.com wrote: Hi folks, every time requesting the follower or friends id-list (api call followers/ids friends/ids) or calling account/verify_credentials with valid oauth credentials I get an 401 error Unauthorized: Incorrect signature. Methods like statuses/update using the same creden are fine. I tried Zend_Oauth in several versions from a whitelisted client but only requests with users that are not protected are successful. Has anybody similar problems? ps: the system time is correct Cheers, Niklas -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] How to pull tweets excepting all that include @username and/or are Retweets?
To exclude replies from timelines you can also include the exclude_replies=1 parameter. Hope that helps, @themattharris Developer Advocate, Twitter http://twitter.com/themattharris On Tue, Dec 14, 2010 at 4:29 PM, gzbrambila gzbramb...@gmail.com wrote: Thanks. Yeah had to write a php filter to clean up the noise once it arrives. G -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] 4294967295
Thanks! This is being looked into. I'll update when I have news. Taylor On Tuesday, December 14, 2010, Dan Checkoway dchecko...@gmail.com wrote: Yeah, you bet. Twitter4j isn't logging a timestamp when it happens, but here are a handful of timestamps for unrelated stuff that got logged no more than 10 seconds *prior* to the 4294967295 error popping out...so they're fairly close: Dec 14, 2010 12:34:11 PM PST Dec 14, 2010 1:13:07 PM PST Dec 14, 2010 1:22:48 PM PST Dec 14, 2010 1:27:22 PM PST Dec 14, 2010 1:29:48 PM PST Dec 14, 2010 1:33:36 PM PST Based on the twitter4j stack trace, I can tell you that it was *always* user.listed_count that had the funky value: Exception in thread Twitter Stream Handling Thread[Receiving stream] java.lang .NumberFormatException: For input string: 4294967295 at java.lang.NumberFormatException.forInputString(NumberFormatException. java:48) at java.lang.Integer.parseInt(Integer.java:459) at java.lang.Integer.valueOf(Integer.java:553) at twitter4j.internal.util.ParseUtil.getInt(ParseUtil.java:120) at twitter4j.UserJSONImpl.init(UserJSONImpl.java:103) Thanks, Dan On Tue, Dec 14, 2010 at 6:42 PM, Taylor Singletary taylorsinglet...@twitter.com wrote: Understandable, Dan. Can you tell me the last time an event like this happened? Taylor On Tue, Dec 14, 2010 at 3:41 PM, Dan Checkoway dchecko...@gmail.com wrote: I know this is the weenie answer, but I haven't been able to track a specific offending JSON object down yet, since it only seems to happen on the firehose, and we're using twitter4j to process that. If we were able to connect to the firehose more than once at a time, I could easily write a tool to detect and highlight the issue. Short of that, I'll try watching the sample stream for a while to see if the same issue pops up there. Will report any findings... Thanks, Dan On Tue, Dec 14, 2010 at 6:19 PM, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Dan, Do you continue to see events like this happening? Can you provide a recent example in as-provided JSON or XML? Thanks, Taylor On Tue, Dec 14, 2010 at 2:13 PM, Dan Checkoway dchecko...@gmail.com wrote: Anybody else seeing user.listed_count occasionally coming back as 4294967295? That value just happens to equate to: 1 + (2 * Integer.MAX_VALUE) Sure looks like an unsigned version of -1 to me... Anyway, it's breaking twitter4j.TwitterStream stuff. I've mentioned that separately on the twitter4j list, but I wanted to raise the issue here since the root cause is twitter sending the weird value. Thanks, Dan -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Unauthorized: Incorrect signature for protected users
Thanks very much! Checking the base string showed that a POST request was made instead of GET, shame on me :-D On 15 Dez., 01:57, Matt Harris thematthar...@twitter.com wrote: Ni Niklas, In most of these cases the issue is to do with character encoding, specifically commas not being encoded as %2C properly. Could you share your basestring so we can check this. Best, @themattharris Developer Advocate, Twitterhttp://twitter.com/themattharris On Tue, Dec 14, 2010 at 3:48 PM, Niklas Hellenbart niklas.hellenb...@gmail.com wrote: Hi folks, every time requesting the follower or friends id-list (api call followers/ids friends/ids) or calling account/verify_credentials with valid oauth credentials I get an 401 error Unauthorized: Incorrect signature. Methods like statuses/update using the same creden are fine. I tried Zend_Oauth in several versions from a whitelisted client but only requests with users that are not protected are successful. Has anybody similar problems? ps: the system time is correct Cheers, Niklas -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] cannot oauth_token_secret
hiii... i m confuse now ... why i can not get oauth_token_secret now, 2 days ago i get the oauth_token_secret.. and my application twitter connect running well help me thanks -- Regards, Putri -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Re: Verify twitter with ASP.NET
Well I guess you have not provided enough details about what your app is expected to do. ;-} -- robbie -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: #newtwitter and the API
Hi, Is there any plan to make these new API methods available in the official document? Thanks, Yusuke On Sep 24, 2:52 am, Matt Harris thematthar...@twitter.com wrote: Thanks for all the questions and feedback everyone. Hopefully my comments below will answer your questions. Robert/Tom: The API limit for #newtwitter applies the same as other applications so the requests are deducted from the authenticated users rate limit. Ed: There are plans to allow more customisation than currently exists on twitter.com. With the new design many users may want to update their images to work with the new padding and width though. The space in the lower right is empty at the moment, but like twitter before, new features/enhancements may occupy or use it. Analytics wise there are no plans to do something like this - if it was a project what kind of things would you find useful? Dewald: The default format ofhttp://twitter.com/themattharrisis not being phased out. We just wanted to let you know the new format (with /#!) is expected, and is something apps may find users giving them. You don't need to update the links in your application unless you wish to. Brian: We intend to have entities support in results from the Search API. At the moment they are not yet supported there. Damon: the retweet and retweet_count fields are currently disabled. Some issues were identified soon after they were released which we are working through. Best, @themattharris On Thu, Sep 23, 2010 at 9:55 AM, Damon Clinkscales sca...@pobox.com wrote: Brian, Thanks for the info. retweet_count The status object now includes a retweet_count field. When enabled this field will indicate the number of times a Tweet has been retweeted using the Twitter retweet function. What does when enabled mean? I have a couple of tweets for which I am trying to find out the absolute count of retweets. All I know is that the Twitter UI says 100+ retweets. But when I pull the status objects, retweet_count is blank. These tweets are from 2 days ago. Can someone point me to the best way to find out? Thanks! /damon -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker:http://code.google.com/p/twitter-api/issues/list Change your membership to this group:http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk