[twitter-dev] Re: Twitter Live Event Beaming

2009-07-08 Thread Andrew Badera

On Tue, Jul 7, 2009 at 11:25 PM, Juslin Guojuslin...@gmail.com wrote:

 Dear All,

 I not sure if this is the place to ask this question. May i check does
 anyone know of a full-screen application/flash app/web-apps that allow
 me to beam on a projector/led screen live updates from twitter. I have
 an event where we would like to let the stadium audience twitter in.

 Regards
 Juslin


One of my recent projects I believe does exactly what you're looking
for Juslin. We had output on Times Square's largest electronic
billboard on June 8th, and are currently gearing up the software for
similar/broader tasks as well. Feel free to drop me an email off-list
if you're interested in learning more.

Thanks-
- Andy Badera
- and...@badera.us
- Google me: http://www.google.com/search?q=andrew+badera
- This email is: [ ] bloggable [x] ask first [ ] private


[twitter-dev] Re: Spamming via addition of trending words to tweets

2009-07-08 Thread Andrew Badera

On Tue, Jul 7, 2009 at 8:34 PM, Jeffrey
Greenbergjeffreygreenb...@gmail.com wrote:
can we
 expect more aggressive filtering from Twitter itself or is this really
 a full-blown app responsibility?

Careful what you ask for -- if Twitter gets too aggressive, it's bound
to impinge upon some developers and users. I'd rather see apps deal
with some degree of spam on an audience-appropriate basis than have
Twitter issuing edicts on 100% of what is, or is not, spam. Not only
do people who all speak the same language have different opinions on
what, exactly, is spam, but start figuring in language/cultural
differences and I'd bet your as likely to offend someone with attempts
at central censoring of what you perceive to be spam as you are to
offend someone by failing to eradicate potential spam to begin with.

Might be nice if Twitter, or some client app, applied a GMail-style
spam filter ... or any other user-rule/behavior based filtering where
users decide, individually, what is, or is not, spam, and intelligent
algorithms on Twitter's side take user preferences into account and
THEN become more proactive.

Thanks-
- Andy Badera
- and...@badera.us
- Google me: http://www.google.com/search?q=andrew+badera
- This email is: [ ] bloggable [x] ask first [ ] private


[twitter-dev] Re: Twitter Live Event Beaming

2009-07-08 Thread Alex Mou

We are doing Chinese minblog in China: www.zuosa.com
And we have been doing that big screen streaming for the last couple
of years at conferences in China.
It's a free service. Check out this for the use cases: http://blog.zuosa.com

Are you in China? Then it is easy.
If not in China, we might help. It can be adapted to twitter pretty quickly.

Please contact me offlist.

Alex
Chinese Twitter: www.zuosa.com



On Wed, Jul 8, 2009 at 11:25 AM, Juslin Guojuslin...@gmail.com wrote:

 Dear All,

 I not sure if this is the place to ask this question. May i check does
 anyone know of a full-screen application/flash app/web-apps that allow
 me to beam on a projector/led screen live updates from twitter. I have
 an event where we would like to let the stadium audience twitter in.

 Regards
 Juslin



[twitter-dev] about spidering

2009-07-08 Thread Nerrutis Morkunas

hi, i wrote simple posts, with few special characters, bur google
didn`t spidered any of them. But google didnt spidered them, i cant
find them on that search engine. So what is the reason to use Twitter,
if google doesnt spider?


[twitter-dev] JSON status response gives me negative ID

2009-07-08 Thread AlexanderZn

Hi all!

I'm writing a twitter-widgets that is based on data formated as JSON.
I get the data from
http://twitter.com/statuses/user_timeline.json?screen_name=username

Locally this works like a charm, but when i upload the script to my
webserver i get negative ids.

[id] = -1766397267
instead of,
[id] = 2528570029

I get the data with file_get_contents() and turn it into an array with
json_decode($jsondata,true) with php..

Does anybody have a clue why it is like this?

/ Alex


[twitter-dev] Re: stopping bit.ly automatic shortening of urls

2009-07-08 Thread Swaroop

However, if you paste in a link that is less than 30 characters,
we'll post it in its entirety.  If it's longer than 30 characters,
we'll convert it to a shorter URL.

Source: http://help.twitter.com/portal


[twitter-dev] Re: tweeting more than 140 words

2009-07-08 Thread twittwit

example is http://twitter.com/hashgoogle/status/2531249931

On Jul 8, 11:01 am, twittwit ytbr...@gmail.com wrote:
 hi all,

 i notice that hashgooglehttp://twitter.com/hashgoogleis tweeting
 more than 140words. and it is using api.

 anybody know which api methods allow that? or is that a whitelisting
 thing?

 thanks!

 cheers
 bryan


[twitter-dev] Re: JSON status response gives me negative ID

2009-07-08 Thread Stuart

2009/7/8 AlexanderZn alexan...@liljengard.se:

 Hi all!

 I'm writing a twitter-widgets that is based on data formated as JSON.
 I get the data from
 http://twitter.com/statuses/user_timeline.json?screen_name=username

 Locally this works like a charm, but when i upload the script to my
 webserver i get negative ids.

            [id] = -1766397267
 instead of,
            [id] = 2528570029

 I get the data with file_get_contents() and turn it into an array with
 json_decode($jsondata,true) with php..

 Does anybody have a clue why it is like this?

You're running on 32-bits and json_decode treats numbers it gets as
numbers, so when converted to a signed 32-bit int it becomes negative.

The easiest solution is to use the pear package Services_JSON instead
of json_decode and ensure your code never treats the ID as a number.
The better solution is to move to 64-bit but obviously that may
involve changing hardware so might not be feasible for you.

-Stuart

-- 
http://stut.net/projects/twitter/


[twitter-dev] Re: about spidering

2009-07-08 Thread Cameron Kaiser

 hi, i wrote simple posts, with few special characters, bur google
 didn`t spidered any of them. But google didnt spidered them, i cant
 find them on that search engine. So what is the reason to use Twitter,
 if google doesnt spider?

Obviously not SEO. *ahem*

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- I'd love to go out with you, but I need to clean my toilet brush. 


[twitter-dev] Re: tweeting more than 140 words

2009-07-08 Thread Matt Sanford

In the vien of There's an app for that …

There's a ticket for that: 
http://code.google.com/p/twitter-api/issues/detail?id=807

— Matt

On Jul 8, 2009, at 6:57 AM, Nick Arnett wrote:




On Wed, Jul 8, 2009 at 5:19 AM, twittwit ytbr...@gmail.com wrote:

example is http://twitter.com/hashgoogle/status/2531249931


Huh... that one is 150 characters, which means it won't fit in a 140- 
character database column.  Strange.


Nick





[twitter-dev] Re: Whitelist Limits

2009-07-08 Thread John Kalucki

You should consider using the Streaming API in conjunction with the
REST API to build such a service, it might make things a little
easier. Currently there are several obstacles for a large-scale
integration with a service that intends to duplicate a desktop
application's functionality. The REST API, in part due to rate
limiting, and in part due to the nature of polling, doesn't make this
particularly easy at small scale, and makes it impractical at large-
scale.

As luck would have it, we've been very casually discussing just this
sort of integration. Feel free to mail me your requirements and I'll
get them to the Platform product manager.

-John Kalucki
twitter.com/jkalucki
Services, Twitter Inc.


On Jul 7, 8:57 pm, whoiskb whoi...@gmail.com wrote:
 From what I can tell, the white list limits are 20,000 calls per
 hour.  I am curious if any app out there has come close to hitting
 that limit yet, and if so could you provide some usage details about
 your application?

 I am trying to make a decision about creating a single user desktop
 app vs a multi user web app.  I really want to create it as a web app,
 but I am concerned about the long term viability of the white list
 limit.


[twitter-dev] Re: Spamming via addition of trending words to tweets

2009-07-08 Thread Jeffrey Greenberg

I'm liking Andrew's thoughts regarding sensitivity to what spam is,
and am thinking about the gmail like vote-if-spam approach.

Wondering if the api community (or really twitterers) would use an api
such as this:  smellsLikeSpam( list_of_tweet_ids )...  Twitter could
aggregate and apply policy to resulting votes.

If you're doing a twitter interface app, then you've got to provide
this unpleasant activity to users which they currentl don't have to do
now.  But gmail is an argument in favor of it working well and not
being too onerous on users in the aggregate.

