[twitter-dev] Re: Is it okay to close a connection by opening a new one?

2009-07-15 Thread avinash srivastava
Hi,

You can take some hint from here -
http://hasin.wordpress.com/2009/06/20/collecting-data-from-streaming-api-in-twitter/

Avinash

On Wed, Jul 15, 2009 at 4:43 AM, Joel Strellner j...@twitturly.com wrote:

  Why can’t you do this entirely in your code?  Why do you need to close
 the connection and reconnect?



 Closing a file, moving it, and then creating a new file should be able to
 be done extremely fast, thus you shouldn’t need to close your connection to
 Twitter.



 Also, if at all possible, JSON is a much better format to use.  It’s
 smaller over the wire, and it’ll create smaller files.



 -Joel





 *From:* twitter-development-talk@googlegroups.com [mailto:
 twitter-development-t...@googlegroups.com] *On Behalf Of *Alex Payne
 *Sent:* Tuesday, July 14, 2009 4:07 PM
 *To:* twitter-development-talk@googlegroups.com
 *Subject:* [twitter-dev] Re: Is it okay to close a connection by opening a
 new one?



 If you're only doing this every hour, that's fine by us.

 On Tue, Jul 14, 2009 at 15:58, owkaye owk...@gmail.com wrote:


 The Streaming API docs say we should avoid opening new
 connections with the same user:pass when that user already
 has a connection open.  But I'm hoping it is okay to do this
 every hour or so, here's why:

 My plan is to write the streaming XML data to a text file
 during each connection -- but I don't want this file to get
 so big that I have trouble processing it on the back end.
 Therefore I want to rotate these files every hour ...

 This means I have to stop writing to the file, close it, move
 it somewhere else, and create a new file so I can use the new
 file to continue storing new streaming XML data.

 The obvious way for me to close these files is to close the
 connection -- by opening a new connection -- because from
 what I've read it seems that opening a new connection forces
 the previous connection to close.

 Can I do this without running into any black listing or
 denial of service issues?  I mean, is this an acceptable way
 to close a connection ... by opening a new one in order to
 force the old connection to close?

 Any info you can provide that will clarify this issue is
 greatly appreciated, thanks!

 Owkaye







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



[twitter-dev] Re: Is it okay to close a connection by opening a new one?

2009-07-15 Thread owkaye

  The Streaming API docs say we should avoid opening new
  connections with the same user:pass when that user
  already has a connection open.  But I'm hoping it is
  okay to do this every hour or so ...

 If you're only doing this every hour, that's fine by us.

Great, thanks for the confirmation Alex!

:)


[twitter-dev] API Limits

2009-07-15 Thread Greg

Is anyone else getting 20,000 API calls when calling the
rate_limit_status API? It doesnt matter who I authenticate with - it
always shows 20,000 API calls for the user. Unless Twitter has given
everyone 20,000 - I don't think that this is right.

Thanks,
Greg


[twitter-dev] Re: OAuth and pincodes...

2009-07-15 Thread Alexis Sukrieh

Hi There,

I'm starting to write my first Twitter application with OAuth support.
When I test the authorization process, everything works fine, and I
end up at the pincode page hosted by twitter.

If we look at that page, the user that arrives here cannot go anywhere
then. There is no link to the callback URL and the page doesn't
provide any link/button to go back to the calling application. It's
like the user is trapped.

Is the user supposed to go by himself on the application page then? Is
this really user-friendly? Maybe I'm missing something, if so, could
you tell me what?

Thanks a lot!

PS: my code is basically a copy/paste from the Ruby on Rails
tutorial:
http://apiwiki.twitter.com/OAuth+Example+-+Ruby
--
Alexis.


[twitter-dev] TweetPhoto Open API Just Released (Photo Sharing Platform for Twitter)

2009-07-15 Thread Sean Callahan

The TweetPhoto Open API is now available to the Twitter developer
community. It is the most expansive photo sharing API available within
the Twitter eco-system.

You can view the Open API at http://groups.google.com/group/tweetphoto/web

Here you can get your API key here http://www.tweetphoto.com/developer.php

Please let me know if you have any questions.

Best Regards,


Sean Callahan


[twitter-dev] Searching for tweets that refer to an URL still impossible with bit.ly (and others)

2009-07-15 Thread Bjoern

Hi,

The problem is: how to find tweets that point to a certain URL. Most
of those tweets would use a shortened version of the URL, and most of
them probably bit.ly. Bit.ly does not provide a way to list all
shortened versions of a URL, and creates individually shortened
versions of each URL per User (namely, the twitter user, so there is
no way to find the URL that is created via Twitter status updates -
which would probably be the most common URL).

I thought I had found a way to at least approximate searching for
bit.ly-masked references on twitter with the /stats method from bitly.
Giving a bitly hash, the /stats method lists referrers by urls, which
might look like this (part of a /stats response):

twitter.com: { /: 1, /testFollowAPI: 1 } }

So I figured that I could then take all the paths that are not common
Twitter paths (like /home, /, /replies, /favorites, /inbox) and assume
that they are twitter accounts.

Then I searched Twitter for tweets from these accounts containing
bit.ly. For each hit, I would then again ask bit.ly to expand the
bit.ly url in the tweet. With any luck, I would find the tweet
referencing the url.

Apart from the fact that it is a pretty wasteful process (lots of
calls to bitly and also to Twitter search), I only just realized that
of course /stats only lists references when somebody has clicked on a
bit.ly URL. Since I don't expect many people to click on the URL on a
user's profile page, the utility of this approach is greatly
diminished. I think most of the referrers would just be /home if users
click on tweets in their stream.

I don't suppose Twitter would be willing to click on each incoming
bit.ly link with referrer from the tweeting user's page at least
once? ;-)

I gave the long story because I want to emphasize that as far as I
know, there still is no proper solution to this. Bit.ly does NOT
provide a way to list all shortened versions of an URL.

If there is such a method, please point me to it, because I just don't
see it.

I filed an issue for this a while ago, but it was closed with the
announcement that it would be solved sometime in the future.
Unfortunately there was not new issue or feature created that I
could track to see when it would be solved.

The original issue is here: 
http://code.google.com/p/twitter-api/issues/detail?id=402

Sorry for the long post - I just wasted so much time trying to work
around the issue, and only realized the flaws in the approach right
now...

Björn


[twitter-dev] Re: API Limits

2009-07-15 Thread Abraham Williams
Are you getting this from an IP that is whitelisted?

Abraham

On Wed, Jul 15, 2009 at 08:20, Greg gregory.av...@gmail.com wrote:


 Is anyone else getting 20,000 API calls when calling the
 rate_limit_status API? It doesnt matter who I authenticate with - it
 always shows 20,000 API calls for the user. Unless Twitter has given
 everyone 20,000 - I don't think that this is right.

 Thanks,
 Greg




-- 
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: Is it okay to close a connection by opening a new one?

2009-07-15 Thread owkaye

 Why can't you do this entirely in your code?  Why do you
 need to close the connection and reconnect?

My software keeps the local data file open as long as the 
connection is open, so the connection must be closed before 
the file can be moved or deleted.


 Closing a file, moving it, and then creating a new file
 should be able to be done extremely fast ...

I know, but these cannot be done while the connection is 
open, thus the need to close it.  And since a new connection 
will need to be opened almost immediately anyways, the 
natural way for me to close it is to open a new one.


 JSON is a much better format to use.  

Not for me it isn't.  My software has built-in XML parsing 
capabilities but it doesn't know how to deal with JSON data 
so XML is clearly the best way for me to go.  


Owkaye






[twitter-dev] Re: Searching for tweets that refer to an URL still impossible with bit.ly (and others)

2009-07-15 Thread Nick Arnett
On Wed, Jul 15, 2009 at 7:19 AM, Andrew Badera and...@badera.us wrote:



 But I believe bit.ly returns different, unique URLs for logged-in users


That is an option, but in my experience, it is relatively rare.

Nick


[twitter-dev] Re: Searching for tweets that refer to an URL still impossible with bit.ly (and others)

2009-07-15 Thread Bjoern



On Jul 15, 4:27 pm, Nick Arnett nick.arn...@gmail.com wrote:
 On Wed, Jul 15, 2009 at 7:19 AM, Andrew Badera and...@badera.us wrote:

  But I believe bit.ly returns different, unique URLs for logged-in users

 That is an option, but in my experience, it is relatively rare.

If you want to create a bitly url via the API, you have to be logged
in. Therefore I assume twitter logs in to bit.ly to create the URLs.
Therefore I would expect all bit.ly URLs that Twitter generates to be
specific to Twitter. If you shorten a URL via some other account (you
always have to login for the bit.ly API), it would result in a
different URL. If Twitter could generate the standard URL, it would
be a big step.

