Re: [twitter-dev] Additional Delimiter

2010-03-14 Thread Ed Costello
On Mar 14, 2010, at 5:43 PM, thruflo wrote:
[…]
 However, if you look at the third status data from above, you see that
 the extra line can sometimes be a digit, in that case ``592``.  Which
 fairly effectively borkes the consumer.

From that list you posted:
0x5DE is 1496 + 6 bytes (4 bytes for “1496” plus 2 LFs)
0xA52 is 2636 + 6 bytes
0x592 is 1420 + 6 bytes

Now, I don’t know whether it’s correct that it’s returning a length in hex 
followed by a length in decimal, but the lengths do appear to be correct if you 
interpret the first number as hex.
Twitter will have to respond whether this is the correct behavior or not.
—
-ed costello

Re: [twitter-dev] Additional Delimiter

2010-03-14 Thread Ed Costello
On Sun, Mar 14, 2010 at 5:43 PM, thruflo thru...@googlemail.com wrote:

 [..] I've noticed that I'm getting an extra, undocumented, line
 before each length delimiter.


What's the command you're sending to twitter and the URL you’re using?  I
can’t replicate this (am just getting the decimal length in the responses).

-- 
-ed costello


Re: [twitter-dev] Data rates from yesterday's meeting?

2010-03-03 Thread Ed Costello
Related question: is there any technical difference between
http://stream.twitter.com/spritzer.json and
http://stream.twitter.com/1/statuses/sample.json?

spritzer.json is what one gets if you click on the link to sample.json in
the firehose page on the wiki.

-- 
-ed costello
@epc / +13474080372


Re: [twitter-dev] Re: Developer Preview: upcoming geo features (a.k.a A place is not just a latitude and a longitude - it has a name)

2010-03-02 Thread Ed Costello
Calls to http://api.twitter.com/1/geo/id/7695dd2ec2f86f2b.xml return JSON,
while appending any other extension (.html, .raffi, etc) return a 1 byte 403
error (0x20).  Since XML isn't supported according to the wiki docs, maybe
return 403 for .xml as well?

-- 
-ed costello
@epc / +13474080372


Re: [twitter-dev] Re: Global twitter profile image URL

2010-02-18 Thread Ed Costello

On Feb 18, 2010, at 10:18 AM, Dmitri Snytkine wrote:


I agree that having gravatar-style service for twitter avatars will be
tremendously useful!


…or maybe twitter could just give users the option of displaying the  
gravatar matching their registered email address.

--
-ed costello

Re: [twitter-dev] Is Twitter Search limited to past 7 days only?

2010-02-09 Thread Ed Costello
On Tue, Feb 9, 2010 at 3:31 PM, eco_bach bac...@gmail.com wrote:

 Is Twitter Search API  limited to past 7 days only?


Yes, search results are limited to seven days.  See
http://apiwiki.twitter.com/Twitter-Search-API-Method%3A-search

-- 
-ed costello


