[twitter-dev] Retweet API Confusion

2009-11-14 Thread Coderanger

I am a bit confused about the retreet api as it doesnt seem to
correspond with the documentation:
* home_timeline does not have a retweet_details node, it appears to
have a retweeted_status node so docs seem completely wrong
* how do you know how many people have retweeted a tweet and who they
are, the documentaiton gives no examples for multiple retweets of a
tweet
* where is the retweet_count item, it doesnt appear to exist
* some information on the relationship of the nodes would be great;
i.e. who is the originator, who are the retweeters etc
* is there enough info (doesnt appear to be) to recreate the twitter
version (i have only seen screenshot from ev's blog post) Retweeted
by you and gregpass or i presume Retweeted by you, gregpass and 4
others

Basically the documentation seems incomplete, wrong and with not
enough examples ... could anyone elaborate but also can twitter fix
the docs


[twitter-dev] Twitter Tracking API

2009-11-14 Thread dhaval

Hi all

I am using Twitter tracking API for my project. Currently I am getting
the data and storing it as a file. Then I read the file and insert the
data.

But is it possible that I can add it directly while the request is on
and not storing it in the file?

Thanks


[twitter-dev] Re: PHP/cURL statuses/update results in 200 OK, but no actual update

2009-11-14 Thread Dave Sherohman

On Fri, Nov 13, 2009 at 01:56:40PM -0800, EvilJordan wrote:
 Very simple PHP/cURL script to update a status.
 
 With the curl output set to verbose, I see the connection being made
 and a response code of 200 OK.
 
 Unfortunately, my status isn't actually updating and I can't figure
 out why. The status message is urlencoded, basic authentication is
 successful, and using curl from the command line works just fine.

For the last month or so, Twitter has been silently rejecting status
updates which either exceed 140 characters or are duplicates of any
previous status for that user (not just the most recent).  When this
occurs, the response is a 200 OK and carries the user's most recent
successful status as its body.

You can easily avoid the silent failures for exceeding 140 characters by
double-checking the length of the text before sending it, but predicting
whether an update will fail due to duplication is not such a simple
task...

Twitter has stated that providing a clear indication of when this has
occurred (I don't recall whether it was stated whether it will be an
error code per se or not) is on the short list, but no ETA on a fix
has been given.

Until this is resolved, you basically have two options for trying to
detect it:

1) Keep track of the highest status ID you've encountered.  When a
status update is submitted, check the status ID in the response.  If the
update succeeded, the new ID will be higher than any old ID.  If it
failed, you'll get an older status (with an older, lower ID) instead.

2) Compare the text that you sent with the text you got back.  If
they're different, it failed - or Twitter did automatic URL shortening
or modified the text in some other manner.  If the new status is an
exact duplicate of the previous status, this would also falsely lead you
to believe that it had succeeded when it actually failed; depending on
your application, this may or may not be relevant.

Obviously, I consider method 1 to be the more reliable (although there
are certain race conditions in which it would fail, too), but it does
require you to keep that latest seen ID around and relatively
up-to-date.

-- 
Dave Sherohman


[twitter-dev] Re: Retweet API Confusion

2009-11-14 Thread Coderanger

My test account now has retweet enabled, hurrah. But although I can
use it on the web site, the APIs seem broken. Home_timeline contains
no retweet info at all.

Is it broken or is it me?


[twitter-dev] Re: Twitter Tracking API

2009-11-14 Thread John Kalucki

Dhaval,

I think you are referring to the track parameter on the Streaming API.
If so, there are a number of client libraries that will present you
with each status as they arrive. Or, with a little effort, some HTTP
client libraries can be used to do the same thing.

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

On Nov 14, 12:58 am, dhaval dhaval.parik...@gmail.com wrote:
 Hi all

 I am using Twitter tracking API for my project. Currently I am getting
 the data and storing it as a file. Then I read the file and insert the
 data.

 But is it possible that I can add it directly while the request is on
 and not storing it in the file?

 Thanks


[twitter-dev] Login issues

2009-11-14 Thread artesea

I'm still using HTTP requests to login via the API with a private dabr
install I've got running. However I'm getting a large number of 401 -
Could not authenticate you when I try to sign in.
I recently changed my password on Twitter, however I have no problems
login on the main site, via http://dabr.co.uk/ and other still using
HTTP.
I see able to login with other usernames fine on my own install, and
the 401 don't always appear.
It's happening on every machine I use, and all the cookies have been
wiped multiple times.
Before I end up pulling my code apart, are they any issues with
changed passwords and HTTP auth requests?