Björn


[twitter-dev] Re: Searching for tweets that refer to an URL still impossible with bit.ly (and others)

2009-07-15 Thread Bjoern



On Jul 15, 4:17 pm, Nick Arnett nick.arn...@gmail.com wrote:

 The solution is to go about this the opposite way.

 Bit.ly will return the same shortened URL for any request using the same
 source URL.  So, use bit.ly to shorten the URL, then search Twitter for the
 bit.ly URL you get back.  The same is true for other URL shortening services
 and the more popular ones all have APIs.

That is exactly what I was trying to do, and it worked reasonably well
for tinyurl (since the option for individual URLs with tinyurl was not
so prominent). However, with bit.ly and I think most other popular
shorteners the default now are individual URLs. Therefore that
approach does not help much anymore.

Also, one would have to search Twitter for all possible shortened URLs
- that is the next problem. For now I would be happy if I could cover
bit.ly and perhaps four ot five other ones.

Björn


[twitter-dev] Re: Searching for tweets that refer to an URL still impossible with bit.ly (and others)

2009-07-15 Thread Bjoern

On Jul 15, 4:04 pm, Vision Jinx vjn...@gmail.com wrote:

 They also have an API...

 http://code.google.com/p/bitly-api/wiki/ApiDocumentation

 http://code.google.com/p/bitly-api/wiki/ApiDocumentation#REST_API

Yes, but they don't offer a way to see all variations of a URL, so it
does not help much.

Björn


[twitter-dev] Re: OAuth example in Java language

2009-07-15 Thread hanlho

Hello,

Bumped into this one as well.

I'm afraid no solution but the reason for the error is that the
appengine does not allow opening a socket to or access to another host
(http://code.google.com/appengine/docs/java/runtime.html#The_Sandbox)

Twitter4J seems to be doing just that when trying to authenticate:

at java.lang.SecurityManager.checkConnect(Unknown Source)
at java.net.URL.openConnection(Unknown Source)
at twitter4j.http.HttpClient.getConnection(HttpClient.java:553)

If anyone knows how to get arround this ...


Hans

On May 19, 3:31 pm, surya sravanthi.su...@gmail.com wrote:
 hi,

 The problem exists still  can you suggest me a solution to
 integrate my Twitter4j oauth in google app engine..
 I am a beginner, so it will be helpful if anyone could suggest me how
 to start

 sravanthi.

 On May 18, 6:29 pm, surya sravanthi sravanthi.su...@gmail.com wrote:

  hi,

  Thanks for your code. I have noticied that twitter.setAccessToken
  is not available in the Twitter.java in Twitter4j-2.0.3 version.
  I have tried using the instructions given in this link below:

  I think this will be helpful...
  This is working on localhost.. but I need my application which is in
  java to be deployed on google app engine. found that this is
  giving

    com.service.TwitterOAuthException:
  java.security.AccessControlException: access denied
  (java.lang.RuntimePermission modifyThreadGroup)

  exception.. can ou suggest me a method i could use to solve this 
  problem

  Thanks again..
  SravanthiOn Tue, May 5, 2009 at 11:51 AM, Yusuke yus...@mac.com wrote:

   Hi,

   I wrote an OAuth example code for Java language.
  http://yusuke.homeip.net/twitter4j/en/code-examples.html#oauth

   I hope you caln add the link to the following page.
  http://apiwiki.twitter.com/OAuth-Examples

   Cheers,
   Yusuke




[twitter-dev] Re: Failed API returning over capacity HTML page content

2009-07-15 Thread Nick Arnett
On Wed, Jul 15, 2009 at 8:03 AM, J.D. jeremy.d.mul...@gmail.com wrote:


 This is really a pain because I'm calling the API and expecting JSON
 data back. Do I need to check the data each time and see if I actually
 got html by mistake? If so, then I'm uncertain what I should do with
 the html.


In my experience, that's necessary anyway - I wouldn't trust that it would
never happen.  My code waits a few seconds and tries again if the JSON parse
fails.  A bunch of fails in a row and it gives up.

Nick


[twitter-dev] Re: Searching for tweets that refer to an URL still impossible with bit.ly (and others)

2009-07-15 Thread Bjoern

On Jul 15, 5:04 pm, Nick Arnett nick.arn...@gmail.com wrote:
 There's a horrible solution to
 that, too... tweet the original URL and then read back the status to get the
 Twitter-specific bit.ly URL.  Ugh.

Actually that is a pretty good idea, thanks!!! It is horrible, but I
can't think of a better way atm. I think twiturly have mentioned that
they can resolve URLs to tweets, but their API is very limited. My
current application is not cool enough to ask them for a higher rate
limit ;-)

Björn


[twitter-dev] Re: API Limits

2009-07-15 Thread iUpdateStatus

I am getting the 20,000 limit, but the requests are being made from a
whitelisted IP. According to the documentation, whitelisted IP take
precedence over authentication, so requests will count against your IP
limit rather than the user's.
As a general question related to this topic: For all the developers
who are working on a solution that involves authenticated users, would
it be more convenient to get removed from the whitelist (or never
apply for it) and use the authenticated user's 150 requests/hour
limit?

On Jul 15, 8:20 am, Greg gregory.av...@gmail.com wrote:
 Is anyone else getting 20,000 API calls when calling the
 rate_limit_status API? It doesnt matter who I authenticate with - it
 always shows 20,000 API calls for the user. Unless Twitter has given
 everyone 20,000 - I don't think that this is right.

 Thanks,
 Greg


[twitter-dev] Re: API Limits

2009-07-15 Thread Greg

I don't have a IP that is whitelisted. Only my twitter account is
whitelisted.

Thanks,

Greg

On Jul 15, 9:27 am, Abraham Williams 4bra...@gmail.com wrote:
 Are you getting this from an IP that is whitelisted?

 Abraham

 On Wed, Jul 15, 2009 at 08:20, Greg gregory.av...@gmail.com wrote:

  Is anyone else getting 20,000 API calls when calling the
  rate_limit_status API? It doesnt matter who I authenticate with - it
  always shows 20,000 API calls for the user. Unless Twitter has given
  everyone 20,000 - I don't think that this is right.

  Thanks,
  Greg

 --
 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: Searching for tweets that refer to an URL still impossible with bit.ly (and others)

2009-07-15 Thread Bjoern



On Jul 15, 5:18 pm, Bjoern bjoer...@googlemail.com wrote:

 Actually that is a pretty good idea, thanks!!!