I think the problem in general is more dire for search-based
functionality than for general tweeting, since search picks up not
only (somewhat) older tweets but new ones and potentially in very
large quantities.  So if I pick up a tweets yesterday and today it
becomes spam, I'll want to know about that and be ale to toss the
tweet (god what phrase), which has implications for apps such as mine
and for twitter too...

.







[twitter-dev] Re: Help with twitter profile.

2009-07-08 Thread Slicey

Can anyone help?

On Jul 7, 6:25 pm, Slicey sli...@live.co.uk wrote:
 Basically I am trying to make a site where a user come to the site,
 types in their username, song title, artist title, and uploads a song,
 this then gets stored in a database along with a random generated
 code.
 What I am trying to do is make a twitter clone page of the users
 profile. eg. if a user has the username blahblah and the random code
 in the database is 3hr8e I want it so when I go 
 towww.mysite.com/twitter.php?pwd=3hr8e
 This is what I have tried however I can't get anything to show up. Is
 there something I'm doing wrong?

 ?php
 require (connect.php);
 require (functions.php);
 include(template/twitterheader.php);
 // require the twitter library
 require twitter.lib.php;

 $pwd = mysql_real_escape_string($_GET['pwd']);
         $result = mysql_query(SELECT * FROM songs WHERE pwd='$pwd');
         $screen = mysql_fetch_array($result);
         $username = $screen['username'];

 // initialize the twitter class
 $twitter = new Twitter($username);

 // fetch your profile in xml format

 $xml = $twitter-getUserTimeline();

 /* display the raw xml
 echo 'pre';
 echo $xml;
 echo '/pre';*/

 $twitter_status = new SimpleXMLElement($xml);
 foreach($twitter_status-status as $status){
         echo 'div class=twitter_status';
         foreach($status-user as $user){

         }
         echo $status-text;
         echo $user-followers_count;
         echo 'br/';
         echo 'div class=twitter_posted_atstrongPosted at:/strong '.
 $status-created_at.'/div';
         echo '/div';

 }

 include(template/twitterfooter.php);
 ?

 Function:

         function getUserTimeline($options = array(), $format = 'xml') {
                 return $this-apiCall('statuses/user_timeline', 'get', 
 $format,
 $options, true);
         }


[twitter-dev] Re: Help with twitter profile.

2009-07-08 Thread Peter Denton
I think the absence of responses might be that there are many variables in
your code and I cant get anything to show up could mean anything,
including things in your include files, etc
Being much more specific about output makes it easy for the brains to help.


On Wed, Jul 8, 2009 at 8:53 AM, Slicey sli...@live.co.uk wrote:


 Can anyone help?

 On Jul 7, 6:25 pm, Slicey sli...@live.co.uk wrote:
  Basically I am trying to make a site where a user come to the site,
  types in their username, song title, artist title, and uploads a song,
  this then gets stored in a database along with a random generated
  code.
  What I am trying to do is make a twitter clone page of the users
  profile. eg. if a user has the username blahblah and the random code
  in the database is 3hr8e I want it so when I go
 towww.mysite.com/twitter.php?pwd=3hr8e
  This is what I have tried however I can't get anything to show up. Is
  there something I'm doing wrong?
 
  ?php
  require (connect.php);
  require (functions.php);
  include(template/twitterheader.php);
  // require the twitter library
  require twitter.lib.php;
 
  $pwd = mysql_real_escape_string($_GET['pwd']);
  $result = mysql_query(SELECT * FROM songs WHERE pwd='$pwd');
  $screen = mysql_fetch_array($result);
  $username = $screen['username'];
 
  // initialize the twitter class
  $twitter = new Twitter($username);
 
  // fetch your profile in xml format
 
  $xml = $twitter-getUserTimeline();
 
  /* display the raw xml
  echo 'pre';
  echo $xml;
  echo '/pre';*/
 
  $twitter_status = new SimpleXMLElement($xml);
  foreach($twitter_status-status as $status){
  echo 'div class=twitter_status';
  foreach($status-user as $user){
 
  }
  echo $status-text;
  echo $user-followers_count;
  echo 'br/';
  echo 'div class=twitter_posted_atstrongPosted at:/strong
 '.
  $status-created_at.'/div';
  echo '/div';
 
  }
 
  include(template/twitterfooter.php);
  ?
 
  Function:
 
  function getUserTimeline($options = array(), $format = 'xml') {
  return $this-apiCall('statuses/user_timeline', 'get',
 $format,
  $options, true);
  }




-- 
Peter M. Denton
www.twibs.com
i...@twibs.com

Twibs makes Top 20 apps on Twitter - http://tinyurl.com/bopu6c


[twitter-dev] Re: Spamming via addition of trending words to tweets

2009-07-08 Thread Duane Roelands

I didn't even know that there was a way to report tweet spam to
Twitter.  I'll definitely add a Report Spam feature to my
application.

On Jul 8, 11:28 am, Jeffrey Greenberg jeffreygreenb...@gmail.com
wrote:
 I'm liking Andrew's thoughts regarding sensitivity to what spam is,
 and am thinking about the gmail like vote-if-spam approach.

 Wondering if the api community (or really twitterers) would use an api
 such as this:  smellsLikeSpam( list_of_tweet_ids )...  Twitter could
 aggregate and apply policy to resulting votes.

 If you're doing a twitter interface app, then you've got to provide
 this unpleasant activity to users which they currentl don't have to do
 now.  But gmail is an argument in favor of it working well and not
 being too onerous on users in the aggregate.

 I think the problem in general is more dire for search-based
 functionality than for general tweeting, since search picks up not
 only (somewhat) older tweets but new ones and potentially in very
 large quantities.  So if I pick up a tweets yesterday and today it
 becomes spam, I'll want to know about that and be ale to toss the
 tweet (god what phrase), which has implications for apps such as mine
 and for twitter too...

 .


[twitter-dev] Re: Help with twitter profile.

2009-07-08 Thread Slicey

Can anyone help?

On Jul 7, 6:25 pm, Slicey sli...@live.co.uk wrote:
 Basically I am trying to make a site where a user come to the site,
 types in their username, song title, artist title, and uploads a song,
 this then gets stored in a database along with a random generated
 code.
 What I am trying to do is make a twitter clone page of the users
 profile. eg. if a user has the username blahblah and the random code
 in the database is 3hr8e I want it so when I go 
 towww.mysite.com/twitter.php?pwd=3hr8e
 This is what I have tried however I can't get anything to show up. Is
 there something I'm doing wrong?

 ?php
 require (connect.php);
 require (functions.php);
 include(template/twitterheader.php);
 // require the twitter library
 require twitter.lib.php;

 $pwd = mysql_real_escape_string($_GET['pwd']);
         $result = mysql_query(SELECT * FROM songs WHERE pwd='$pwd');
         $screen = mysql_fetch_array($result);
         $username = $screen['username'];

 // initialize the twitter class
 $twitter = new Twitter($username);

 // fetch your profile in xml format

 $xml = $twitter-getUserTimeline();

 /* display the raw xml
 echo 'pre';
 echo $xml;
 echo '/pre';*/

 $twitter_status = new SimpleXMLElement($xml);
 foreach($twitter_status-status as $status){
         echo 'div class=twitter_status';
         foreach($status-user as $user){

         }
         echo $status-text;
         echo $user-followers_count;
         echo 'br/';
         echo 'div class=twitter_posted_atstrongPosted at:/strong '.
 $status-created_at.'/div';
         echo '/div';

 }

 include(template/twitterfooter.php);
 ?

 Function:

         function getUserTimeline($options = array(), $format = 'xml') {
                 return $this-apiCall('statuses/user_timeline', 'get', 
 $format,
 $options, true);
         }


[twitter-dev] Re: Help with twitter profile.

2009-07-08 Thread Duane Roelands

Well, it doesn't look like you ever give the user's password to the
Twitter object.  It's probably failing on authentication.