[twitter-dev] Re: 413 FULL head error on Streaming API

2009-11-14 Thread Julien

John, Cameron... Any clue?



On Nov 12, 11:05 am, Julien julien.genest...@gmail.com wrote:
 Indeed... sorry about that!

 On Nov 12, 10:52 am, Cameron Kaiser spec...@floodgap.com wrote:



   For some reason, my previous post didn't show up :/

  That's because you're a new poster and the volunteer mods have to approve
  them first. Give us a chance :)

  --
   
  personal:http://www.cameronkaiser.com/--
    Cameron Kaiser * Floodgap Systems *www.floodgap.com*ckai...@floodgap.com
  -- It's lonely at the top, but the food is better. 
  


[twitter-dev] Re: Getting Blocked user list

2009-11-14 Thread TJ Luoma

On Fri, Nov 13, 2009 at 11:04 PM, stevie j stevie@gmail.com wrote:
 Thanks Loumat for the reply. What I am trying is toget just the current
 authenticated user/my blocked list - but there seems to be no proper API? Am
 I missing something?

http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-blocks-blocking

http://twitter.com/blocks/blocking.xml


[twitter-dev] Cannot post Hebrew characters

2009-11-14 Thread אמיר סימן טוב

Hi all,

Hope that this is the right place.

Posting to Twitter is easy:
http://www.twitter.com/home/?status=http://some-url.com+MORE_INFO

While MORE_INFO is any string (according to max length).

However, when posting - even from the browser's (FF) address bar -
Hebrew characters, they appear as either as diamonds or there HTML
representatives (%20 etc).

What might be done?

Thanks!


[twitter-dev] Re: Read / Write Access By Default, But Can't POST

2009-11-14 Thread ryan alford
Delete your registration and add it again.

On Nov 14, 2009 3:52 PM, Twlisted twlistedm...@gmail.com wrote:


If I go to my application details page, it's marked as read/write
access by default.  But when I attempt to POST such as

 http://api.twitter.com/1/.$list_user./.$user_list./members.json;

I get back the error: Read-only application cannot POST

So if I'm a read only application, why does my application page say
I'm read/write, and how do I get the app changed to be read/write?


[twitter-dev] Re: Read / Write Access By Default, But Can't POST

2009-11-14 Thread Twlisted

Awesome, that worked.  Thanks!

On Nov 14, 3:54 pm, ryan alford ryanalford...@gmail.com wrote:
 Delete your registration and add it again.

 On Nov 14, 2009 3:52 PM, Twlisted twlistedm...@gmail.com wrote:

 If I go to my application details page, it's marked as read/write
 access by default.  But when I attempt to POST such as

  http://api.twitter.com/1/.$list_user./.$user_list./members.json;

 I get back the error: Read-only application cannot POST

 So if I'm a read only application, why does my application page say
 I'm read/write, and how do I get the app changed to be read/write?


[twitter-dev] Read / Write Access By Default, But Can't POST

2009-11-14 Thread Twlisted

If I go to my application details page, it's marked as read/write
access by default.  But when I attempt to POST such as

 http://api.twitter.com/1/.$list_user./.$user_list./members.json;

I get back the error: Read-only application cannot POST

So if I'm a read only application, why does my application page say
I'm read/write, and how do I get the app changed to be read/write?


[twitter-dev] USERS/SHOW and rate limits

2009-11-14 Thread EastSideDev

I am trying to use USERS/SHOW to get users information, and running
into the reached the rate limit of 150 API calls in one hour. My
user ID is supposedly whitelisted. I know that the USERS/SHOW does not
require authentication, but I was under the impression that if I did
call it using curl, with my credentials, then the whitelist limits
will kick in, as opposed to the 150 API calls per hour. Suggestions?


[twitter-dev] Re: Searching for users

2009-11-14 Thread Raffi Krikorian


http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-users-search