Argh, except that Twitter rate limits will bite me :-( What I have
implemented is a search web site that shows associated tweets to the
URLs, so potentially it would generate a lot of requests (one page of
search results is 10 URLs to check).

Better apply for whitelisting now...

Björn


[twitter-dev] Re: API Limits

2009-07-15 Thread Bill Kocik



On Jul 15, 11:22 am, iUpdateStatus iupdatesta...@gmail.com wrote:

 As a general question related to this topic: For all the developers
 who are working on a solution that involves authenticated users, would
 it be more convenient to get removed from the whitelist (or never
 apply for it) and use the authenticated user's 150 requests/hour
 limit?

For me, yes. When the user rate limit was 100, as few as 200
simultaneous users have, collectively, the same rate limit as a
whitelisted IP. Now that the limit is 150, it only takes 133.3
simultaneous users.

If you anticipate having about 130 or more simultaneous users,
whitelisting can work against you, but it's not completely black and
white. If I have 50 really active users and 100 that aren't so active,
whitelisting might be in my favor, because it means I can spend more
requests on each of those 50 users than their 150/hr limit would
otherwise allow.

It really depends on how many simultaneous authenticated users you
expect to have, what kind of users they are, and what kind of API
requests your application is making on their behalf. For my
application, whitelisting doesn't make sense. For yours it might.


[twitter-dev] Re: OAuth example in Java language

2009-07-15 Thread Christopher St John

On Wed, Jul 15, 2009 at 9:44 AM, hanlhohlho...@gmail.com wrote:

 I'm afraid no solution but the reason for the error is that the
 appengine does not allow opening a socket to or access to another host
 (http://code.google.com/appengine/docs/java/runtime.html#The_Sandbox)


Access to other hosts is allowed via a URLConnection, which is sufficient
for doing OAuth. So you can make it work. FWIW, I ended up hacking
Signpost[1], but I don't recommend that solution[2]. I'd be interested to
hear about any Java libraries that work out of the box.

-cks

[1] http://code.google.com/p/oauth-signpost/
[2] http://artofsystems.blogspot.com/2009/07/popstat-on-google-app-engine.html

-- 
Christopher St. John
http://praxisbridge.com
http://artofsystems.blogspot.com


[twitter-dev] Re: Searching for tweets that refer to an URL still impossible with bit.ly (and others)

2009-07-15 Thread Bill Kocik



On Jul 15, 11:21 am, Bjoern bjoer...@googlemail.com wrote:

 Argh, except that Twitter rate limits will bite me :-( What I have
 implemented is a search web site that shows associated tweets to the
 URLs, so potentially it would generate a lot of requests (one page of
 search results is 10 URLs to check).

 Better apply for whitelisting now...

Not so fast...

If I'm understanding you, the proposed solution is that for each non-
shortened URL you want to search Twitter for, you send it in a status
update, and then retrieve the shortened version by reading back that
status, and then search Twitter for the shortened version. You can
actually process 10 (or more) URLs with only one hit against your rate
limit. How? Status updates don't count toward  your rate limit
(although Twitter may separately notice a large number of updates
which are nothing more than URLs and mark you a spammer or something,
but that's another discussion).

So for 10 URLs, you post 10 status updates, then retrieve your own
last 10 updates in one call by retrieving your own timeline via /
statuses/user_timeline(and that's the one hit against your rate limit).


[twitter-dev] Re: OAuth related bug with signature Woah there!

2009-07-15 Thread Bill Kocik


I've seen this same (I believe) bug manifested in different ways, and
it's come up on this list before. Twitter are apparently storing some
sort of return_to URL or similar in your session, and sending you to
it at inopportune times.

A great way to see it in action is to click on the Block this user
link when you get a new follower email; after confirming the block,
you wind up at some random page you visited in the past (well, not
completely random, it'll generally be the most recent page you visited
besides the block page).


On Jul 15, 9:52 am, Scott Carter scarter28m-goo...@yahoo.com wrote:
 I believe that I have discovered a reproducible OAuth related bug.

 1. Sign out of your Twitter account (from Twitter.com).
 2. Authenticate an app using OAuth (haven't tried authorize flow with
 this issue).
 3. Go to Twitter.com and login to a different account than used in
 step 2.

 I see the message:

 Woah there!

 This page requires some information that was not provided. Please
 return to the site that sent you to this page and try again … it was
 probably an honest mistake.

 with the page URL showing:  https://twitter.com/oauth/authenticate

 When I revisit twitter.com, I am logged into the account from step 3.

 - Scott
 @scott_carter


[twitter-dev] Re: Looking for Web Developer in the Boston area for our Twitter App

2009-07-15 Thread Saltline Studio

Greg - just sent you an emailthanks.  Chris

On Jul 14, 6:14 pm, Greg gregory.av...@gmail.com wrote:
 Hello,

 I am interested in this. I am currently a developer for tweetsort
 (http://tweetsort.com) - a full twitter web client using PHP,
 Javascript, and MySQL.

 Please contact me at gregory.av...@gmail.com and I will send resume
 and more details.

 On Jul 14, 4:19 pm, Saltline Studio chris5gil...@gmail.com wrote:

  Hope its cool to post jobs here in this Google Group.

  TasteLive is growing and we are looking for a Web Developer to join
  out team.

  TasteLive is looking for a web developer local to the Boston area to
  join our Team. Twitter API, Twitter Search API  Facebook API
  experience is a must. We have a 37 Signals approach to our business
  and to the building of the web application and are looking for a team
  player that can handle the Development and Maintenance of the
  Application.

  Skills: PHP, MySQL, Expression Engine, JSON, jQuery, Twitter API,
  Facebook API, Twitter Search API, other 3rd party API's like Twitpic 
  Twitvid or Qik are helpful.

  more info here 
  -http://tastelive.com/blog/view/tastelive-web-developer-position

  Thanks.

  Chris
  Saltline Studio


[twitter-dev] Re: Searching for tweets that refer to an URL still impossible with bit.ly (and others)

2009-07-15 Thread Nick Arnett
On Wed, Jul 15, 2009 at 8:45 AM, Bill Kocik bko...@gmail.com wrote:



 So for 10 URLs, you post 10 status updates, then retrieve your own
 last 10 updates in one call by retrieving your own timeline via /
 statuses/user_timeline(and that's the one hit against your rate limit).


If Twitter will shorten multiple URLs in the same tweet, you could get even
more than that.  I just tried putting two longer URLs in a tweet and it
didn't shorten them at all, just did the ellipsis thing, so that was
inconclusive.  This method is rather unreliable, I suppose... and I don't
want to post more test tweets.  My mother will see them on Facebook and
become confused.  ;-)

Nick


[twitter-dev] Re: Searching for tweets that refer to an URL still impossible with bit.ly (and others)

2009-07-15 Thread Bjoern



On Jul 15, 5:45 pm, Bill Kocik bko...@gmail.com wrote:
  Status updates don't count toward  your rate limit
 (although Twitter may separately notice a large number of updates
 which are nothing more than URLs and mark you a spammer or something,
 but that's another discussion).

Interesting, thanks! I did not think of the different limits. For
updates there seems to be a limit of 1000 per day:
http://help.twitter.com/forums/10711/entries/15364

But it might be a start as long as my application is not very popular.
Atm it is more a testbed for me - although I think in general the
application of showing tweets referencing a URL is a valid interest.

I think the only solutions in the wild use something like twitpic,
where you enter a message at twitpic and twitpic ads an identifier to
find the message (the url to twitpic in that case).

But it would be kind of cool to be able to do that for everything, for
example on blog posts. I have been wondering if for blogs it would be
easier to analyze the referrer log, but I don't think it would work.
Referrer would either be just bit.ly (?), or it would be twitter.com/
home and stuff like that.

Björn


[twitter-dev] Re: Looking for Web Developer in the Boston area for our Twitter App

2009-07-15 Thread Saltline Studio

We may entertain opening this up to people outside of the Boston area
as well, so please contact me if you are interested in telecommute
from anywhere.

On Jul 15, 11:51 am, Saltline Studio chris5gil...@gmail.com wrote:
 Greg - just sent you an emailthanks.  Chris

 On Jul 14, 6:14 pm, Greg gregory.av...@gmail.com wrote:

  Hello,

  I am interested in this. I am currently a developer for tweetsort
  (http://tweetsort.com) - a full twitter web client using PHP,
  Javascript, and MySQL.

  Please contact me at gregory.av...@gmail.com and I will send resume
  and more details.

  On Jul 14, 4:19 pm, Saltline Studio chris5gil...@gmail.com wrote:

   Hope its cool to post jobs here in this Google Group.

   TasteLive is growing and we are looking for a Web Developer to join
   out team.

   TasteLive is looking for a web developer local to the Boston area to
   join our Team. Twitter API, Twitter Search API  Facebook API
   experience is a must. We have a 37 Signals approach to our business
   and to the building of the web application and are looking for a team
   player that can handle the Development and Maintenance of the
   Application.

   Skills: PHP, MySQL, Expression Engine, JSON, jQuery, Twitter API,
   Facebook API, Twitter Search API, other 3rd party API's like Twitpic 
   Twitvid or Qik are helpful.

   more info here 
   -http://tastelive.com/blog/view/tastelive-web-developer-position

   Thanks.

   Chris
   Saltline Studio


[twitter-dev] Re: Searching for tweets that refer to an URL still impossible with bit.ly (and others)

2009-07-15 Thread Andrew Badera
On Wed, Jul 15, 2009 at 11:04 AM, Nick Arnett nick.arn...@gmail.com wrote:


 Hmmm... just tried a few and sure enough, the bit.ly URLs generated by
 Twitter seem to be unique to Twitter, although consistent. Apparently
 Twitter has enabled bit.ly URL tracking. There's a horrible solution to
 that, too... tweet the original URL and then read back the status to get the
 Twitter-specific bit.ly URL.  Ugh.

 Nick


Those generated BY Twitter, sure. But plenty of people are using clients or
plugins that are doing their own shortening, whether by bit.ly or otherwise,
so they can track their own stats. If I go tweet a bit.ly URL I created in
my own personal account with bit.ly, it will stick with my bit.ly URL, not a
Twitter-gen'd bit.ly URL.


[twitter-dev] Re: Searching for tweets that refer to an URL still impossible with bit.ly (and others)

2009-07-15 Thread Matt Sanford

Hi there,

Please be aware there are update limits in addition to the rate  
limit. There are also the spam and abuse marshals looking out for  
accounts acting suspiciously. Posting a bunch of link-only tweets  
seems like it's very likely to run afoul of them and get the account  
suspended. I can't say for sure since they're always evolving the  
types of abuse the check for but I don't recommend this course of  
action. Have you thought about using one of the APIs built for this,  
like backtweets [1]?


Thanks;
 – Matt Sanford / @mzsanford
 Twitter Dev

[1] - Disclaimer: I've not used the API at http://backtweets.com/api  
but it seems like what you're looking for.


On Jul 15, 2009, at 8:52 AM, Nick Arnett wrote:




On Wed, Jul 15, 2009 at 8:45 AM, Bill Kocik bko...@gmail.com wrote:


So for 10 URLs, you post 10 status updates, then retrieve your own
last 10 updates in one call by retrieving your own timeline via /
statuses/user_timeline(and that's the one hit against your rate  
limit).


If Twitter will shorten multiple URLs in the same tweet, you could  
get even more than that.  I just tried putting two longer URLs in a  
tweet and it didn't shorten them at all, just did the ellipsis  
thing, so that was inconclusive.  This method is rather unreliable,  
I suppose... and I don't want to post more test tweets.  My mother  
will see them on Facebook and become confused.  ;-)


Nick




[twitter-dev] Re: Searching for tweets that refer to an URL still impossible with bit.ly (and others)

2009-07-15 Thread Bjoern

On Jul 15, 5:57 pm, Matt Sanford m...@twitter.com wrote:

 Have you thought about using one of the APIs built for this,  
 like backtweets [1]?

I thought about them, but only as a last resort. Did not know about
backtweets - they look good, but they also have a limit of 1000 calls/
day. I had also looked into FriendFeed, but they seem to only return
people who are also on FriendFeed.

Björn


[twitter-dev] Re: Searching for tweets that refer to an URL still impossible with bit.ly (and others)

2009-07-15 Thread Joel Strellner

There are 3 API's that I know of that you can use:

Twitturly (Ours - Private beta only at the moment)
Tweetmeme
BackTweet

Between the 3 of us, I am sure you can accomplish whatever your end-goal is.

I do not think BackTweet processes all URLs, so they may not have a URL, but
I do know that we do and Tweetmeme does.

-Joel


-Original Message-
From: twitter-development-talk@googlegroups.com
[mailto:twitter-development-t...@googlegroups.com] On Behalf Of Bjoern
Sent: Wednesday, July 15, 2009 9:16 AM
To: Twitter Development Talk
Subject: [twitter-dev] Re: Searching for tweets that refer to an URL still
impossible with bit.ly (and others)


On Jul 15, 5:57 pm, Matt Sanford m...@twitter.com wrote:

 Have you thought about using one of the APIs built for this,  
 like backtweets [1]?

I thought about them, but only as a last resort. Did not know about
backtweets - they look good, but they also have a limit of 1000 calls/
day. I had also looked into FriendFeed, but they seem to only return
people who are also on FriendFeed.

Björn




[twitter-dev] twitter developer marketplace

2009-07-15 Thread Peter Denton
Hello *,

First off, this is *not* a launch notice, rather I wanted to get some
feedback from the dev community.  We were prototyping a marketplace for
twitter developers and people looking to hire devs/designers to do twitter
stuff. Everything is contained in the twitter eco system, i.e. everything is
a tweet. People can post projects for hire, review developers and developers
can post a portfolio, skillsets, and reply to projects for hire.

Also, not trying to step on toes here. I know someone posted a site a few
days ago with a aggregate site. This is more meant to be a replacement
location for these types of interactions that occur on this list.

If you are interested, please take a look.

http://developers.twibs.com/

Thanks
Peter


[twitter-dev] Re: twitter developer marketplace

2009-07-15 Thread Dale Merritt
Simple, easy and useful.

On Wed, Jul 15, 2009 at 9:57 AM, Peter Denton petermden...@gmail.comwrote:

 Hello *,

 First off, this is *not* a launch notice, rather I wanted to get some
 feedback from the dev community.  We were prototyping a marketplace for
 twitter developers and people looking to hire devs/designers to do twitter
 stuff. Everything is contained in the twitter eco system, i.e. everything is
 a tweet. People can post projects for hire, review developers and developers
 can post a portfolio, skillsets, and reply to projects for hire.

 Also, not trying to step on toes here. I know someone posted a site a few
 days ago with a aggregate site. This is more meant to be a replacement
 location for these types of interactions that occur on this list.

 If you are interested, please take a look.

 http://developers.twibs.com/

 Thanks
 Peter







[twitter-dev] Re: Failed API returning over capacity HTML page content

2009-07-15 Thread J.D.

On Jul 15, 9:09 am, Nick Arnett nick.arn...@gmail.com wrote:
 My code waits a few seconds and tries again if the JSON parse
 fails.  A bunch of fails in a row and it gives up.

Thanks. I have similar code around the web calls, but had not put it
around the json parse yet.



[twitter-dev] Re: Searching for tweets that refer to an URL still impossible with bit.ly (and others)

2009-07-15 Thread Bjoern



On Jul 15, 6:36 pm, Joel Strellner j...@twitturly.com wrote:
 There are 3 API's that I know of that you can use:

 Twitturly (Ours - Private beta only at the moment)
 Tweetmeme
 BackTweet

 Between the 3 of us, I am sure you can accomplish whatever your end-goal is.

Thanks - they are better than nothing, but they all have limitations.
Not only rate limits, but for example I just read at Tweetmeme that
they only keep URL references for the last 7 days. Polling as they
suggest is not an option for me, as I don't know the URLs in advance.

So I guess I'll have to wait for the Twiturly offering.

Björn


[twitter-dev] Re: Failed API returning over capacity HTML page content

2009-07-15 Thread Alex Payne
JD,
Whether talking to the Twitter API or any other API on the web, always check
the response code before attempting to do any processing of the response
body. Proceed only if you got a 200 (or the response code you expected for
that particular operation). Many things can go wrong in the process of
making an HTTP request between your computer and our servers.

On Wed, Jul 15, 2009 at 10:32, J.D. jeremy.d.mul...@gmail.com wrote:


 On Jul 15, 9:09 am, Nick Arnett nick.arn...@gmail.com wrote:
  My code waits a few seconds and tries again if the JSON parse
  fails.  A bunch of fails in a row and it gives up.

 Thanks. I have similar code around the web calls, but had not put it
 around the json parse yet.




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


[twitter-dev] Re: twitter developer marketplace

2009-07-15 Thread Wynn Netherland
Very cool. Nice work!

On Wed, Jul 15, 2009 at 11:57 AM, Peter Denton petermden...@gmail.comwrote:

 Hello *,

 First off, this is *not* a launch notice, rather I wanted to get some
 feedback from the dev community.  We were prototyping a marketplace for
 twitter developers and people looking to hire devs/designers to do twitter
 stuff. Everything is contained in the twitter eco system, i.e. everything is
 a tweet. People can post projects for hire, review developers and developers
 can post a portfolio, skillsets, and reply to projects for hire.

 Also, not trying to step on toes here. I know someone posted a site a few
 days ago with a aggregate site. This is more meant to be a replacement
 location for these types of interactions that occur on this list.

 If you are interested, please take a look.

 http://developers.twibs.com/

 Thanks
 Peter







-- 
Wynn Netherland
twitter: pengwynn


[twitter-dev] Re: Following metric is null

2009-07-15 Thread Alex Payne
This is as designed. That attribute is essentially being
deprecated. But in the Streaming API, we don't populate that field
because we don't know who the requesting user is that we want to see
if the target user is following.

On Tue, Jul 14, 2009 at 16:35, Kris Jirapinyo krispyj...@gmail.com wrote:

 Hi all,
Has anyone seen the following field from gardenhose API always
 returning null?  Is this as designed or is it a bug?

 Thanks,
 Kris.




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


[twitter-dev] Re: Following metric is null

2009-07-15 Thread Kris Jirapinyo
So are there plans to add following_count field like followers_count?  I
don't need to know exactly who the user's following, just how many users
he's following.

On Wed, Jul 15, 2009 at 10:55 AM, Alex Payne a...@twitter.com wrote:

 This is as designed. That attribute is essentially being
 deprecated. But in the Streaming API, we don't populate that field because we 
 don't know who the requesting user is that we want to see if the target user 
 is following.


 On Tue, Jul 14, 2009 at 16:35, Kris Jirapinyo krispyj...@gmail.comwrote:

 Hi all,
Has anyone seen the following field from gardenhose API always
 returning null?  Is this as designed or is it a bug?

 Thanks,
 Kris.




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



[twitter-dev] Re: Following metric is null

2009-07-15 Thread Alex Payne
That field already exists under a different name: friends_count

On Wed, Jul 15, 2009 at 11:12, Kris Jirapinyo krispyj...@gmail.com wrote:

 So are there plans to add following_count field like followers_count?
 I don't need to know exactly who the user's following, just how many users
 he's following.


 On Wed, Jul 15, 2009 at 10:55 AM, Alex Payne a...@twitter.com wrote:

 This is as designed. That attribute is essentially being
 deprecated. But in the Streaming API, we don't populate that field because 
 we don't know who the requesting user is that we want to see if the target 
 user is following.


 On Tue, Jul 14, 2009 at 16:35, Kris Jirapinyo krispyj...@gmail.comwrote:

 Hi all,
Has anyone seen the following field from gardenhose API always
 returning null?  Is this as designed or is it a bug?

 Thanks,
 Kris.




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





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


[twitter-dev] Re: Following metric is null

2009-07-15 Thread Kris Jirapinyo
Ah, ok I see it now.  Thanks a lot Alex!

-- Kris.

On Wed, Jul 15, 2009 at 11:28 AM, Alex Payne a...@twitter.com wrote:

 That field already exists under a different name: friends_count


 On Wed, Jul 15, 2009 at 11:12, Kris Jirapinyo krispyj...@gmail.comwrote:

 So are there plans to add following_count field like followers_count?
 I don't need to know exactly who the user's following, just how many users
 he's following.


 On Wed, Jul 15, 2009 at 10:55 AM, Alex Payne a...@twitter.com wrote:

 This is as designed. That attribute is essentially being
 deprecated. But in the Streaming API, we don't populate that field because 
 we don't know who the requesting user is that we want to see if the target 
 user is following.


 On Tue, Jul 14, 2009 at 16:35, Kris Jirapinyo krispyj...@gmail.comwrote:

 Hi all,
Has anyone seen the following field from gardenhose API always
 returning null?  Is this as designed or is it a bug?

 Thanks,
 Kris.




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





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



[twitter-dev] Re: twitter developer marketplace

2009-07-15 Thread shiplu
Great! I was looking for something like this.
At least as a developer.

-- 
A K M Mokaddim
http://twitter.com/shiplu
Stop Top Posting !!
বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল


[twitter-dev] Rules About Making Money

2009-07-15 Thread MakeMoney

I have a business plan and I am looking to role it out.  It involves
using Twitter as a median.  I have already gotten interest from
parties willing to pay for my service, but I beleive it may infringe
upon how Twitter will eventually make money.  I do not want to invest
in this service, and then have Twitter shut it down to replace it with
their own.  I sent Twitter an email today asking them for a possible
discussion time, but I am guessing they get a ton of these and most
likely won't respond.  If not does anyone know the legality of using
there service to make money?  And the legality of them being able to
shut off my account?  Thanks.


[twitter-dev] Re: Rules About Making Money

2009-07-15 Thread Alex Payne
Lots of people are making money via Twitter. Some sell their applications,
others post ads directly on Twitter, others use Twitter content on their
sites and include ads there; there are many different possible business
models.
As long as you stay within our terms of service - which, of course, may be
updated at our discretion, so stay current - you should be fine.

We do actively police spam and abusive behavior. Some people's conception of
legitimate business, it turns out, is everyone else's conception of
unsolicited and aggressive marketing. Don't do that.

On Wed, Jul 15, 2009 at 13:30, MakeMoney chicagolocalde...@gmail.comwrote:


 I have a business plan and I am looking to role it out.  It involves
 using Twitter as a median.  I have already gotten interest from
 parties willing to pay for my service, but I beleive it may infringe
 upon how Twitter will eventually make money.  I do not want to invest
 in this service, and then have Twitter shut it down to replace it with
 their own.  I sent Twitter an email today asking them for a possible
 discussion time, but I am guessing they get a ton of these and most
 likely won't respond.  If not does anyone know the legality of using
 there service to make money?  And the legality of them being able to
 shut off my account?  Thanks.




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


[twitter-dev] Re: Rules About Making Money

2009-07-15 Thread Nick Arnett
On Wed, Jul 15, 2009 at 1:30 PM, MakeMoney chicagolocalde...@gmail.comwrote:


 I have a business plan and I am looking to role it out.  It involves
 using Twitter as a median.  I have already gotten interest from
 parties willing to pay for my service, but I beleive it may infringe
 upon how Twitter will eventually make money.  I do not want to invest
 in this service, and then have Twitter shut it down to replace it with
 their own.  I sent Twitter an email today asking them for a possible
 discussion time, but I am guessing they get a ton of these and most
 likely won't respond.  If not does anyone know the legality of using
 there service to make money?  And the legality of them being able to
 shut off my account?  Thanks.


Generally speaking, any company that uses its terms of service to stifle
competition is running the risk of violating anti-trust laws.  For that
reason, I seriously doubt if they'll even answer your email.  That's a very
dangerous conversation to have.  Companies have to compete on their
offerings, not by making deals with potential competitors.

Consider the fact that there are hundreds or thousands of software
developers who use Windows to compete with Microsoft.  Not only is that
legal, Microsoft has found itself in legal hot water when it tries to
prevent it.  Imagine, for example, if Microsoft tried to stop OpenOffice
from running under Windows.  The U.S. DOJ would jump all over that.

On the other hand, when you're dancing with the elephant it is easy to get
stepped on.  As I think Heidi Roizen used to say, How do you know that
Microsoft likes you?  They crush you last.

A lot of people don't understand anti-trust laws and how they affect
communities and their conversations.  For example, it would be a huge
problem if developers here began discussing and comparing how much they
charge for their work.  That sort of conversation tends to be interpreted by
the courts as price fixing, which is unlawful.

Nick


[twitter-dev] Re: twitter developer marketplace

2009-07-15 Thread ferodynamics

I signed up, looks good.  I didn't get the @ confirmation, what's
that about?

One little suggestion, if you're going to have checkboxes for toolkits
and libraries, how about listing some Javascript frameworks?

Oh, and how about giving us a nice link (to our websites) on the
profile pages?  That would nice nice :-)

---
http://www.ferodynamics.com/


[twitter-dev] Re: twitter developer marketplace

2009-07-15 Thread Abraham Williams
You probably shouldn't let developers rate themselves:
http://developers.twibs.com/developer/abraham/feedback :-P

Abraham

On Wed, Jul 15, 2009 at 16:19, ferodynamics duch...@solve360.com wrote:


 I signed up, looks good.  I didn't get the @ confirmation, what's
 that about?

 One little suggestion, if you're going to have checkboxes for toolkits
 and libraries, how about listing some Javascript frameworks?

 Oh, and how about giving us a nice link (to our websites) on the
 profile pages?  That would nice nice :-)

 ---
 http://www.ferodynamics.com/




-- 
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: Rules About Making Money

2009-07-15 Thread MakeMoney

Thanks,  This was very helpful.  I do not use any sort of bots or
anything like that, and only people that wish to follow me follow me.
I would like to streamline my services though for nationwide offerings
and just wanted to make sure that I would invest in this and then have
it shut off.

Brian


[twitter-dev] Safe url shorteners

2009-07-15 Thread Kevin Mesiab
Just wanted to let you guys know about a free service we're prototyping for
shortening URL's that overcomes a few of the limitations of other
shorteners.

http://rt.nu/api/

Specifically shortened links include a screen shot 'preview' w/ a
continue/cancel option and the full URL is displayed *before* redirecting
users to prevent NSFW accidents ;) and other subversive tricks used by
spammers and hackers. (ex: http://rt.nu/iqzh).

The API lets you:

1.) Shorten links
2.) Dereference the original url of a shortened link
3.) Click throughs
4.) Referrers
5.) Velocity (clicks per hour)
6.) Rank (ctr vs all other rt.nu links)

