[twitter-dev] Re: Stop playing around with Source parameters

2009-08-22 Thread Mike Davies
HTML does not make the order of attributes significant, so it's not a good idea to rely on a specific order. Sounds like you want to strip out markup, so you should already be running a whitelist of acceptable attributes, and not let through the the rest. For example, you wouldn't want to let thr

[twitter-dev] Re: /statuses/destroy error erroneously?

2009-08-22 Thread Cameron Kaiser
> Calling /statuses/destroy (on a valid status ID) seems to return a 400 > error with a "Bad request. We could not delete that status for some > reason.." > > ... but the status is successfully deleted. > > Bug? Seeing this also. -- personal: http://www.ca

[twitter-dev] I can't use OAuth and I want to apply source(from[myApp])

2009-08-22 Thread bang
I'm the builder of Twitese (http://twitese.appspot.com/), a chinese web client for Twitter. I know that if a new web app want to show from [myApp], the only way is to use OAuth, but in china that's infeasible, because twitter has been block in china, chinese people can not access twitter.com to us

[twitter-dev] Re: Stop playing around with Source parameters

2009-08-22 Thread Gonzalo Larralde
On Sat, Aug 22, 2009 at 1:17 AM, TCI wrote: > > Recently you added nofollow's, and now you moved the nofollow after > the href. Some of us filter these out and you changing them is only > making it more complicated. Please make up your mind and stop changing > these... > > http://fun140.com/";>Fu

[twitter-dev] Re: Stop playing around with Source parameters

2009-08-22 Thread Joel Strellner
Ummm... strip_tags()'s? On Fri, Aug 21, 2009 at 9:17 PM, TCI wrote: > > Recently you added nofollow's, and now you moved the nofollow after > the href. Some of us filter these out and you changing them is only > making it more complicated. Please make up your mind and stop changing > these... >

[twitter-dev] Re: /statuses/destroy error erroneously?

2009-08-22 Thread Chad Etzel
Please file a ticket: http://code.google.com/p/twitter-api/issues/ Thanks, -Chad On Sat, Aug 22, 2009 at 3:32 AM, Cameron Kaiser wrote: > >> Calling /statuses/destroy (on a valid status ID) seems to return a 400 >> error with a "Bad request. We could not delete that status for some >> reason.."

[twitter-dev] Re: Stop playing around with Source parameters

2009-08-22 Thread Andrew Badera
Crazily enough, not everyone writes in PHP. ∞ Andy Badera ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me: http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera) On Sat, Aug 22, 2009 at 3:28 AM, Joel Strellner wrote: > Ummm... strip_tags()'s? > > On Fri, Aug 21, 2

[twitter-dev] Re: heavy throttling by search.twitter.com API from GAE application

2009-08-22 Thread Beier
not sure about GAE, but for AWS, you can request for a static IP, it costs some $, but it's the only way to work with Twitter API if rate limit is an issue for you On Aug 21, 1:29 pm, BenHedrington wrote: > I agree GAE throttle on the Search API is not behaving as it has in > the past, Can someo

[twitter-dev] Re: how can I get user address using Twitter API?

2009-08-22 Thread Andrew Badera
Spam? Privacy? Call me crazy, I know! ∞ Andy Badera ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me: http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera) On Fri, Aug 21, 2009 at 10:25 PM, Bo Huang wrote: > > Is there any reason twitter doesn't support it? it is

[twitter-dev] Re: heavy throttling by search.twitter.com API from GAE application

2009-08-22 Thread Andrew Badera
On Sat, Aug 22, 2009 at 6:26 AM, Beier wrote: > > not sure about GAE, but for AWS, you can request for a static IP, it > costs some $, but it's the only way to work with Twitter API if rate > limit is an issue for you GAE has no such IP offering yet. Also, by its very nature, all activity on GAE

[twitter-dev] Re: Stop playing around with Source parameters