Is there a way to use the Twitter API to search for a user using
partial strings or booleans? Let's say, searching for hello and
coming back with @helloluis, @hellotoni, @helloworld, etc.?
(Ideally, hashes of these users' profiles?)

If not, is there a way to cobble this functionality together somehow?
I've been looking around and can't find an obvious way to do this.

:luis


--
Raffi Krikorian
Twitter Platform Team
ra...@twitter.com | @raffi






[twitter-dev] Re: Twitter message with html entities get truncated

2009-11-14 Thread Randy Brown
Help from another programming site, use urlencode() . That does the trick.

On Wed, Nov 11, 2009 at 6:06 PM, mndasher mndas...@gmail.com wrote:

 I store my content in a MySQL database. The website is using PHP. Data
 fields are encoded so that html tags are using entities; i.e.  p =
 lt;pgt;  When I query the database I decode the entities, and then
 strip the tags. That works fine. But some entities don't get
 converted. So nbsp; causes a problem for a cURL message. The message
 is truncated at the ampersand.  So I did a string replace where nbsp;
 becomes a space.  So that solved one problem. But ampersand is still a
 problem. Neither amp; or simply  work. The both result in a
 truncated message.  A string replace of amp; with 'and' seems to
 work. But is kind of weird.

 I have also tried utf8_encode($message) but I don't see any difference
 in the output or the result with the API.

 All of the API help and samples I have seen use a very simple message
 example. I have not seen any help on how to format the actual
 message.  I saw some where that it should be UTF-8. Mostly the
 messages are plain text, but these two characters cause problems. So
 do quotes and single quotes as far as that goes.  If I add slashes the
 slashes come through in the final message.

 Is there any real help for these problems?


[twitter-dev] Empty reply from server on Streaming API?

2009-11-14 Thread Jim DeLaHunt

Am I the only one seeing this? I call the Streaming API 10x/hour. For
the last 23 hours or so, I've been getting bad responses every time.

I use a cron job to call from the Linux shell:

curl --user myid:mypassword --silent --fail --max-time 3 --retry 0
http://stream.twitter.com/1/statuses/sample.xml

and I get usually a curl return code (52) Empty reply from server,
though sometimes (6) name lookup timed out. Same thing happens when
I ask for .json instead of .xml.

The failures started at the rate of 1-2/hour on 2009/11/13 09:00h UTC
(Friday early morning PST), though they became continuous as of
200/11/14 03:24h UTC (Friday evening PST), and remain continuous.

Is anyone else calling this API and failing? Or succeeding? in the
last 24 hours?

Thank you,
   --Jim DeLaHunt, Vancouver, Canada@jdlh
   Twanguages: a language census of Twitter   @twanguages
http://jdlh.com/en/pr/twanguages.html


[twitter-dev] Re: Login issues

2009-11-14 Thread Dewald Pretorius

I am also getting complaints from users who cannot authenticate via
the API with the same credentials that they use when logging on to
twitter.com.

Has the change, which limits invalid credentials lockout to a specific
IP address, perhaps been accidentally rolled back?

Dewald

On Nov 14, 5:55 am, artesea ryancul...@gmail.com wrote:
 I'm still using HTTP requests to login via the API with a private dabr
 install I've got running. However I'm getting a large number of 401 -
 Could not authenticate you when I try to sign in.
 I recently changed my password on Twitter, however I have no problems
 login on the main site, viahttp://dabr.co.uk/and other still using
 HTTP.
 I see able to login with other usernames fine on my own install, and
 the 401 don't always appear.
 It's happening on every machine I use, and all the cookies have been
 wiped multiple times.
 Before I end up pulling my code apart, are they any issues with
 changed passwords and HTTP auth requests?


[twitter-dev] Re: Empty reply from server on Streaming API?

2009-11-14 Thread John Kalucki

This sounds like you were ignoring HTTP error codes and eventually got
blacklisted. Consider: 
http://apiwiki.twitter.com/Streaming-API-Documentation#Connecting

You can tell for sure by turning off --silent and using -v to see
what's going on. You should be getting some sort of message back, or
absolutely nothing back. Those codes are not HTTP error codes, they
must be some curl artifact.

Tcpdump is also sometimes useful.

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



On Nov 14, 6:13 pm, Jim DeLaHunt jim.delah...@gmail.com wrote:
 Am I the only one seeing this? I call the Streaming API 10x/hour. For
 the last 23 hours or so, I've been getting bad responses every time.

 I use a cron job to call from the Linux shell:

 curl --user myid:mypassword --silent --fail --max-time 3 --retry 
 0http://stream.twitter.com/1/statuses/sample.xml

 and I get usually a curl return code (52) Empty reply from server,
 though sometimes (6) name lookup timed out. Same thing happens when
 I ask for .json instead of .xml.

 The failures started at the rate of 1-2/hour on 2009/11/13 09:00h UTC
 (Friday early morning PST), though they became continuous as of
 200/11/14 03:24h UTC (Friday evening PST), and remain continuous.

 Is anyone else calling this API and failing? Or succeeding? in the
 last 24 hours?

 Thank you,
    --Jim DeLaHunt, Vancouver, Canada   �...@jdlh
    Twanguages: a language census of Twitter   
 @twanguageshttp://jdlh.com/en/pr/twanguages.html