If you end up implementing RT.nu or playing with the API, we'd really
appreciate any feedback.

-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://www.mesiablabs.com


[twitter-dev] Re: Safe url shorteners

2009-07-15 Thread owkaye

 Just wanted to let you guys know about a free service
 we're prototyping for shortening URL's that overcomes a
 few of the limitations of other shorteners.

Only one problems with all these URL shorteners, when the 
companies creating them disappear all their shortened URLs 
become orphans and therefore useless.  

Not a major problem on Twitter because of the typical 
transience of data, but when you run a company like mine 
that needs to reference historic data it will definitely 
create future problems when these companies fail.

Just something for folks to consider ...

Owkaye






[twitter-dev] Re: Rules About Making Money

2009-07-15 Thread jmathai

On Jul 15, 2:54 pm, Doug Williams d...@twitter.com wrote:
 Even then, we reach out and attempt to work
 with the developer before taking any action.

That's delightful to know.  Seriously :).  Working with APIs is often
a pain but Twitter's managed to create a pretty good ecosystem for
developers by providing support and open communication.  Kudos.


[twitter-dev] Re: Safe url shorteners

2009-07-15 Thread Dale Merritt
.  Interesting mods.  Would I be able to use it with my own domain (Fol.la
for branding)?

FYI

1. inserted a link that it said was not valid (but works fine)
2. does not give me screenshot prior