On Jul 8, 12:02 pm, Slicey sli...@live.co.uk wrote:
 Can anyone help?

 On Jul 7, 6:25 pm, Slicey sli...@live.co.uk wrote:

  Basically I am trying to make a site where a user come to the site,
  types in their username, song title, artist title, and uploads a song,
  this then gets stored in a database along with a random generated
  code.
  What I am trying to do is make a twitter clone page of the users
  profile. eg. if a user has the username blahblah and the random code
  in the database is 3hr8e I want it so when I go 
  towww.mysite.com/twitter.php?pwd=3hr8e
  This is what I have tried however I can't get anything to show up. Is
  there something I'm doing wrong?

  ?php
  require (connect.php);
  require (functions.php);
  include(template/twitterheader.php);
  // require the twitter library
  require twitter.lib.php;

  $pwd = mysql_real_escape_string($_GET['pwd']);
  $result = mysql_query(SELECT * FROM songs WHERE pwd='$pwd');
  $screen = mysql_fetch_array($result);
  $username = $screen['username'];

  // initialize the twitter class
  $twitter = new Twitter($username);

  // fetch your profile in xml format

  $xml = $twitter-getUserTimeline();

  /* display the raw xml
  echo 'pre';
  echo $xml;
  echo '/pre';*/

  $twitter_status = new SimpleXMLElement($xml);
  foreach($twitter_status-status as $status){
  echo 'div class=twitter_status';
  foreach($status-user as $user){

  }
  echo $status-text;
  echo $user-followers_count;
  echo 'br/';
  echo 'div class=twitter_posted_atstrongPosted at:/strong '.
  $status-created_at.'/div';
  echo '/div';

  }

  include(template/twitterfooter.php);
  ?

  Function:

  function getUserTimeline($options = array(), $format = 'xml') {
  return $this-apiCall('statuses/user_timeline', 'get', 
  $format,
  $options, true);
  }


[twitter-dev] Re: Spamming via addition of trending words to tweets

2009-07-08 Thread Blaine Garrett

Outside of trends, another area where this could be handy is when
using Twitter as a sort of OpenId style authentication method. i.e.
Sign in with your twitter account.

Our service we have a lot of tools and algorithms in place to
eradicate spam. A few months ago, we offered twitter authentication as
an alternate means to create an account on our site (in addition to
Facebook, OpenId, and regular password signup). As such a small subset
of our users are also Twitter users and early adopters of the
alternate login seemed to be spammers based on our algorithms. I
assume if they are a spammer on our service they are likely a spammer
on Twitter... and vice versa. A smellLikeSpam(user_id) api call to
inform Twitter and a sort of X-Spam style header in the user
information details would be great. Reciprocating this information
might be valuable in nipping spam at the bud.

IPs and URL tie ins with other Blacklists would be great as well, but
might be overkill at first.

Blaine




On Jul 8, 10:28 am, Jeffrey Greenberg jeffreygreenb...@gmail.com
wrote:
 I'm liking Andrew's thoughts regarding sensitivity to what spam is,
 and am thinking about the gmail like vote-if-spam approach.

 Wondering if the api community (or really twitterers) would use an api
 such as this:  smellsLikeSpam( list_of_tweet_ids )...  Twitter could
 aggregate and apply policy to resulting votes.

 If you're doing a twitter interface app, then you've got to provide
 this unpleasant activity to users which they currentl don't have to do
 now.  But gmail is an argument in favor of it working well and not
 being too onerous on users in the aggregate.

 I think the problem in general is more dire for search-based
 functionality than for general tweeting, since search picks up not
 only (somewhat) older tweets but new ones and potentially in very
 large quantities.  So if I pick up a tweets yesterday and today it
 becomes spam, I'll want to know about that and be ale to toss the
 tweet (god what phrase), which has implications for apps such as mine
 and for twitter too...

 .


[twitter-dev] Re: stopping bit.ly automatic shortening of urls

2009-07-08 Thread sull

this is a topic of interest to me for a long while.
been meaning to start a thread.

i'm often bothered by the automatic shortening of urls when in fact
the url does not need to be shortened.  in these cases, i of course do
not want to hide the real url by using a forced 3rd party service like
bit.ly.
i have use cases where all that is posted is a url.  and the url
includes a long detailed description of the link.  this, in my
opinion, is smart as the only object to maintain is the url itself
which provides a hyperlink and a short message combined.  sometimes,
these use cases are using natural language vanity urls to form short
sentences.

ie. 
http://john.tot.al.ly/wiped-out-on-this-huge-wave-in-hawaii-at-the-Surf-Hawaii-Surf-School-on-the-island-of-Oahu

the other annoying thing that is related to the twitter UI is how long
urls are cut-off//trimmed even if they dont need to be.  the above
example would be destroyed because it would result in something
like:

http://john.tot.al.ly/wip

actually, i'm not certain if that is still the case as it seems to me
that every url is shortened with bit.ly now.  i grok the value in
tracking urls and bit.ly may be bought by twitter at some point and
this notion of url tracking will be fully integrated but the
debate about url shortners in general how they can break the
natural web, are vulnerable to massive broken links and simply thr
cryptic format itself that hides the true location are all to be
considered and continued to be debated.

at the very least, 3rd party developers should get an override
toggle.
that is something i think we all need to start demanding.

and yes, an official doc explaining the current and future
impementations of url shortening on twitter is definitely needed now.

http://plea.se/twitter-dont-shorten-this-url-with-bitly-since-it-does-not-need-to-be-shortened-with-8-available-characters-remaining

http://twitter.com/sull/status/2534470050

@sull

On Jul 8, 4:50 am, Swaroop rh.swar...@gmail.com wrote:
 However, if you paste in a link that is less than 30 characters,
 we'll post it in its entirety.  If it's longer than 30 characters,
 we'll convert it to a shorter URL.

 Source:http://help.twitter.com/portal


[twitter-dev] Re: Help with twitter profile.

2009-07-08 Thread Slicey

Can anyone help?

On Jul 7, 6:25 pm, Slicey sli...@live.co.uk wrote:
 Basically I am trying to make a site where a user come to the site,
 types in their username, song title, artist title, and uploads a song,
 this then gets stored in a database along with a random generated
 code.
 What I am trying to do is make a twitter clone page of the users
 profile. eg. if a user has the username blahblah and the random code
 in the database is 3hr8e I want it so when I go 
 towww.mysite.com/twitter.php?pwd=3hr8e
 This is what I have tried however I can't get anything to show up. Is
 there something I'm doing wrong?

 ?php
 require (connect.php);
 require (functions.php);
 include(template/twitterheader.php);
 // require the twitter library
 require twitter.lib.php;

 $pwd = mysql_real_escape_string($_GET['pwd']);
         $result = mysql_query(SELECT * FROM songs WHERE pwd='$pwd');
         $screen = mysql_fetch_array($result);
         $username = $screen['username'];

 // initialize the twitter class
 $twitter = new Twitter($username);

 // fetch your profile in xml format

 $xml = $twitter-getUserTimeline();

 /* display the raw xml
 echo 'pre';
 echo $xml;
 echo '/pre';*/

 $twitter_status = new SimpleXMLElement($xml);
 foreach($twitter_status-status as $status){
         echo 'div class=twitter_status';
         foreach($status-user as $user){

         }
         echo $status-text;
         echo $user-followers_count;
         echo 'br/';
         echo 'div class=twitter_posted_atstrongPosted at:/strong '.
 $status-created_at.'/div';
         echo '/div';

 }

 include(template/twitterfooter.php);
 ?

 Function:

         function getUserTimeline($options = array(), $format = 'xml') {
                 return $this-apiCall('statuses/user_timeline', 'get', 
 $format,
 $options, true);
         }


[twitter-dev] Re: JSON status response gives me negative ID

2009-07-08 Thread AlexanderZn

On Jul 8, 2:26 pm, Stuart stut...@gmail.com wrote:
 2009/7/8 AlexanderZn alexan...@liljengard.se:





  Hi all!

  I'm writing a twitter-widgets that is based on data formated as JSON.
  I get the data from
 http://twitter.com/statuses/user_timeline.json?screen_name=username

  Locally this works like a charm, but when i upload the script to my
  webserver i get negative ids.

             [id] = -1766397267
  instead of,
             [id] = 2528570029

  I get the data with file_get_contents() and turn it into an array with
  json_decode($jsondata,true) with php..

  Does anybody have a clue why it is like this?

 You're running on 32-bits and json_decode treats numbers it gets as
 numbers, so when converted to a signed 32-bit int it becomes negative.

 The easiest solution is to use the pear package Services_JSON instead
 of json_decode and ensure your code never treats the ID as a number.
 The better solution is to move to 64-bit but obviously that may
 involve changing hardware so might not be feasible for you.

 -Stuart

 --http://stut.net/projects/twitter/

Thanks!

Solved my problem. Since im planning on releasing my widget to the
public i would like it to work on most of the systems..
My solution was easy.
I just added a preg_replace and converted the int to a string:

preg_replace('#id\:([0-9]+)#i','id:$1',file_get_contents($url))

Thanks for the pointer!