2009-08-22 Thread shiplu
Use DOM functions in your language to parse it. Dont use Regex. Another Good solution is using libxml. But Html is not XML. So you may have to convert it. Thats why DOM is better. -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা

[twitter-dev] Re: Stop playing around with Source parameters

2009-08-22 Thread Andrew Badera
Can you use DOM functions in most languages on mere HTML fragments? ∞ Andy Badera ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me: http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera) On Sat, Aug 22, 2009 at 7:38 AM, shiplu wrote: > Use DOM functions in your lan

[twitter-dev] Re: how can I get user address using Twitter API?

2009-08-22 Thread Chris Babcock
> > > I am trying to integrate Twitter OAuth with my website. Right now > > > I can use this API > > > (https://twitter.com/account/verify_credentials.xml) to get lots > > > of profile information like user ID, screen name, but I didn't > > > any info about the user email address. Is there any API

[twitter-dev] Re: how can I get user address using Twitter API?

2009-08-22 Thread Chris Babcock
> > > I am trying to integrate Twitter OAuth with my website. Right now > > > I can use this API > > > (https://twitter.com/account/verify_credentials.xml) to get lots > > > of profile information like user ID, screen name, but I didn't > > > any info about the user email address. Is there any API

[twitter-dev] Re: how can I get user address using Twitter API?

2009-08-22 Thread Dossy Shiobara
On 8/22/09 5:49 AM, Andrew Badera wrote: Spam? Privacy? Call me crazy, I know! So, who wants to form a data mining startup that crawls websites for "follow me on twitter" links to people's twitter IDs, then correlates that to contact email addresses for the site ... Easy revenue model: se

[twitter-dev] Re: I can't use OAuth and I want to apply source(from[myApp])

2009-08-22 Thread JDG
you could speak with a proxy outside of china, which could do the OAuth for you On Fri, Aug 21, 2009 at 23:40, bang wrote: > > I'm the builder of Twitese (http://twitese.appspot.com/), a chinese > web client for Twitter. I know that if a new web app want to show from > [myApp], the only way is t

[twitter-dev] Re: Stop playing around with Source parameters

2009-08-22 Thread JDG
technically as long as it's well formed, any fragment can be valid XML in the eyes of DOM (sounds like an Italian mobster there). I mean sure, you couldn't feed it hi but you could feed it hi On Sat, Aug 22, 2009 at 06:27, Andrew Badera wrote: > > Can you use DOM functions in most languages o

[twitter-dev] Re: how can I get user address using Twitter API?

2009-08-22 Thread JDG
surely you're joking. PLEASE tell me you're joking, because my skin is crawling. On Sat, Aug 22, 2009 at 08:01, Dossy Shiobara wrote: > > On 8/22/09 5:49 AM, Andrew Badera wrote: > >> >> Spam? Privacy? Call me crazy, I know! >> > > So, who wants to form a data mining startup that crawls websites

[twitter-dev] Re: how can I get user address using Twitter API?

2009-08-22 Thread Chris Babcock
On Sat, 22 Aug 2009 10:01:08 -0400 Dossy Shiobara wrote: > Easy revenue model: sell lookups from email -> twitter ID and twitter > ID -> email. That's a fair response to an earlier thread about looking up the Twitter ID by email address. The message to which you were responding had to do with

[twitter-dev] Re: how can I get user address using Twitter API?

2009-08-22 Thread Andrew Badera
On Sat, Aug 22, 2009 at 10:01 AM, Dossy Shiobara wrote: > > On 8/22/09 5:49 AM, Andrew Badera wrote: >> >> Spam? Privacy? Call me crazy, I know! > > So, who wants to form a data mining startup that crawls websites for "follow > me on twitter" links to people's twitter IDs, then correlates that to

[twitter-dev] Re: Stop playing around with Source parameters

2009-08-22 Thread Dewald Pretorius
Wouldn't str_replace('rel="nofollow"', '', $href_from_twitter) work just as well? Dewald On Aug 22, 1:54 am, Gonzalo Larralde wrote: > On Sat, Aug 22, 2009 at 1:17 AM, TCI wrote: > > > Recently you added nofollow's, and now you moved the nofollow after > > the href. Some of us filter these out

[twitter-dev] Re: Stop playing around with Source parameters

2009-08-22 Thread Costa Rica
Thanks to all for your suggestions on how to parse, remove nofollows or extract the URL, but that's not the bottomline of my message. There are some source parameters that are posting automated crap constantly, and since I run a trending engine I continuously exclude these tweets. Yes I can parse

[twitter-dev] Re: Stop playing around with Source parameters

2009-08-22 Thread Chad Etzel
Hi All, We did not intend for the nofollow string to be included in API results. It is on our list to fix. In the meantime you will need to parse around it. Thanks, -Chad On Sat, Aug 22, 2009 at 11:20 AM, Costa Rica wrote: > > Thanks to all for your suggestions on how to parse, remove nofollows

[twitter-dev] Re: I can't use OAuth and I want to apply source(from[myApp])

2009-08-22 Thread Josh Roesslein
Well even with a proxy the users of the app would still need to access twitter.com. Unless twitter makes an exception here I don't see any other way of setting a custom source. It's a shame china is blocking twitter, but I'd imagine they would probably end up blocking your site soon if it became po

[twitter-dev] Trying to display JSON object

2009-08-22 Thread TrixJo
I am using the Twitter API and have the following JSON object returned after a search query. print_r($json) is: [code] $contents = file_get_contents("http://search.twitter.com/search.json? lang=en&rpp=5&q=MyNetwork"); $json = json_decode($contents); echo print_r($json); [/code] outputs: [cod

[twitter-dev] dm / follow handling

2009-08-22 Thread ben
Hi, I'd appreciate any opinions regarding a dilemma about handling a DM where you don't know if the correct relationship exists. Since a DM isn't rate limited it effectively tells me for 'free' whether the target user is following the source user by raising an exception if the correct relationsh

[twitter-dev] Re: Stop playing around with Source parameters

2009-08-22 Thread PJB
Hehehe... your regex isn't much better! /(.+?)<\/a>/is On Aug 21, 9:54 pm, Gonzalo Larralde wrote: > On Sat, Aug 22, 2009 at 1:17 AM, TCI wrote: > > > Recently you added nofollow's, and now you moved the nofollow after > > the href. Some of us filter these out and you changing them is only >

[twitter-dev] Can I DM via the API with username and password?

2009-08-22 Thread mchid
I need my app to be able to send a direct message to a registered users - so I know their username and the password they use to log in. Do I need them to manually authorise this first (using oAuth) or can I avoid this? For reference (and for my sins) the app is developed in c#.net :) Thanks

[twitter-dev] Re: Developer Preview: Geolocation API

2009-08-22 Thread Ben Eliott
Hi Ryan, Thank-you for the fast response. That makes sense, thanks a lot for clarifying. Wow, this is a really exciting feature. Best Regards, Ben On 21 Aug 2009, at 17:44, Ryan Sarver wrote: > > Ben, > > Currently we geocode your user.location data to get an idea of where > you are. That

[twitter-dev] Re: heavy throttling by search.twitter.com API from GAE application

2009-08-22 Thread Darren Bounds (Cliqset)
Hello Chad, Can you confirm that this is not the case for AWS elastic IPs which had been previously whitelisted by Twitter? Thanks, Darren On Aug 21, 4:35 pm, Chad Etzel wrote: > Hello, > > I have replied to Jud off-list, but for everyone's benefit we'd like > to reiterate that AWS and GAE are

[twitter-dev] Re: New problem with JSON search API on 32-bit OS?

2009-08-22 Thread JSJ
That is helpful to know. So possibly this is isolated to the PHP json_decode() functionality. In my case, I get the following JSON decoded string from twitter (happens to be empty result set): {"results":[],"since_id":3448308315,"max_id": 3450048057,"refresh_url":"? since_id=3450048057&q=text","

[twitter-dev] Re: OAuth - get_request_token - 401 Unauthorized - ruby gem

2009-08-22 Thread themire
Worked like a charm! Thanks very much guys. On Aug 21, 3:30 pm, Hedley Robertson wrote: > Gonna chime in here with my obscure fix - check the system clock on the > production server? > > On Fri, Aug 21, 2009 at 6:16 AM, srikanth reddy > wrote: > > > This might help > > >http://groups.google.com

[twitter-dev] Re: how can I get user address using Twitter API?

2009-08-22 Thread Joseph Cheek
http://www.google.com/search?q=%22follow+me+on+twitter%22+gmail.com as an example... JDG wrote: > surely you're joking. PLEASE tell me you're joking, because my skin is > crawling. > > On Sat, Aug 22, 2009 at 08:01, Dossy Shiobara > wrote: > > > On 8/22/09 5:49 AM

[twitter-dev] How you are notified of whitelisting status

2009-08-22 Thread Neicole
We applied for whitelisting this past weekend and haven't heard a peep, or a tweet. How long does it usually take and how are you notified? Thanks!

[twitter-dev] Re: statuses/followers stops returning results after page 101

2009-08-22 Thread maxt3r
It's not working for me too, but it worked a few hours ago. Looks like bug. On Aug 22, 2:11 am, yonnage wrote: > Trying to quickly get follower information (screen name, bio, etc). > Using statuses/followers but after page 101 it no longer returns > results.  I believe this used to go far past p

[twitter-dev] API Version of /friend_requests?

2009-08-22 Thread Kyle Mulka
Is there an API version of http://twitter.com/friend_requests ? I want to be able to pre-authorize people to follow me so that I don't have to manually check my email and visit that page every once in a while. Thanks, Kyle Mulka http://twitter.com/mulka http://twilk.com

[twitter-dev] Re: Track vs. Search

2009-08-22 Thread Mark Nutter
@Will Yeah, that's what we're currently using, and it works well enough, but I would really love an unthrottled track because it includes the user profile information inline. That would be sooo nice. On Aug 20, 11:54 am, Wil Kern wrote: > Have you thought about just using the filter:links in yo

[twitter-dev] Re: oAuth consumer keys, tokens...how sensitive are those keys?

2009-08-22 Thread John Kristian
There was some discussion of this at http://groups.google.com/group/twitter-development-talk/browse_thread/thread/972b23136fdf9ed8/80d6e999d9dedced?hl=en An attacker who knows your consumer key and consumer secret can create an application that imitates yours. But they can't impersonate a user un

[twitter-dev] Re: Can't get friends/followers list after page 101

2009-08-22 Thread yonnage
having the same issue.. no results after page 101 On Jul 22, 4:48 pm, atifzshaikh wrote: > Seems to be working now, I guess it was a temporary thing.  Would help > if I knew what caused it :) thanks. > > On Jul 22, 3:55 pm, atifzshaikh wrote: > > > > > Hi, > > > I have been trying to get the fr

[twitter-dev] Re: I can't use OAuth and I want to apply source(from[myApp])

2009-08-22 Thread bang
yes, I can access twitter.com with proxy, but the users of Twitese couldn't access, that's the problem. One of the most useful feature of Twitese is made Chinese people use Twitter without proxy On Aug 22, 10:10 pm, JDG wrote: > you could speak with a proxy outside of china, which could do the O

[twitter-dev] Re: Stop playing around with Source parameters

2009-08-22 Thread Scott Haneda
Ha ha. Php does have a regex parser. This should not matter if coded correctly. Twitter did announce they would be messing around last week. -- Scott Iphone says hello. On Aug 22, 2009, at 3:07 AM, Andrew Badera wrote: Crazily enough, not everyone writes in PHP. ∞ Andy Badera ∞ This ema

[twitter-dev] Profile Image upload

2009-08-22 Thread Rich Tretola
I have noticed that when I upload a profile image via the api, I get a URL like this returned: http://s3.amazonaws.com/twitter_production/profile_images/yankee_no... which is a broken image NoSuchKey The specified key does not exist. profile_images/yankee_normal.jpg 3E6396CC4AA23107 - 0O9ff2op

[twitter-dev] Re: Trying to display JSON object

2009-08-22 Thread Chad Etzel
Hi TrixJo, Try this: [code] for( $counter = 0; $counter <= 5; $counter++){ echo $json->results[$counter]->text; } [/code] -Chad On Sat, Aug 22, 2009 at 7:26 AM, TrixJo wrote: > > I am using the Twitter API and have the following JSON object returned > after a search query.  print_r($json) is

[twitter-dev] Re: Can I DM via the API with username and password?

2009-08-22 Thread Chris Babcock
On Fri, 21 Aug 2009 06:43:21 -0700 (PDT) mchid wrote: > I need my app to be able to send a direct message to a registered > users - so I know their username and the password they use to log in. > Do I need them to manually authorise this first (using oAuth) or can I > avoid this? I think I unde

[twitter-dev] Re: New problem with JSON search API on 32-bit OS?

2009-08-22 Thread Chad Etzel
Hi JSJ, What version of PHP are you using? I know there was a fix in json_decode that went into the latest version (at least for 64 bit version). There is a thread discussing a similar workaround here: http://www.sitepoint.com/forums/showthread.php?t=628346 -Chad On Fri, Aug 21, 2009 at 12:00

[twitter-dev] Re: How you are notified of whitelisting status

2009-08-22 Thread Goblin
You get notification in the form of a DM to the account you applied for whitelisting with. In my experience it takes anything from 2 days to over a week, depending on how much DDoS Twitter is under at the time. On Aug 21, 5:40 pm, Neicole wrote: > We applied for whitelisting this past weekend a

[twitter-dev] Re: oAuth consumer keys, tokens...how sensitive are those keys?

2009-08-22 Thread Chris Babcock
> On Aug 19, 10:26 am, Andriy Ivanov wrote: > > I've written Desktop app that usesoAuthto communicate with twitter. > > All the keys/tokens/pin I save in Settings file in my project > > (.NET). Is it safe to do so or what is the better approach to save > > this kind of data? What if all the toke

[twitter-dev] Re: API Version of /friend_requests?

2009-08-22 Thread Chris Babcock
> Is there an API version of http://twitter.com/friend_requests ? I want > to be able to pre-authorize people to follow me so that I don't have > to manually check my email and visit that page every once in a while. Not necessary. Users can follow you without authorization. Chris Babcock

[twitter-dev] Re: /statuses/destroy error erroneously?

2009-08-22 Thread atebits
Aha, looks like there already is one: http://code.google.com/p/twitter-api/issues/detail?id=949&colspec=ID%20Stars%20Type%20Status%20Priority%20Owner%20Summary%20Opened%20Modified%20Component On Aug 22, 3:34 am, Chad Etzel wrote: > Please file a ticket:http://code.google.com/p/twitter-api/issues

[twitter-dev] Re: Stop playing around with Source parameters

2009-08-22 Thread Gonzalo Larralde
On Sat, Aug 22, 2009 at 5:18 AM, PJB wrote: > Hehehe... your regex isn't much better! > > /(.+?)<\/a>/is > > On Aug 21, 9:54 pm, Gonzalo Larralde > wrote: >> Or, maybe, you can try using this regex: >> >> /(.*?)<\/a>/ >> >> and let them do whatever they want. KISS! You'll *never* get an in that

[twitter-dev] oauth_callback in Authorization header for Request Tokens

2009-08-22 Thread Andrew McCall
HI, I've been working with the spring-security-oauth code (http://spring- security-oauth.codehaus.org/) to use it for signin with twitter and I've come across an issue where I get a 401 Unauthorized when the oauth_callback param is submitted in the Authorization header, but works when the rest of

[twitter-dev] Re: how can I get user address using Twitter API?

2009-08-22 Thread Dossy Shiobara
On 8/22/09 10:47 AM, Andrew Badera wrote: Hopefully most of us use Spam Poison and/or CAPTCHAs to conceal or obscure contact addresses on our site :) Of the ~10M or so Twitter accounts, even if I could get 10% or 1M accounts associated back to valid email addresses, that's like printing your

[twitter-dev] Re: Developer Preview: Geolocation API

2009-08-22 Thread jim.renkel
Is there any possibility of a test site, with these API response changes, being made available before the changes are introduced to the real site? This would allow us to test our sites and applications against the test site and fix any bugs and bombs before users would otherwise experience them w

[twitter-dev] Re: New problem with JSON search API on 32-bit OS?

2009-08-22 Thread shiplu
PHP doesn't support 64 bit integers. Thats the problem. Most of the other language doesnt have this problem. But PHP is used in most web sites. I suggest you use BIGINT as db column type. and when storing the id check if its a negetive number. If its negetive number, add the id (since_id, id, max_

[twitter-dev] Re: I can't use OAuth and I want to apply source(from[myApp])

2009-08-22 Thread JDG
User would log in to Twitese, which would do all its work through a proxy (or set of proxies) based outside the US which would handle all the Twitter traffic -- you'd never actually have to access the twitter site. On Sat, Aug 22, 2009 at 09:14, bang wrote: > > yes, I can access twitter.com with

[twitter-dev] Re: I can't use OAuth and I want to apply source(from[myApp]) [And more!!!]

2009-08-22 Thread jim.renkel
I have a similar, perhaps broader, issue and a suggestion for a solution. My problem is that my site, http://twxlate.com, supports 40+ languages for its user interface, not just the two supported by twitter.com. By that I mean that the user interface is available in 40+ languages, not just that i

[twitter-dev] Re: API Version of /friend_requests?

2009-08-22 Thread Kyle Mulka
I should have clarified. This account is private, so it has to approve all followers. -Kyle On Aug 22, 1:10 pm, Chris Babcock wrote: > > Is there an API version ofhttp://twitter.com/friend_requests? I want > > to be able to pre-authorize people to follow me so that I don't have > > to manually

[twitter-dev] Number of OAuth implementations

2009-08-22 Thread eugene.man...@gmail.com
I was looking for the answers on these two questions, but could not find any official (or unofficial) information: 1. How many sites implemented OAuth? 2. How many Twitter users logged in to a site using OAuth? Thanks in advance, --Eugene

[twitter-dev] How to get multiple profile_image_urls

2009-08-22 Thread Fardinis
I would like to get all the profile_image_urls from one api call based on the user ids provided, or simply just the ones that show up under "Following" of each twitter profile page. Is this possible? Thanks, Alexander

[twitter-dev] Re: how can I get user address using Twitter API?

2009-08-22 Thread Allan Zhang
Why email addresses equal money? I really can not see the value - Thanks Allan Zhang Send from iPhone On Aug 22, 2009, at 2:25 PM, Dossy Shiobara wrote: > > On 8/22/09 10:47 AM, Andrew Badera wrote: >> Hopefully most of us use Spam Poison and/or CAPTCHAs to conceal or >> obscure contact addres

[twitter-dev] Re: how can I get user address using Twitter API?

2009-08-22 Thread JDG
because degenerate spammers will buy lists of email addresses to market their crappy products. On Sat, Aug 22, 2009 at 15:41, Allan Zhang wrote: > > Why email addresses equal money? I really can not see the value > > - > Thanks > Allan Zhang > Send from iPhone > > On Aug 22, 2009, at 2:25 PM, Do