On Wed, Jul 15, 2009 at 3:11 PM, Kevin Mesiab ke...@mesiablabs.com wrote:

 Just wanted to let you guys know about a free service we're prototyping for
 shortening URL's that overcomes a few of the limitations of other
 shorteners.

 http://rt.nu/api/

 Specifically shortened links include a screen shot 'preview' w/ a
 continue/cancel option and the full URL is displayed *before* redirecting
 users to prevent NSFW accidents ;) and other subversive tricks used by
 spammers and hackers. (ex: http://rt.nu/iqzh).

 The API lets you:

 1.) Shorten links
 2.) Dereference the original url of a shortened link
 3.) Click throughs
 4.) Referrers
 5.) Velocity (clicks per hour)
 6.) Rank (ctr vs all other rt.nu links)

 If you end up implementing RT.nu or playing with the API, we'd really
 appreciate any feedback.

 --
 Kevin Mesiab
 CEO, Mesiab Labs L.L.C.
 http://www.mesiablabs.com




[twitter-dev] Re: Safe url shorteners

2009-07-15 Thread Kevin Mesiab
That's a valid concern that we share in our retweet.com application.  We
dereference all shortened urls before indexing tweets.

In anticipation, rt.nu supplies the API call
/api/stats/[short]/originalhttp://rt.nu/api/stats/8kw/original to
grab the original url for archiving or displaying to end users.