/ Alex


[twitter-dev] Re: stopping bit.ly automatic shortening of urls

2009-07-08 Thread sull

ironically, my example urls are shortened here ;)

On Jul 8, 12:20 pm, sull sullele...@gmail.com wrote:
 this is a topic of interest to me for a long while.
 been meaning to start a thread.

 i'm often bothered by the automatic shortening of urls when in fact
 the url does not need to be shortened.  in these cases, i of course do
 not want to hide the real url by using a forced 3rd party service like
 bit.ly.
 i have use cases where all that is posted is a url.  and the url
 includes a long detailed description of the link.  this, in my
 opinion, is smart as the only object to maintain is the url itself
 which provides a hyperlink and a short message combined.  sometimes,
 these use cases are using natural language vanity urls to form short
 sentences.

 ie.http://john.tot.al.ly/wiped-out-on-this-huge-wave-in-hawaii-at-the-Su...

 the other annoying thing that is related to the twitter UI is how long
 urls are cut-off//trimmed even if they dont need to be.  the above
 example would be destroyed because it would result in something
 like:

 http://john.tot.al.ly/wip

 actually, i'm not certain if that is still the case as it seems to me
 that every url is shortened with bit.ly now.  i grok the value in
 tracking urls and bit.ly may be bought by twitter at some point and
 this notion of url tracking will be fully integrated but the
 debate about url shortners in general how they can break the
 natural web, are vulnerable to massive broken links and simply thr
 cryptic format itself that hides the true location are all to be
 considered and continued to be debated.

 at the very least, 3rd party developers should get an override
 toggle.
 that is something i think we all need to start demanding.

 and yes, an official doc explaining the current and future
 impementations of url shortening on twitter is definitely needed now.

 http://plea.se/twitter-dont-shorten-this-url-with-bitly-since-it-does...

 http://twitter.com/sull/status/2534470050

 @sull

 On Jul 8, 4:50 am, Swaroop rh.swar...@gmail.com wrote:

  However, if you paste in a link that is less than 30 characters,
  we'll post it in its entirety.  If it's longer than 30 characters,
  we'll convert it to a shorter URL.

  Source:http://help.twitter.com/portal


[twitter-dev] updating follow/shadow/birddog list of users

2009-07-08 Thread braver

Uf you have thousands of users, do you really have to cook up a
following file with comma-separated say 100,000 user IDs?  Should it
all be on one line?  Now what happens if we want to drop some and add
some IDs -- do we have to restart and re-upload all that list again?
I see when the curl -d @following ... starts up, it does that.
Restarting with huge lists sounds like data loss...

Cheers,
Alexy


[twitter-dev] Re: Trying very hard to use OAuth - need help!

2009-07-08 Thread Doug Williams
Abraham Williams has a great PHP sample here that is simple and easy to use:
http://twitter.abrah.am/

Thanks,
Doug



On Wed, Jul 8, 2009 at 12:25 PM, Echieo ech...@gmail.com wrote:


 Hey everyone,

 I'd really like to use OAuth for my new twitter application, as I know
 Twitter is trying to move in that direction, but I can't for the life
 of me figure out how. I've been over the wiki documentation and I
 understand the theory but have no idea how to implement it. I see
 there are several libraries out there but they are all very complex.

 Can someone give me a simple PHP example what to do with my consumer
 key and consumer secret? I can't find a clear explanation of oauth
 syntax anywhere. How do I actually send the request?

 Attempting to be compliant,
 Echieo



[twitter-dev] Trying very hard to use OAuth - need help!

2009-07-08 Thread Echieo

Hey everyone,

I'd really like to use OAuth for my new twitter application, as I know
Twitter is trying to move in that direction, but I can't for the life
of me figure out how. I've been over the wiki documentation and I
understand the theory but have no idea how to implement it. I see
there are several libraries out there but they are all very complex.

Can someone give me a simple PHP example what to do with my consumer
key and consumer secret? I can't find a clear explanation of oauth
syntax anywhere. How do I actually send the request?

Attempting to be compliant,
Echieo


[twitter-dev] Re: Trying very hard to use OAuth - need help!

2009-07-08 Thread Echieo

I've been over his example but it doesn't explain how to use oauth,
only how to use his library. I'm having trouble figuring out what to
send via curl to twitter to create my own. I could always use his
library but I'd like to create one myself. I've been trying to
deconstruct all of the objects he builds to set up his curl string but
no luck yet.

On Jul 8, 3:34 pm, Doug Williams d...@twitter.com wrote:
 Abraham Williams has a great PHP sample here that is simple and easy to 
 use:http://twitter.abrah.am/

 Thanks,
 Doug



 On Wed, Jul 8, 2009 at 12:25 PM, Echieo ech...@gmail.com wrote:

  Hey everyone,

  I'd really like to use OAuth for my new twitter application, as I know
  Twitter is trying to move in that direction, but I can't for the life
  of me figure out how. I've been over the wiki documentation and I
  understand the theory but have no idea how to implement it. I see
  there are several libraries out there but they are all very complex.

  Can someone give me a simple PHP example what to do with my consumer
  key and consumer secret? I can't find a clear explanation of oauth
  syntax anywhere. How do I actually send the request?

  Attempting to be compliant,
  Echieo


[twitter-dev] Re: Trying very hard to use OAuth - need help!

2009-07-08 Thread Abraham Williams
I would advise reading: http://oauth.net/documentation/getting-started

And looking over the OAuth PHP lib:
http://code.google.com/p/oauth/source/browse/#svn/code/php

Abraham

On Wed, Jul 8, 2009 at 14:56, Echieo ech...@gmail.com wrote:


 I've been over his example but it doesn't explain how to use oauth,
 only how to use his library. I'm having trouble figuring out what to
 send via curl to twitter to create my own. I could always use his
 library but I'd like to create one myself. I've been trying to
 deconstruct all of the objects he builds to set up his curl string but
 no luck yet.

 On Jul 8, 3:34 pm, Doug Williams d...@twitter.com wrote:
  Abraham Williams has a great PHP sample here that is simple and easy to
 use:http://twitter.abrah.am/
 
  Thanks,
  Doug
 
 
 
  On Wed, Jul 8, 2009 at 12:25 PM, Echieo ech...@gmail.com wrote:
 
   Hey everyone,
 
   I'd really like to use OAuth for my new twitter application, as I know
   Twitter is trying to move in that direction, but I can't for the life
   of me figure out how. I've been over the wiki documentation and I
   understand the theory but have no idea how to implement it. I see
   there are several libraries out there but they are all very complex.
 
   Can someone give me a simple PHP example what to do with my consumer
   key and consumer secret? I can't find a clear explanation of oauth
   syntax anywhere. How do I actually send the request?
 
   Attempting to be compliant,
   Echieo




-- 
Abraham Williams | Community Evangelist | http://web608.org
Hacker | http://abrah.am | http://twitter.com/abraham
Project | http://fireeagle.labs.poseurtech.com
This email is: [ ] blogable [x] ask first [ ] private.


[twitter-dev] Illegal byte sequence 0x00 in UTF8

2009-07-08 Thread braver

I'm loading twits into PostgreSQL, and get a few hundreds of errors
for illegal sequence 0x00 in UTF8, e.g. (each leading . is 10,000
gardenhose twits):

.org.postgresql.util.PSQLException: ERROR: invalid byte sequence for
encoding UTF8: 0x00 [loving the weather here in sunny birmingham uk
at the moment but its hard to sleep in when imfeeling lazy lol]
com.tfitter.db.DBError: CANNOT PUT TWIT 2283513311
ROLLBACK uid=21490127 tid=2283513311
org.postgresql.util.PSQLException: ERROR: invalid byte sequence
for encoding UTF8: 0x00 F?9H^f'??%???p?{^]
com.tfitter.db.DBError: CANNOT PUT TWIT 2283842814
ROLLBACK uid=30029372 tid=2283842814
...org.postgresql.util.PSQLException: ERROR: invalid byte sequence for
encoding UTF8: 0x00 [...@andycrofford  まだ脱ぐな。そろそろこのこと考えるのは最後にされると、5エ譛ォ遶ッ
縺ョ譁ケ縺ッ蜃コ鬘後&繧後腟蕭⒢㎢⒢⒢]

Anybody knows how to get rid of those 0x00s cleanly in Scala/Java?
Cheers,
Alexy


[twitter-dev] Re: Trying very hard to use OAuth - need help!

2009-07-08 Thread Petermdenton