Re: [twitter-dev] Source parameter request for mobile Twitter app ignored (and issues with Twitter's policy toward oAuth on mobile/desktop)

2010-02-02 Thread Ed Costello

On Feb 2, 2010, at 8:14 AM, Aral Balkan wrote:

My app is not going to sell as well because I cannot get the source  
parameter because I will not use a technology that is not ready for  
prime time on my mobile app.


You’re complaining that your app will not sell well because the  
twitter API, which you use for free, will not provide you with a  
blessed source parameter?  I think there are other problems with your  
business plan than whether or not you can convince the API guys to  
choose horribly-bad-security over inconvenient-and-not-really- 
practical-for-desktop-but-there-you-go security.


Look, twitter have made a business decision to kill basic auth.  Basic  
Auth has been the source of numerous attacks on twitter’s users which,  
because of the way it works and psychology it promotes, twitter have  
no serious way to prevent.


Criticize oAuth, sure. Suggest improvements to the experience,  
certainly.  Find, document and demonstrate alternatives that are at  
least as good if not better than oAuth, fantastic.  But continuing to  
beat up the API guys here is unlikely to win you support or alter  
twitter’s API to suit your business needs.


--
-ed costello

Re: [twitter-dev] The remote server returned an error: (401) Unauthorized

2010-01-27 Thread Ed Costello
On Thu, Jan 28, 2010 at 12:51 AM, Jayster jehs...@yahoo.co.uk wrote:

   pry.Credentials = new NetworkCredential(usernamel,
 password,domain);


What are the HTTP headers you’re transmitting to twitter?

-- 
-ed costello


Re: [twitter-dev] Status update request returns incorrect tweet

2010-01-21 Thread Ed Costello
On Thu, Jan 21, 2010 at 11:27 AM, Chris Maguire chris.magu...@gmail.comwrote:

 I tested making the update call manually, and I got a similar result:
 The status we sent was not posted, but we were returned the
 information for their most recent tweet.


How long is the tweet text?

-- 
-ed costello


Re: [twitter-dev] Re: Sent URLs received incompletely if not urlencoded - how to fix?

2010-01-16 Thread Ed Costello
Are you absolutely certain that the entire URL is being posted to twitter? Is 
it possible that some filter is interpreting the “” character and stripping 
off the remaining URL before you post it to twitter?

Do you have a log of what is being transmitted to twitter?

Are you transmitting through any proxies which could potentially be stripping 
the data off?  Is twitter the only site with which this problem is occuring?

I can’t reproduce the problem, including posting the URL you listed, but I am 
URL encoding “” to “%26”.

By definition (see 
http://apiwiki.twitter.com/Things-Every-Developer-Should-Know#5Parametershavecertainexpectations)
 tweets are supposed to be URL encoded before transmitting to twitter, so I 
don’t understand what you mean by URL encoding.  If you want the “” to have 
meaning within your tweet (regardless of whether it’s in a URL or just text), 
you MUST convert it to %26 otherwise it will appear to twitter as a variable on 
par with source, geo, status and in_reply_to_status_id.  If you are not URL 
encoding the tweet then start doing so.
--
-ed costello

Re: [twitter-dev] Re: Best way to pull/cache location based search results?

2010-01-11 Thread Ed Costello
On Mon, Jan 11, 2010 at 9:09 AM, GeorgeMedia georgeme...@gmail.com wrote:

 Is what you are suggesting to basically consume the entire firehose as
 it comes in and look for geo parameters/locations in real time? My


Yes, that’s what I’m suggesting.  The current API features  constraints
won’t support what you’re trying to do except on a limited basis.  You are
better off consuming the firehose, geocoding tweets whatever way you see
fit, and throwing away the rest.

That’s based on your statement/need of 200,000+ geographic points of
interest.  You might consider drastically reducing that problem set to
something which does work within the current API constraints and features as
a proof of concept to see if you really need all 200,000+ points of interest
or if you can start with a smaller set.

But if you really want such a large number of points of interest, you’re
better off consuming the firehose and doing the filtering on your end, it’s
much less complex.

Might also look at what gnip.com is providing, though they seem to be in the
process of relaunching.

-- 
-ed costello
@epc / +13474080372


Re: [twitter-dev] extract all @replies for a user

2009-12-11 Thread Ed Costello
On Fri, Dec 11, 2009 at 18:19, Baron richar...@gmail.com wrote:

 possible to access all @replies for a user, or atleast more than 7
 days worth?


If you read a bit further on that page you’ll find:
• results are limited to 7 days

-- 
-ed costello


Re: [twitter-dev] Adding member to list does nothing

2009-12-07 Thread Ed Costello
6444795764 does not appear to be a valid twitter user id / id number, nor does
2074698.
The only list you appear to have is my-uber-peeps with id 2074438.

So, try using a valid user id number and correct the list id to 2074438 and
see if that works.
-- 
-ed costello
@epc / +13474080372


Re: [twitter-dev] Re: After a re-retweet, I don't get an error, I successfully retweeted some random Turkish guy instead.

2009-12-03 Thread Ed Costello
This sounds like issue 1209
http://code.google.com/p/twitter-api/issues/detail?id=1209

Twitter: could someone take a quick look at that issue? Some of the tweets
coming back in error are protected tweets which the authenticating user
shouldn't have access to.

-- 
-ed costello
@epc / +13474080372


Re: [twitter-dev] Re: After a re-retweet, I don't get an error, I successfully retweeted some random Turkish guy instead.

2009-12-03 Thread Ed Costello
On Thu, Dec 3, 2009 at 14:29, Mark McBride mmcbr...@twitter.com wrote:

 The problem has been identified, we should have a fix out today


Fantastic, thanks!

 -- -ed costello
@epc / +13474080372


Re: [twitter-dev] reset-seconds in Twitter API

2009-12-01 Thread Ed Costello
On Tue, Dec 1, 2009 at 20:07, Quy quyten...@gmail.com wrote:


 How do I interpret that? I ping it again but this number doesn't seem
 to change.


I believe it's the unix epoch, 1259717740 is/was Wed Dec  2 01:35:40 GMT
2009.
That's the time when your rate limit will reset.
-- 
-ed costello
@epc


[twitter-dev] Re: submit a TWITTER profile-picture via CURL from within a PERL scripts

2009-10-22 Thread Ed Costello
You need to force curl to drop the Expect: header:   curl -u userid:password
-H Expect: -F ima...@01.png
http://twitter.com/account/update_profile_image.xml

-- 
-ed costello


[twitter-dev] Re: sending DM to all followers?

2009-04-16 Thread Ed Costello
On Thu, Apr 16, 2009 at 5:35 PM, Nicole Simon nee...@gmail.com wrote:

 If you don't want to be DMed by certain people, dont follow them.
 If you do get something from them, unfollow.


I'm fine with getting DM'd by *people* I follow.  But I don't expect to get
DM'd by @cnnbrk or @jetblue unless I'm directly engaging them.  There's no
granularity to separate getting DM'd by a friend I follow from DM'd by a bot
powering a corporate account.
Alternately, if you want the ability to spam DM everyone who follows a given
account, then there must be a corresponding feature to block DMs from
accounts one follows.

-- 
-ed costello
@epc


[twitter-dev] Re: Is there a way to tell if a tweet has been favorited (regardless of user)?

2009-04-13 Thread Ed Costello
On Mon, Apr 13, 2009 at 1:41 PM, Doug Williams d...@twitter.com wrote:

 Ed,
 I'd love to see some apps crop up that display favorite content in
 interested ways. Can you create an issue?


I’ve opened issue 459:
http://code.google.com/p/twitter-api/issues/detail?id=459#c0
-- 
-ed costello