Dale:

All links are dereferenced by rt.nu to be qualified before shortening.
 Currently in beta, we've set the qualifications a bit tight and urls that
redirect using some schemes will be rejected, and some bad http status
headers will also cause rejection.  This will be cleaned up a bit before
full public deployment.  At present, all urls use rt.nu as the root domain
and are typically between 7 and 10 characters.

Screenshots are gathered via http://www.thumbshots.com/ which works like
this:

1.) If the full url exists in the cache its image is returned, then the url
is queued for a new shot.

2.) If the full url does not exist in the cache as a screenshot, the root
domain is looked up.  If the root domain is in the cache, that shot is
returned and the full url is queued for a new shot.



On Wed, Jul 15, 2009 at 12:34 PM, owkaye owk...@gmail.com wrote:


  Just wanted to let you guys know about a free service
  we're prototyping for shortening URL's that overcomes a
  few of the limitations of other shorteners.

 Only one problems with all these URL shorteners, when the
 companies creating them disappear all their shortened URLs
 become orphans and therefore useless.

 Not a major problem on Twitter because of the typical
 transience of data, but when you run a company like mine
 that needs to reference historic data it will definitely
 create future problems when these companies fail.

 Just something for folks to consider ...

 Owkaye







-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: Safe url shorteners

2009-07-15 Thread Chris Thomson
You may want to check what thumbshots is doing with the URL http://google.com/ 
 . It's definitely not taking a screenshot of the correct site …


--
Chris Thomson

On 15-Jul-09, at 7:06 PM, Kevin Mesiab wrote:

That's a valid concern that we share in our retweet.com  
application.  We dereference all shortened urls before indexing  
tweets.


In anticipation, rt.nu supplies the API call /api/stats/[short]/ 
original to grab the original url for archiving or displaying to end  
users.


Dale:

All links are dereferenced by rt.nu to be qualified before  
shortening.  Currently in beta, we've set the qualifications a bit  
tight and urls that redirect using some schemes will be rejected,  
and some bad http status headers will also cause rejection.  This  
will be cleaned up a bit before full public deployment.  At present,  
all urls use rt.nu as the root domain and are typically between 7  
and 10 characters.


Screenshots are gathered via http://www.thumbshots.com/ which works  
like this:


1.) If the full url exists in the cache its image is returned, then  
the url is queued for a new shot.


2.) If the full url does not exist in the cache as a screenshot, the  
root domain is looked up.  If the root domain is in the cache, that  
shot is returned and the full url is queued for a new shot.




On Wed, Jul 15, 2009 at 12:34 PM, owkaye owk...@gmail.com wrote:

 Just wanted to let you guys know about a free service
 we're prototyping for shortening URL's that overcomes a
 few of the limitations of other shorteners.

Only one problems with all these URL shorteners, when the
companies creating them disappear all their shortened URLs
become orphans and therefore useless.

Not a major problem on Twitter because of the typical
transience of data, but when you run a company like mine
that needs to reference historic data it will definitely
create future problems when these companies fail.

Just something for folks to consider ...

Owkaye







--
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com




[twitter-dev] Re: Safe url shorteners

2009-07-15 Thread Kevin Mesiab
Thumbshots.com is a paid service too.  Major fail.

On Wed, Jul 15, 2009 at 1:09 PM, Chris Thomson chri...@chris24.ca wrote:

 You may want to check what thumbshots is doing with the URL
 http://google.com/ . It's definitely not taking a screenshot of the
 correct site …
 --
 Chris Thomson

 On 15-Jul-09, at 7:06 PM, Kevin Mesiab wrote:

 That's a valid concern that we share in our retweet.com application.  We
 dereference all shortened urls before indexing tweets.

 In anticipation, rt.nu supplies the API call 
 /api/stats/[short]/originalhttp://rt.nu/api/stats/8kw/original to
 grab the original url for archiving or displaying to end users.

 Dale:

 All links are dereferenced by rt.nu to be qualified before shortening.
  Currently in beta, we've set the qualifications a bit tight and urls that
 redirect using some schemes will be rejected, and some bad http status
 headers will also cause rejection.  This will be cleaned up a bit before
 full public deployment.  At present, all urls use rt.nu as the root domain
 and are typically between 7 and 10 characters.

 Screenshots are gathered via http://www.thumbshots.com/ which works like
 this:

 1.) If the full url exists in the cache its image is returned, then the url
 is queued for a new shot.

 2.) If the full url does not exist in the cache as a screenshot, the root
 domain is looked up.  If the root domain is in the cache, that shot is
 returned and the full url is queued for a new shot.



 On Wed, Jul 15, 2009 at 12:34 PM, owkaye owk...@gmail.com wrote:


  Just wanted to let you guys know about a free service
  we're prototyping for shortening URL's that overcomes a
  few of the limitations of other shorteners.

 Only one problems with all these URL shorteners, when the
 companies creating them disappear all their shortened URLs
 become orphans and therefore useless.

 Not a major problem on Twitter because of the typical
 transience of data, but when you run a company like mine
 that needs to reference historic data it will definitely
 create future problems when these companies fail.

 Just something for folks to consider ...

 Owkaye







 --
 Kevin Mesiab
 CEO, Mesiab Labs L.L.C.
 http://twitter.com/kmesiab
 http://mesiablabs.com
 http://retweet.com





-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Re: Safe url shorteners

2009-07-15 Thread Dale Merritt
got this message below after clicking yes on do I want to continue,
from one of your sites.  My first impression of this feature is not so good
for a few reasons, the least of which is the annoyance factor...


Oops, Retweet.com hiccupped. Here's why: This cloud node could not resolve
the ReTweet server.