Hey Echieo
You can ping me off the list and I can help you get something working.

On Jul 8, 2009, at 12:56 PM, Echieo ech...@gmail.com wrote:



I've been over his example but it doesn't explain how to use oauth,
only how to use his library. I'm having trouble figuring out what to
send via curl to twitter to create my own. I could always use his
library but I'd like to create one myself. I've been trying to
deconstruct all of the objects he builds to set up his curl string but
no luck yet.

On Jul 8, 3:34 pm, Doug Williams d...@twitter.com wrote:
Abraham Williams has a great PHP sample here that is simple and  
easy to use:http://twitter.abrah.am/


Thanks,
Doug



On Wed, Jul 8, 2009 at 12:25 PM, Echieo ech...@gmail.com wrote:


Hey everyone,


I'd really like to use OAuth for my new twitter application, as I  
know
Twitter is trying to move in that direction, but I can't for the  
life

of me figure out how. I've been over the wiki documentation and I
understand the theory but have no idea how to implement it. I see
there are several libraries out there but they are all very complex.



Can someone give me a simple PHP example what to do with my consumer
key and consumer secret? I can't find a clear explanation of oauth
syntax anywhere. How do I actually send the request?



Attempting to be compliant,
Echieo


[twitter-dev] Re: stopping bit.ly automatic shortening of urls

2009-07-08 Thread whoiskb

I am curious if there has ever been an official response from twitter
on why some simple HTML has not been allowed in a tweet?  If we were
able to use an anchor tag, and the HTML did not count against the 140
character limit, then the need for a URL shortener service would not
be needed.


On Jul 8, 10:27 am, sull sullele...@gmail.com wrote:
 ironically, my example urls are shortened here ;)

 On Jul 8, 12:20 pm, sull sullele...@gmail.com wrote:



  this is a topic of interest to me for a long while.
  been meaning to start a thread.

  i'm often bothered by the automatic shortening of urls when in fact
  the url does not need to be shortened.  in these cases, i of course do
  not want to hide the real url by using a forced 3rd party service like
  bit.ly.
  i have use cases where all that is posted is a url.  and the url
  includes a long detailed description of the link.  this, in my
  opinion, is smart as the only object to maintain is the url itself
  which provides a hyperlink and a short message combined.  sometimes,
  these use cases are using natural language vanity urls to form short
  sentences.

  ie.http://john.tot.al.ly/wiped-out-on-this-huge-wave-in-hawaii-at-the-Su...

  the other annoying thing that is related to the twitter UI is how long
  urls are cut-off//trimmed even if they dont need to be.  the above
  example would be destroyed because it would result in something
  like:

 http://john.tot.al.ly/wip

  actually, i'm not certain if that is still the case as it seems to me
  that every url is shortened with bit.ly now.  i grok the value in
  tracking urls and bit.ly may be bought by twitter at some point and
  this notion of url tracking will be fully integrated but the
  debate about url shortners in general how they can break the
  natural web, are vulnerable to massive broken links and simply thr
  cryptic format itself that hides the true location are all to be
  considered and continued to be debated.

  at the very least, 3rd party developers should get an override
  toggle.
  that is something i think we all need to start demanding.

  and yes, an official doc explaining the current and future
  impementations of url shortening on twitter is definitely needed now.

 http://plea.se/twitter-dont-shorten-this-url-with-bitly-since-it-does...

 http://twitter.com/sull/status/2534470050

  @sull

  On Jul 8, 4:50 am, Swaroop rh.swar...@gmail.com wrote:

   However, if you paste in a link that is less than 30 characters,
   we'll post it in its entirety.  If it's longer than 30 characters,
   we'll convert it to a shorter URL.

   Source:http://help.twitter.com/portal


[twitter-dev] Re: stopping bit.ly automatic shortening of urls

2009-07-08 Thread Joel Strellner


It goes back to the root of twitter originally being a SMS  
application. I recall hearing or reading someone on the Twitter team  
saying that.


-Joel

On Jul 8, 2009, at 1:31 PM, whoiskb whoi...@gmail.com wrote:



I am curious if there has ever been an official response from twitter
on why some simple HTML has not been allowed in a tweet?  If we were
able to use an anchor tag, and the HTML did not count against the 140
character limit, then the need for a URL shortener service would not
be needed.


On Jul 8, 10:27 am, sull sullele...@gmail.com wrote:

ironically, my example urls are shortened here ;)

On Jul 8, 12:20 pm, sull sullele...@gmail.com wrote:




this is a topic of interest to me for a long while.
been meaning to start a thread.



i'm often bothered by the automatic shortening of urls when in fact
the url does not need to be shortened.  in these cases, i of  
course do
not want to hide the real url by using a forced 3rd party service  
like

bit.ly.
i have use cases where all that is posted is a url.  and the url
includes a long detailed description of the link.  this, in my
opinion, is smart as the only object to maintain is the url itself
which provides a hyperlink and a short message combined.  sometimes,
these use cases are using natural language vanity urls to form short
sentences.


ie.http://john.tot.al.ly/wiped-out-on-this-huge-wave-in-hawaii-at- 
the-Su...


the other annoying thing that is related to the twitter UI is how  
long

urls are cut-off//trimmed even if they dont need to be.  the above
example would be destroyed because it would result in something
like:



http://john.tot.al.ly/wip


actually, i'm not certain if that is still the case as it seems to  
me

that every url is shortened with bit.ly now.  i grok the value in
tracking urls and bit.ly may be bought by twitter at some point and
this notion of url tracking will be fully integrated but the
debate about url shortners in general how they can break the
natural web, are vulnerable to massive broken links and simply thr
cryptic format itself that hides the true location are all to be
considered and continued to be debated.



at the very least, 3rd party developers should get an override
toggle.
that is something i think we all need to start demanding.



and yes, an official doc explaining the current and future
impementations of url shortening on twitter is definitely needed  
now.


http://plea.se/twitter-dont-shorten-this-url-with-bitly-since-it-does 
...



http://twitter.com/sull/status/2534470050



@sull



On Jul 8, 4:50 am, Swaroop rh.swar...@gmail.com wrote:



However, if you paste in a link that is less than 30 characters,
we'll post it in its entirety.  If it's longer than 30 characters,
we'll convert it to a shorter URL.



Source:http://help.twitter.com/portal


[twitter-dev] Re: updating follow/shadow/birddog list of users

2009-07-08 Thread Alex Payne
Yes, it's a bit of a pain right now. Long term, we intend on providing
methods in the REST API that you can call from another process, while
connected to the Streaming API. Those methods will allow you to add and
remove user IDs from the list of users you're getting streaming updates
from.

On Wed, Jul 8, 2009 at 12:17, braver delivera...@gmail.com wrote:


 Uf you have thousands of users, do you really have to cook up a
 following file with comma-separated say 100,000 user IDs?  Should it
 all be on one line?  Now what happens if we want to drop some and add
 some IDs -- do we have to restart and re-upload all that list again?
 I see when the curl -d @following ... starts up, it does that.
 Restarting with huge lists sounds like data loss...

 Cheers,
 Alexy




-- 
Alex Payne - Platform Lead, Twitter, Inc.
http://twitter.com/al3x


[twitter-dev] Pull email address after authentication?

2009-07-08 Thread Dave Hensley

If a Twitter user has authenticated my app, is it possible for me to
view their email address?

From what I can tell through the O'Reilly book and Google searches,
the answer is currently no due to, I'm assuming, security
concerns...  But I can think of several reasons why the user may want
to allow me to have this information. For example, they could use my
app to set up email alerts for themselves that would be triggered by
various events, or use it to send them compiled reports, etc. Being
able to read their email address could be very useful, and I would
love to have it as a feature in the API.

Yes, I could also use it to send them spam, but that's why they should
block my app if they don't trust me. People put their email address
into forms all over the Internet all the time, probably hundreds of
times per year, so it seems silly for me not to be able to read it
even with the user's permission.

One feature that should _definitely_ be removed, however, is the
ability to _change_ the user's email addresss. For instance, if a
person authorizes my app and I do this:

$to-OAuthRequest('https://twitter.com/account/update_profile.xml',
array('email' = 'iame...@hotmail.com'), 'POST');

then all I have to do is fill out the Forgotten Password form, check
the confirmation code that gets sent to _my_ hotmail address, and then
suddenly I've got full control over the poor user's account and the
ability to spam all of their followers. Watch out, Ashton!

I can't believe that the Twitter API permits this, but doesn't allow
me to do something simple and useful like emailing the person a list
of their followers. Am I missing something?

Dave.


[twitter-dev] Re: Pull email address after authentication?

2009-07-08 Thread JDG
*Yes, I could also use it to send them spam, but that's why they should
block my app if they don't trust me.*

Shouldn't you be applying the same logic to why they would trust you not to
update their email address?

On Wed, Jul 8, 2009 at 15:47, Dave Hensley davehens...@gmail.com wrote:


 If a Twitter user has authenticated my app, is it possible for me to
 view their email address?

 From what I can tell through the O'Reilly book and Google searches,
 the answer is currently no due to, I'm assuming, security
 concerns...  But I can think of several reasons why the user may want
 to allow me to have this information. For example, they could use my
 app to set up email alerts for themselves that would be triggered by
 various events, or use it to send them compiled reports, etc. Being
 able to read their email address could be very useful, and I would
 love to have it as a feature in the API.

 Yes, I could also use it to send them spam, but that's why they should
 block my app if they don't trust me. People put their email address
 into forms all over the Internet all the time, probably hundreds of
 times per year, so it seems silly for me not to be able to read it
 even with the user's permission.

 One feature that should _definitely_ be removed, however, is the
 ability to _change_ the user's email addresss. For instance, if a
 person authorizes my app and I do this:

 $to-OAuthRequest('https://twitter.com/account/update_profile.xml',
 array('email' = 'iame...@hotmail.com'), 'POST');

 then all I have to do is fill out the Forgotten Password form, check
 the confirmation code that gets sent to _my_ hotmail address, and then
 suddenly I've got full control over the poor user's account and the
 ability to spam all of their followers. Watch out, Ashton!

 I can't believe that the Twitter API permits this, but doesn't allow
 me to do something simple and useful like emailing the person a list
 of their followers. Am I missing something?

 Dave.




-- 
Internets. Serious business.


[twitter-dev] Re: Pull email address after authentication?

2009-07-08 Thread Dave Hensley

Yes, which is why I think it's silly that I can change their email
address but can't view it. I really think it should be the other way
around, don't you?.

Dave.

On Jul 8, 6:00 pm, JDG ghil...@gmail.com wrote:
 *Yes, I could also use it to send them spam, but that's why they should
 block my app if they don't trust me.*

 Shouldn't you be applying the same logic to why they would trust you not to
 update their email address?



 On Wed, Jul 8, 2009 at 15:47, Dave Hensley davehens...@gmail.com wrote:

  If a Twitter user has authenticated my app, is it possible for me to
  view their email address?

  From what I can tell through the O'Reilly book and Google searches,
  the answer is currently no due to, I'm assuming, security
  concerns...  But I can think of several reasons why the user may want
  to allow me to have this information. For example, they could use my
  app to set up email alerts for themselves that would be triggered by
  various events, or use it to send them compiled reports, etc. Being
  able to read their email address could be very useful, and I would
  love to have it as a feature in the API.

  Yes, I could also use it to send them spam, but that's why they should
  block my app if they don't trust me. People put their email address
  into forms all over the Internet all the time, probably hundreds of
  times per year, so it seems silly for me not to be able to read it
  even with the user's permission.

  One feature that should _definitely_ be removed, however, is the
  ability to _change_ the user's email addresss. For instance, if a
  person authorizes my app and I do this:

  $to-OAuthRequest('https://twitter.com/account/update_profile.xml',
  array('email' = 'iame...@hotmail.com'), 'POST');

  then all I have to do is fill out the Forgotten Password form, check
  the confirmation code that gets sent to _my_ hotmail address, and then
  suddenly I've got full control over the poor user's account and the
  ability to spam all of their followers. Watch out, Ashton!

  I can't believe that the Twitter API permits this, but doesn't allow
  me to do something simple and useful like emailing the person a list
  of their followers. Am I missing something?

  Dave.

 --
 Internets. Serious business.


[twitter-dev] Re: Pull email address after authentication?

2009-07-08 Thread JDG
if we're going with shoulds, i think it should be both or neither.
personally, i'd like it to be both, with the option that the user be able to
completely hide his or her email address from everyone except the twitter
DB. i can see the obvious benefit to the current architecture though. i may
be in a situation -- say, on a smartphone -- where the twitter site doesn't
necessarily render well in my browser, but still want to update my email
address right there and then, or maybe I've got a desktop application and I
just don't want to fire up a browser. In either situation, I like the fact
that the API gives me a way to change my email address. It also prevents an
app owner from getting my email address without my explicit permission --
what is stopping you from simply asking users for their email address if
they want you to send them whatever data you want to send them?

On Wed, Jul 8, 2009 at 16:15, Dave Hensley davehens...@gmail.com wrote:


 Yes, which is why I think it's silly that I can change their email
 address but can't view it. I really think it should be the other way
 around, don't you?.

 Dave.

 On Jul 8, 6:00 pm, JDG ghil...@gmail.com wrote:
  *Yes, I could also use it to send them spam, but that's why they should
  block my app if they don't trust me.*
 
  Shouldn't you be applying the same logic to why they would trust you not
 to
  update their email address?
 
 
 
  On Wed, Jul 8, 2009 at 15:47, Dave Hensley davehens...@gmail.com
 wrote:
 
   If a Twitter user has authenticated my app, is it possible for me to
   view their email address?
 
   From what I can tell through the O'Reilly book and Google searches,
   the answer is currently no due to, I'm assuming, security
   concerns...  But I can think of several reasons why the user may want
   to allow me to have this information. For example, they could use my
   app to set up email alerts for themselves that would be triggered by
   various events, or use it to send them compiled reports, etc. Being
   able to read their email address could be very useful, and I would
   love to have it as a feature in the API.
 
   Yes, I could also use it to send them spam, but that's why they should
   block my app if they don't trust me. People put their email address
   into forms all over the Internet all the time, probably hundreds of
   times per year, so it seems silly for me not to be able to read it
   even with the user's permission.
 
   One feature that should _definitely_ be removed, however, is the
   ability to _change_ the user's email addresss. For instance, if a
   person authorizes my app and I do this:
 
   $to-OAuthRequest('https://twitter.com/account/update_profile.xml',
   array('email' = 'iame...@hotmail.com'), 'POST');
 
   then all I have to do is fill out the Forgotten Password form, check
   the confirmation code that gets sent to _my_ hotmail address, and then
   suddenly I've got full control over the poor user's account and the
   ability to spam all of their followers. Watch out, Ashton!
 
   I can't believe that the Twitter API permits this, but doesn't allow
   me to do something simple and useful like emailing the person a list
   of their followers. Am I missing something?
 
   Dave.
 
  --
  Internets. Serious business.




-- 
Internets. Serious business.


[twitter-dev] /search ending service for unsupported HTTP methods after July 15, 2009

2009-07-08 Thread Doug Williams
The documentation for the /search method [1] specifies that all queries
should be performed with an HTTP GET. On or after July 15, 2009, we will
begin enforcing the use of HTTP GET for all queries. Requests sent to the
/search method which are not performed with an HTTP GET will be met with an
HTTP 403 response.

Please check your code and make any necessary updates before this change is
deployed.

1. http://apiwiki.twitter.com/Twitter-Search-API-Method%3A-search

Thanks,
Doug


[twitter-dev] /search ending service for unsupported HTTP methods after July 15, 2009

2009-07-08 Thread Doug Williams
The documentation for the /search method [1] specifies that all queries
should be performed with an HTTP GET. On or after July 15, 2009, we will
begin enforcing the use of HTTP GET for all queries. Requests sent to the
/search method which are not performed with an HTTP GET will be met with an
HTTP 403 response.

Please check your code and make any necessary updates before this change is
deployed.

1. http://apiwiki.twitter.com/Twitter-Search-API-Method%3A-search

Thanks,
Doug


[twitter-dev] Re: Pull email address after authentication?

2009-07-08 Thread Doug Williams
It is not possible to view a user's email address. Additionally, it is not
possible to perform a user lookup based on an email address. If you do not
trust an application enough to not change your email address, we suggest you
not use that application.

As always, please email a...@twitter.com if you have found an application
behaving poorly.

Thanks,
Doug