On Wed, Jul 15, 2009 at 4:13 PM, Kevin Mesiab ke...@mesiablabs.com wrote:

 Thumbshots.com is a paid service too.  Major fail.


 On Wed, Jul 15, 2009 at 1:09 PM, Chris Thomson chri...@chris24.ca wrote:

 You may want to check what thumbshots is doing with the URL
 http://google.com/ . It's definitely not taking a screenshot of the
 correct site …
  --
 Chris Thomson

  On 15-Jul-09, at 7:06 PM, Kevin Mesiab wrote:

  That's a valid concern that we share in our retweet.com application.  We
 dereference all shortened urls before indexing tweets.

 In anticipation, rt.nu supplies the API call 
 /api/stats/[short]/originalhttp://rt.nu/api/stats/8kw/original to
 grab the original url for archiving or displaying to end users.

 Dale:

 All links are dereferenced by rt.nu to be qualified before shortening.
  Currently in beta, we've set the qualifications a bit tight and urls that
 redirect using some schemes will be rejected, and some bad http status
 headers will also cause rejection.  This will be cleaned up a bit before
 full public deployment.  At present, all urls use rt.nu as the root
 domain and are typically between 7 and 10 characters.

 Screenshots are gathered via http://www.thumbshots.com/ which works like
 this:

 1.) If the full url exists in the cache its image is returned, then the
 url is queued for a new shot.

 2.) If the full url does not exist in the cache as a screenshot, the root
 domain is looked up.  If the root domain is in the cache, that shot is
 returned and the full url is queued for a new shot.



 On Wed, Jul 15, 2009 at 12:34 PM, owkaye owk...@gmail.com wrote:


  Just wanted to let you guys know about a free service
  we're prototyping for shortening URL's that overcomes a
  few of the limitations of other shorteners.

 Only one problems with all these URL shorteners, when the
 companies creating them disappear all their shortened URLs
 become orphans and therefore useless.

 Not a major problem on Twitter because of the typical
 transience of data, but when you run a company like mine
 that needs to reference historic data it will definitely
 create future problems when these companies fail.

 Just something for folks to consider ...

 Owkaye







 --
 Kevin Mesiab
 CEO, Mesiab Labs L.L.C.
 http://twitter.com/kmesiab
 http://mesiablabs.com
 http://retweet.com





 --
 Kevin Mesiab
 CEO, Mesiab Labs L.L.C.
 http://twitter.com/kmesiab
 http://mesiablabs.com
 http://retweet.com



[twitter-dev] Re: Failed API returning over capacity HTML page content

2009-07-15 Thread J.D.

 Whether talking to the Twitter API or any other API on the web, always check
 the response code before attempting to do any processing of the response
 body. Proceed only if you got a 200 (or the response code you expected for
 that particular operation). Many things can go wrong in the process of
 making an HTTP request between your computer and our servers.

I'm fairly certain I did get a 200, but I got html instead of the json
I requested.



[twitter-dev] Is it possible to control the source name

2009-07-15 Thread AccountingSoftwareGuy

Hi I am using the new oAuth method for communicating with the Twitter
API.  It appears the default behavior is to include the application
name as the source of a post.  For instance...

[date/time] from DynamicTweets

This is fine in most cases but in certain cases we want to make a post
look like it came from the web and not display our application name...
[date/time] from web

Is this possible, I've looked through many threads and I can't seem to
find a way to do this and the source= parameter doesn't seem to work.


[twitter-dev] Re: OAuth related bug with signature Woah there!

2009-07-15 Thread test test

+1 Even I keep hitting this issue.Hope twitter guys make oauth
registration solid.

On Wed, Jul 15, 2009 at 8:48 AM, Bill Kocikbko...@gmail.com wrote:


 I've seen this same (I believe) bug manifested in different ways, and
 it's come up on this list before. Twitter are apparently storing some
 sort of return_to URL or similar in your session, and sending you to
 it at inopportune times.

 A great way to see it in action is to click on the Block this user
 link when you get a new follower email; after confirming the block,
 you wind up at some random page you visited in the past (well, not
 completely random, it'll generally be the most recent page you visited
 besides the block page).


 On Jul 15, 9:52 am, Scott Carter scarter28m-goo...@yahoo.com wrote:
 I believe that I have discovered a reproducible OAuth related bug.

 1. Sign out of your Twitter account (from Twitter.com).
 2. Authenticate an app using OAuth (haven't tried authorize flow with
 this issue).
 3. Go to Twitter.com and login to a different account than used in
 step 2.

 I see the message:

 Woah there!

 This page requires some information that was not provided. Please
 return to the site that sent you to this page and try again … it was
 probably an honest mistake.

 with the page URL showing:  https://twitter.com/oauth/authenticate

 When I revisit twitter.com, I am logged into the account from step 3.

 - Scott
 @scott_carter



-- 

Spike Milligan  - All I ask is the chance to prove that money can't
make me happy. -
http://www.brainyquote.com/quotes/authors/s/spike_milligan.html


[twitter-dev] Re: Is it possible to control the source name

2009-07-15 Thread Abraham Williams
Nope. If you post using an OAuth application that application is what it
shows up as coming from.

You can always send the user to
http://twitter.com/home?status=text+goes+here

Abraham

On Wed, Jul 15, 2009 at 18:46, AccountingSoftwareGuy virga.rob...@gmail.com
 wrote:


 Hi I am using the new oAuth method for communicating with the Twitter
 API.  It appears the default behavior is to include the application
 name as the source of a post.  For instance...

 [date/time] from DynamicTweets

 This is fine in most cases but in certain cases we want to make a post
 look like it came from the web and not display our application name...
 [date/time] from web

 Is this possible, I've looked through many threads and I can't seem to
 find a way to do this and the source= parameter doesn't seem to work.




-- 
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: Is it possible to control the source name

2009-07-15 Thread victor castleton



-Original Message-
From: twitter-development-talk@googlegroups.com
[mailto:twitter-development-t...@googlegroups.com] On Behalf Of
AccountingSoftwareGuy
Sent: Wednesday, July 15, 2009 7:46 PM
To: Twitter Development Talk
Subject: [twitter-dev] Is it possible to control the source name


Hi I am using the new oAuth method for communicating with the Twitter
API.  It appears the default behavior is to include the application
name as the source of a post.  For instance...

[date/time] from DynamicTweets

This is fine in most cases but in certain cases we want to make a post
look like it came from the web and not display our application name...
[date/time] from web

Is this possible, I've looked through many threads and I can't seem to
find a way to do this and the source= parameter doesn't seem to work.



[twitter-dev] Re: OAuth related bug with signature Woah there!

2009-07-15 Thread victor castleton

I don't know whether or no it will help, but I will try it any way. Thanks

-Original Message-
From: twitter-development-talk@googlegroups.com
[mailto:twitter-development-t...@googlegroups.com] On Behalf Of test test
Sent: Wednesday, July 15, 2009 9:51 PM
To: twitter-development-talk@googlegroups.com
Subject: [twitter-dev] Re: OAuth related bug with signature Woah there!


+1 Even I keep hitting this issue.Hope twitter guys make oauth
registration solid.

On Wed, Jul 15, 2009 at 8:48 AM, Bill Kocikbko...@gmail.com wrote:


 I've seen this same (I believe) bug manifested in different ways, and
 it's come up on this list before. Twitter are apparently storing some
 sort of return_to URL or similar in your session, and sending you to
 it at inopportune times.

 A great way to see it in action is to click on the Block this user
 link when you get a new follower email; after confirming the block,
 you wind up at some random page you visited in the past (well, not
 completely random, it'll generally be the most recent page you visited
 besides the block page).


 On Jul 15, 9:52 am, Scott Carter scarter28m-goo...@yahoo.com wrote:
 I believe that I have discovered a reproducible OAuth related bug.

 1. Sign out of your Twitter account (from Twitter.com).
 2. Authenticate an app using OAuth (haven't tried authorize flow with
 this issue).
 3. Go to Twitter.com and login to a different account than used in
 step 2.

 I see the message:

 Woah there!

 This page requires some information that was not provided. Please
 return to the site that sent you to this page and try again … it was
 probably an honest mistake.

 with the page URL showing:  https://twitter.com/oauth/authenticate

 When I revisit twitter.com, I am logged into the account from step 3.

 - Scott
 @scott_carter



-- 

Spike Milligan  - All I ask is the chance to prove that money can't
make me happy. -
http://www.brainyquote.com/quotes/authors/s/spike_milligan.html



[twitter-dev] Re: OAuth related bug with signature Woah there!

2009-07-15 Thread victor castleton



-Original Message-
From: twitter-development-talk@googlegroups.com
[mailto:twitter-development-t...@googlegroups.com] On Behalf Of test test
Sent: Wednesday, July 15, 2009 9:51 PM
To: twitter-development-talk@googlegroups.com
Subject: [twitter-dev] Re: OAuth related bug with signature Woah there!


+1 Even I keep hitting this issue.Hope twitter guys make oauth
registration solid.

On Wed, Jul 15, 2009 at 8:48 AM, Bill Kocikbko...@gmail.com wrote:


 I've seen this same (I believe) bug manifested in different ways, and
 it's come up on this list before. Twitter are apparently storing some
 sort of return_to URL or similar in your session, and sending you to
 it at inopportune times.

 A great way to see it in action is to click on the Block this user
 link when you get a new follower email; after confirming the block,
 you wind up at some random page you visited in the past (well, not
 completely random, it'll generally be the most recent page you visited
 besides the block page).


 On Jul 15, 9:52 am, Scott Carter scarter28m-goo...@yahoo.com wrote:
 I believe that I have discovered a reproducible OAuth related bug.

 1. Sign out of your Twitter account (from Twitter.com).
 2. Authenticate an app using OAuth (haven't tried authorize flow with
 this issue).
 3. Go to Twitter.com and login to a different account than used in
 step 2.

 I see the message:

 Woah there!

 This page requires some information that was not provided. Please
 return to the site that sent you to this page and try again … it was
 probably an honest mistake.

 with the page URL showing:  https://twitter.com/oauth/authenticate

 When I revisit twitter.com, I am logged into the account from step 3.

 - Scott
 @scott_carter