On Wed, Jul 8, 2009 at 3:34 PM, JDG ghil...@gmail.com wrote:

 if we're going with shoulds, i think it should be both or neither.
 personally, i'd like it to be both, with the option that the user be able to
 completely hide his or her email address from everyone except the twitter
 DB. i can see the obvious benefit to the current architecture though. i may
 be in a situation -- say, on a smartphone -- where the twitter site doesn't
 necessarily render well in my browser, but still want to update my email
 address right there and then, or maybe I've got a desktop application and I
 just don't want to fire up a browser. In either situation, I like the fact
 that the API gives me a way to change my email address. It also prevents an
 app owner from getting my email address without my explicit permission --
 what is stopping you from simply asking users for their email address if
 they want you to send them whatever data you want to send them?


 On Wed, Jul 8, 2009 at 16:15, Dave Hensley davehens...@gmail.com wrote:


 Yes, which is why I think it's silly that I can change their email
 address but can't view it. I really think it should be the other way
 around, don't you?.

 Dave.

 On Jul 8, 6:00 pm, JDG ghil...@gmail.com wrote:
  *Yes, I could also use it to send them spam, but that's why they should
  block my app if they don't trust me.*
 
  Shouldn't you be applying the same logic to why they would trust you not
 to
  update their email address?
 
 
 
  On Wed, Jul 8, 2009 at 15:47, Dave Hensley davehens...@gmail.com
 wrote:
 
   If a Twitter user has authenticated my app, is it possible for me to
   view their email address?
 
   From what I can tell through the O'Reilly book and Google searches,
   the answer is currently no due to, I'm assuming, security
   concerns...  But I can think of several reasons why the user may want
   to allow me to have this information. For example, they could use my
   app to set up email alerts for themselves that would be triggered by
   various events, or use it to send them compiled reports, etc. Being
   able to read their email address could be very useful, and I would
   love to have it as a feature in the API.
 
   Yes, I could also use it to send them spam, but that's why they should
   block my app if they don't trust me. People put their email address
   into forms all over the Internet all the time, probably hundreds of
   times per year, so it seems silly for me not to be able to read it
   even with the user's permission.
 
   One feature that should _definitely_ be removed, however, is the
   ability to _change_ the user's email addresss. For instance, if a
   person authorizes my app and I do this:
 
   $to-OAuthRequest('https://twitter.com/account/update_profile.xml',
   array('email' = 'iame...@hotmail.com'), 'POST');
 
   then all I have to do is fill out the Forgotten Password form, check
   the confirmation code that gets sent to _my_ hotmail address, and then
   suddenly I've got full control over the poor user's account and the
   ability to spam all of their followers. Watch out, Ashton!
 
   I can't believe that the Twitter API permits this, but doesn't allow
   me to do something simple and useful like emailing the person a list
   of their followers. Am I missing something?
 
   Dave.
 
  --
  Internets. Serious business.




 --
 Internets. Serious business.



[twitter-dev] Re: updating follow/shadow/birddog list of users

2009-07-08 Thread John Kalucki

Alexy,

First, curl isn't the best approach for developing against the
Streaming API. It's fine for prototyping, but it only goes so far.

Yes, the comma separated list should be all on one line if you are
using curl.

If you want to change the user set, you should connect with the new
set and then disconnect the old set immediately once the data starts
to flow. This will be hard to coordinate using curl. In some cases,
Twitter will throw the first user off once the second user connects.
In other cases it will be more lenient. But, beware: if you want to
avoid running into various abuse limits, you'd best be sure that your
coordination between the first and second streams are quite solid and
that the first stream is always terminated in a timely manner.

You can also avoid data loss by using the count parameter, available
on some, but not all, methods.

Please email me with your use case and I'll forward it on to the
Platform PM to help prioritize the better solution, as outlined by
Alex.

-John Kalucki
twitter.com/jkalucki
Services, Twitter Inc.



On Jul 8, 12:17 pm, braver delivera...@gmail.com wrote:
 Uf you have thousands of users, do you really have to cook up a
 following file with comma-separated say 100,000 user IDs?  Should it
 all be on one line?  Now what happens if we want to drop some and add
 some IDs -- do we have to restart and re-upload all that list again?
 I see when the curl -d @following ... starts up, it does that.
 Restarting with huge lists sounds like data loss...

 Cheers,
 Alexy


[twitter-dev] Re: stopping bit.ly automatic shortening of urls

2009-07-08 Thread sull

yes, twitter is after all a text based service.
anyway, adding html to a tweet opens up a can of worms.
it wont happen.  it shouldnt happen.

yes, twtr could provide, via the web UI at least, a way to add
metadata to a tweet that is extra (not the text message itself, but
associated data that can be exposed on certain UIs.  but thats a
different topic and i'd like to improve the current issue of short
urling.

also of interest - http://twitterdata.org

On Jul 8, 4:42 pm, Joel Strellner j...@twitturly.com wrote:
 It goes back to the root of twitter originally being a SMS  
 application. I recall hearing or reading someone on the Twitter team  
 saying that.

 -Joel

 On Jul 8, 2009, at 1:31 PM, whoiskb whoi...@gmail.com wrote:



  I am curious if there has ever been an official response from twitter
  on why some simple HTML has not been allowed in a tweet?  If we were
  able to use an anchor tag, and the HTML did not count against the 140
  character limit, then the need for a URL shortener service would not
  be needed.

  On Jul 8, 10:27 am, sull sullele...@gmail.com wrote:
  ironically, my example urls are shortened here ;)

  On Jul 8, 12:20 pm, sull sullele...@gmail.com wrote:

  this is a topic of interest to me for a long while.
  been meaning to start a thread.

  i'm often bothered by the automatic shortening of urls when in fact
  the url does not need to be shortened.  in these cases, i of  
  course do
  not want to hide the real url by using a forced 3rd party service  
  like
  bit.ly.
  i have use cases where all that is posted is a url.  and the url
  includes a long detailed description of the link.  this, in my
  opinion, is smart as the only object to maintain is the url itself
  which provides a hyperlink and a short message combined.  sometimes,
  these use cases are using natural language vanity urls to form short
  sentences.

  ie.http://john.tot.al.ly/wiped-out-on-this-huge-wave-in-hawaii-at-
  the-Su...

  the other annoying thing that is related to the twitter UI is how  
  long
  urls are cut-off//trimmed even if they dont need to be.  the above
  example would be destroyed because it would result in something
  like:

 http://john.tot.al.ly/wip

  actually, i'm not certain if that is still the case as it seems to  
  me
  that every url is shortened with bit.ly now.  i grok the value in
  tracking urls and bit.ly may be bought by twitter at some point and
  this notion of url tracking will be fully integrated but the
  debate about url shortners in general how they can break the
  natural web, are vulnerable to massive broken links and simply thr
  cryptic format itself that hides the true location are all to be
  considered and continued to be debated.

  at the very least, 3rd party developers should get an override
  toggle.
  that is something i think we all need to start demanding.

  and yes, an official doc explaining the current and future
  impementations of url shortening on twitter is definitely needed  
  now.

 http://plea.se/twitter-dont-shorten-this-url-with-bitly-since-it-does
  ...

 http://twitter.com/sull/status/2534470050

  @sull

  On Jul 8, 4:50 am, Swaroop rh.swar...@gmail.com wrote:

  However, if you paste in a link that is less than 30 characters,
  we'll post it in its entirety.  If it's longer than 30 characters,
  we'll convert it to a shorter URL.

  Source:http://help.twitter.com/portal


[twitter-dev] Changing domains for image hosting

2009-07-08 Thread Doug Williams
Folks --
We are going to be moving images to a new domain (twimg.com) to streamline
our image hosting and offer better performance. We hope this will have
limited impact as will only change the image URL. Example URLs include:

Profile images:

http://s3.amazonaws.com/twitter_production/profile_images/35240332/2929920.gif

http://a0.twimg.com/profile_images/35240332/2929920.gif
Background images:

http://s3.amazonaws.com/twitter_production/profile_background_images/18156348/jessica_tiled.jpg.jpeg

http://a0.twimg.com/profile_background_images/18156348/jessica_tiled.jpg.jpeg

Thanks,
Doug


[twitter-dev] Re: stopping bit.ly automatic shortening of urls

2009-07-08 Thread Dean Collins
Yeh we have the same problem with www.LiveBaseballChat.com
http://www.livebaseballchat.com/  

 

Even though we keep the messages under 140 characters and put the CHurl
links at the start of the message Twitter still truncates the urls into
bitly links. which wouldn't be so bad if it was just a URL but our
CHurls are structured links eg this fake link below.

 

*   http://www.livebaseballchat.com/CHurl/09/04/11/10/A1234F

 Made up of the following constitute parts

 URL/ Live Baseballchat.com

 CHurl/ Word

 09/ Year

 04/ Month

 11/ Date

 10/ Room number

 A1234FG/ Message number

 

 

I'm hoping that eventually once Twitter starts offering commercial
accounts that 'non bitly' truncation is one of the features that paid
accounts will be able to pay for.

 

Regards,

Dean Collins
Cognation Inc
d...@cognation.net
mailto:d...@cognation.net +1-212-203-4357   New York
+61-2-9016-5642   (Sydney in-dial).
+44-20-3129-6001 (London in-dial).



From: twitter-development-talk@googlegroups.com
[mailto:twitter-development-t...@googlegroups.com] On Behalf Of Abraham
Williams
Sent: Tuesday, July 07, 2009 9:11 AM
To: twitter-development-talk@googlegroups.com
Subject: [twitter-dev] Re: stopping bit.ly automatic shortening of urls

 

There is no way to turn URL shortening off.

Two ways you could handle this though are:
1) Keep the URLs short enough that Twitter does not turn them into bitly
links. I don't think the exact size/composition is published so you
would have to experiment to see where that line is.
2) Shorten it yourself so you can control what comes after the /. It
would not be a direct link but you could parse it.

Abraham

On Tue, Jul 7, 2009 at 06:42, infopete p...@infonote.com wrote:


we're writing an application to do live gps tracking with Twitter.

We'd like to be able to have a full url in a message which we could
parse or use as a direct web link.

GPS logging will be done on pocket pc based phones and we already have
a test application available (Twittrack).

We're extending the functionality of our silverlight application
http://tweepware.infonote.com to be able to display live gps updates
from Twitter.

But..

When we post to Twitter using the api our url is always shrunk to a
bit.ly url.

How can we stop this?

Regards

Pete




-- 
Abraham Williams | Community Evangelist | http://web608.org
Hacker | http://abrah.am | http://twitter.com/abraham
Project | http://fireeagle.labs.poseurtech.com
This email is: [ ] blogable [x] ask first [ ] private.



[twitter-dev] Re: Changing domains for image hosting

2009-07-08 Thread Wynn Netherland
Hi, Doug,
Thanks for the heads up and all the hard work to keep us in the loop.

Any plans to offer something like:

http://twimg.com/pengwynn so people can always have my latest avatar
regardless of the filename?

Thanks,

Wynn Netherland
@pengwynn

On Wed, Jul 8, 2009 at 8:20 PM, Doug Williams d...@twitter.com wrote:

 Folks --
 We are going to be moving images to a new domain (twimg.com) to streamline
 our image hosting and offer better performance. We hope this will have
 limited impact as will only change the image URL. Example URLs include:

 Profile images:


 http://s3.amazonaws.com/twitter_production/profile_images/35240332/2929920.gif

 http://a0.twimg.com/profile_images/35240332/2929920.gif
 Background images:

 http://s3.amazonaws.com/twitter_production/profile_background_images/18156348/jessica_tiled.jpg.jpeg

 http://a0.twimg.com/profile_background_images/18156348/jessica_tiled.jpg.jpeg

 Thanks,
 Doug





-- 
Wynn Netherland
twitter: pengwynn


[twitter-dev] Re: Pull email address after authentication?

2009-07-08 Thread Scott Haneda


On Jul 8, 2009, at 4:22 PM, Doug Williams wrote:

It is not possible to view a user's email address. Additionally, it  
is not possible to perform a user lookup based on an email address.


This is not entirely true, though can not be done through the API.  I  
had friends find me on twitter, and for month, never knew why.  It is  
quote simple to load an email into gmail, and add that to twitter and  
it will look up any user with that email.


I wish this feature was able to be disabled.  I have had to create a  
junk email account in twitter, just so I have some privacy.  I get  
that the posts are not private, but I had an account that was not  
something I wanted people to connect with me.  That is too late now.


No where on the twitter Web site is it explained that your email  
address can be used as a way for users to locate you.


I personally believe, this should be explained in detail on the join  
page where you enter in your email address.  And I should be able to  
opt out of this feature.

--
Scott * If you contact me off list replace talklists@ with scott@ *



[twitter-dev] Re: OAuth and native clients

2009-07-08 Thread Zach

I'm going to 3rd Sebastian's POV.  This is a serious problem that
needs to be addressed now.  Mobile app developers want to integrate
their native apps with sites like Twitter and Facebook, but the
current user experience is so unacceptable that no one is going to use
it in its current form.

For more on the topic:

http://www.hueniverse.com/hueniverse/2009/02/beyond-the-oauth-web-redirection-flow.html

Kudos to the Twitter team for actually starting to think about a
reasonable solution to this problem.  Facebook has the Connect for
iPhone library, but even that is just their terrible JavaScript-based
Connect login shown in an embedded browser.  And forget about trying
to authenticate with Facebook from something like a BlackBerry app.

We are anxiously awaiting a OAuth for Mobile option for the Twitter
API (as are a lot of other developers).  Our app missed the from
[MyApplication] using Basic Auth cutoff so now every status update we
push says from Twitter4J... not the best for marketing purposes.  We
would also love not having to store passwords on the device and send
them over the wire every time a user clicks the Share button.



On Jun 30, 4:42 pm, morefromalan sbal...@gmail.com wrote:
 Just wanted to second Sebastian's POV here.  UserExperience is a key
 revenue driver for us, andOAuthfor nativemobileapps is really
 painful for the user.

 On Jun 19, 5:41 am, Sebastian sdelm...@gmail.com wrote:

  Thanks for the pointer... I did some searches, but they were all
  focused onmobileclients.

  In my case, I'm not worried about the complexity of implementing
 OAuth. I can deal with that, and once it's done, it's gone from the
  picture. It's the user experience that worries me, as exposed on that
  thread by the TTYtter example.

  Well, since people are asking, the workflow doesn't significantly
  differ
  from otherOAuthapplications and depends on the fact that access
  tokens
  don't expire. When people start TTYtter up for the first time without
  an
  access token (or TTYtter tries the access token and it fails), it asks
  for
  the usual request token, prints the access URL with the request token
  it
  wants the user to authorize, and waits for the user to authorize.
  Twitter,
  presumably, will say, ok, tell your program to continue. Back on
  TTYtter's
  side, the user hits ENTER, and TTYtter exchanges its request token for
  an
  access token *and caches it* once it has verified it can successfully
  hit
  the user timeline for data. So far, this is not significantly
  different than
  any otherOAuthapp. 

  Is there any other way to doOAuthand at the same time, behave like a
  sensible application?

  Could Twitter implement a basic auth api call to perform theoauth
  authorization in the first place? Such a call would only be allowed
  from clients that prove they need it, and could be revoked for rogue
  clients. I know this lowers the security ofOAuth, but it only
  officializes a hack many apps will try to implement.

  On Jun 19, 12:39 am, Cameron Kaiser spec...@floodgap.com wrote:

Or is the door for basic auth really closing forever?

   This has been discussed in a number of threads and an exact determination
   has not yet been made. However, this might give you some context:

  http://groups.google.com/group/twitter-development-talk/browse_thread...

   --
    
   personal:http://www.cameronkaiser.com/--
     Cameron Kaiser * Floodgap Systems *www.floodgap.com*ckai...@floodgap.com
   -- The cost of living has not adversely affected its popularity. 
   --- Hide quoted text -

  - Show quoted text -




[twitter-dev] Re: Changing domains for image hosting

2009-07-08 Thread Doug Williams
Andrew Stone asked a great question off list and I wanted to share the  
answer here.


Images will be hosted from a number of sub-domains of twimg.com.  
Therefore you should not expect all images to be served from a0.twimg.com 
 as in the examples provided, but instead should expect an aribitrary  
sub-domain (*.twimg.com).


Thanks,
Doug


On Jul 8, 2009, at 6:20 PM, Doug Williams d...@twitter.com wrote:


Folks --
We are going to be moving images to a new domain (twimg.com) to  
streamline our image hosting and offer better performance. We hope  
this will have limited impact as will only change the image URL.  
Example URLs include:


Profile images:

http://s3.amazonaws.com/twitter_production/profile_images/35240332/2929920.gif

http://a0.twimg.com/profile_images/35240332/2929920.gif

Background images:
http://s3.amazonaws.com/twitter_production/profile_background_images/18156348/jessica_tiled.jpg.jpeg
http://a0.twimg.com/profile_background_images/18156348/jessica_tiled.jpg.jpeg
Thanks,
Doug