-- 

Spike Milligan  - All I ask is the chance to prove that money can't
make me happy. -
http://www.brainyquote.com/quotes/authors/s/spike_milligan.html



[twitter-dev] Re: OAuth related bug with signature Woah there!

2009-07-15 Thread victor castleton



-Original Message-
From: twitter-development-talk@googlegroups.com
[mailto:twitter-development-t...@googlegroups.com] On Behalf Of test test
Sent: Wednesday, July 15, 2009 9:51 PM
To: twitter-development-talk@googlegroups.com
Subject: [twitter-dev] Re: OAuth related bug with signature Woah there!


+1 Even I keep hitting this issue.Hope twitter guys make oauth
registration solid.

On Wed, Jul 15, 2009 at 8:48 AM, Bill Kocikbko...@gmail.com wrote:


 I've seen this same (I believe) bug manifested in different ways, and
 it's come up on this list before. Twitter are apparently storing some
 sort of return_to URL or similar in your session, and sending you to
 it at inopportune times.

 A great way to see it in action is to click on the Block this user
 link when you get a new follower email; after confirming the block,
 you wind up at some random page you visited in the past (well, not
 completely random, it'll generally be the most recent page you visited
 besides the block page).


 On Jul 15, 9:52 am, Scott Carter scarter28m-goo...@yahoo.com wrote:
 I believe that I have discovered a reproducible OAuth related bug.

 1. Sign out of your Twitter account (from Twitter.com).
 2. Authenticate an app using OAuth (haven't tried authorize flow with
 this issue).
 3. Go to Twitter.com and login to a different account than used in
 step 2.

 I see the message:

 Woah there!

 This page requires some information that was not provided. Please
 return to the site that sent you to this page and try again … it was
 probably an honest mistake.

 with the page URL showing:  https://twitter.com/oauth/authenticate

 When I revisit twitter.com, I am logged into the account from step 3.

 - Scott
 @scott_carter



-- 

Spike Milligan  - All I ask is the chance to prove that money can't
make me happy. -
http://www.brainyquote.com/quotes/authors/s/spike_milligan.html



[twitter-dev] Re: OAuth related bug with signature Woah there!

2009-07-15 Thread victor castleton



-Original Message-
From: twitter-development-talk@googlegroups.com
[mailto:twitter-development-t...@googlegroups.com] On Behalf Of test test
Sent: Wednesday, July 15, 2009 9:51 PM
To: twitter-development-talk@googlegroups.com
Subject: [twitter-dev] Re: OAuth related bug with signature Woah there!


+1 Even I keep hitting this issue.Hope twitter guys make oauth
registration solid.

On Wed, Jul 15, 2009 at 8:48 AM, Bill Kocikbko...@gmail.com wrote:


 I've seen this same (I believe) bug manifested in different ways, and
 it's come up on this list before. Twitter are apparently storing some
 sort of return_to URL or similar in your session, and sending you to
 it at inopportune times.

 A great way to see it in action is to click on the Block this user
 link when you get a new follower email; after confirming the block,
 you wind up at some random page you visited in the past (well, not
 completely random, it'll generally be the most recent page you visited
 besides the block page).


 On Jul 15, 9:52 am, Scott Carter scarter28m-goo...@yahoo.com wrote:
 I believe that I have discovered a reproducible OAuth related bug.

 1. Sign out of your Twitter account (from Twitter.com).
 2. Authenticate an app using OAuth (haven't tried authorize flow with
 this issue).
 3. Go to Twitter.com and login to a different account than used in
 step 2.

 I see the message:

 Woah there!

 This page requires some information that was not provided. Please
 return to the site that sent you to this page and try again … it was
 probably an honest mistake.

 with the page URL showing:  https://twitter.com/oauth/authenticate

 When I revisit twitter.com, I am logged into the account from step 3.

 - Scott
 @scott_carter



-- 

Spike Milligan  - All I ask is the chance to prove that money can't
make me happy. -
http://www.brainyquote.com/quotes/authors/s/spike_milligan.html



[twitter-dev] Re: OAuth related bug with signature Woah there!

2009-07-15 Thread victor castleton



-Original Message-
From: twitter-development-talk@googlegroups.com
[mailto:twitter-development-t...@googlegroups.com] On Behalf Of test test
Sent: Wednesday, July 15, 2009 9:51 PM
To: twitter-development-talk@googlegroups.com
Subject: [twitter-dev] Re: OAuth related bug with signature Woah there!


+1 Even I keep hitting this issue.Hope twitter guys make oauth
registration solid.

On Wed, Jul 15, 2009 at 8:48 AM, Bill Kocikbko...@gmail.com wrote:


 I've seen this same (I believe) bug manifested in different ways, and
 it's come up on this list before. Twitter are apparently storing some
 sort of return_to URL or similar in your session, and sending you to
 it at inopportune times.

 A great way to see it in action is to click on the Block this user
 link when you get a new follower email; after confirming the block,
 you wind up at some random page you visited in the past (well, not
 completely random, it'll generally be the most recent page you visited
 besides the block page).


 On Jul 15, 9:52 am, Scott Carter scarter28m-goo...@yahoo.com wrote:
 I believe that I have discovered a reproducible OAuth related bug.

 1. Sign out of your Twitter account (from Twitter.com).
 2. Authenticate an app using OAuth (haven't tried authorize flow with
 this issue).
 3. Go to Twitter.com and login to a different account than used in
 step 2.

 I see the message:

 Woah there!

 This page requires some information that was not provided. Please
 return to the site that sent you to this page and try again … it was
 probably an honest mistake.

 with the page URL showing:  https://twitter.com/oauth/authenticate

 When I revisit twitter.com, I am logged into the account from step 3.

 - Scott
 @scott_carter



-- 

Spike Milligan  - All I ask is the chance to prove that money can't
make me happy. -
http://www.brainyquote.com/quotes/authors/s/spike_milligan.html



[twitter-dev] Tweetworks API is Available

2009-07-15 Thread MIkeLangford

Tweetworks brings groups (both public and private) and threaded
conversations to the Twitterverse. If you would to add these features
to your Twitter application please feel free to leverage our API.

API Documentation: http://www.tweetworks.com/pages/api

You will need an API Key but that is only so we can have a sense of
the amount of volume coming from each app.

@UltraNurd has created a full Python bindings/code library for working
with the API:

Python Site: http://pypi.python.org/pypi/tweetworks/
GitHub: http://github.com/UltraNurd/tweetworks-py/tree/master

You may contact me directly with any questions or if you'd like to
bang around development ideas.

Mike Langford
m...@tweetworks.com
@MikeLangford


[twitter-dev] Re: Does Rate Limiting Apply to Users or Clients?

2009-07-15 Thread LEE

If i have 2 accounts abc and efg, then i use a httpclient (java)
as a client to get the friend's status from a web application (which
use the Twitter4j), then how do this rate limiting for these 2
accounts abc and efg? each account has 150 requests? The how about
the web applicaiton only have 150 requests can be sent?

Thanks'

Lee



On Jul 7, 9:16 am, Abraham Williams 4bra...@gmail.com wrote:
 Each account has 150 requests / hr. If that that account is being used from
 several clients all of the hits will count against the 150.

 Abraham

 On Mon, Jul 6, 2009 at 19:54, devstudent andrey...@gmail.com wrote:

  If a person uses 2 clients. Can each client make 150 requests / hr, or
  does the 150 limit apply to both clients?

 --
 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] Is the rate limiting on IP or User a/c

2009-07-15 Thread LEE

Hi All,

I would like to ask, the default rate limit for calls to the REST API
is 150 requests per hour, is the rate limiting on IP (client) or on
User A/C? I have a web application to get the friend's status. I
didn't a testing to on this web application, using an A/C ABC to
keep on getting the friend's status. It ran about 70++ time to got the
result successfully, after that twitter returned exceed rate limiting.
Then i tried to use another A/C DEF to continue to get the friend's
status, but twitter returned exceed rate limiting. Guys, do you have
any idea on this rate limiting is on IP or A/C?

Thanks and Regards,