[twitter-dev] Re: Net::Twitter dev release with Lists API support

2009-10-24 Thread Jesse Stay
How do I get on the List beta?  I'd really like to use it.  Who do I pay and
how much?

Jesse

On Fri, Oct 23, 2009 at 10:47 PM, Marc Mims marc.m...@gmail.com wrote:


 I uploaded a development release of Net::Twitter to CPAN with Lists API
 support.  If you're a perl developer and you're on the Lists beta,
 please test it and give me some feedback.

 Download it here:
 http://search.cpan.org/~mmims/Net-Twitter-3.07999_01/

 For documentation see:

perldoc Net::Twitter::Role::API::Lists

 You'll need to include the API::Lists trait:

my $nt = Net::Twitter-new(traits = ['API::Lists', ...], ...);

 You can always use the user parameter as the first placeholder
 argument to any of the API calls.  Any or all of the parameters included
 in the API URL can be passed as placeholder arguments.  Additional
 arguments are passed by name in a HASH ref as the final argument.  Any
 or all parameters can be passed in the HASH ref.

 For example, these calls are equivalent:

my $list = $nt-create_list(perl_api =
{ name = 'test', mode = private }
);

my $list = $nt-create_list({
user = 'perl_api',
name = 'test',
mode = 'private',
});

 In my own testing, I've noticed that the update_list call always returns
 a 500 status, even though it succeeds.  That's probably a Twitter bug
 that will be worked out.

 The Lists API support is experimental.  It will very likely change
 before a final release.  Feedback welcome.

-Marc



[twitter-dev] Re: Net::Twitter dev release with Lists API support

2009-10-24 Thread Michael Steuer

+1 - would really like to start implementing.



On Oct 23, 2009, at 11:31 PM, Jesse Stay jesses...@gmail.com wrote:

How do I get on the List beta?  I'd really like to use it.  Who do I  
pay and how much?


Jesse

On Fri, Oct 23, 2009 at 10:47 PM, Marc Mims marc.m...@gmail.com  
wrote:


I uploaded a development release of Net::Twitter to CPAN with Lists  
API

support.  If you're a perl developer and you're on the Lists beta,
please test it and give me some feedback.

Download it here:
http://search.cpan.org/~mmims/Net-Twitter-3.07999_01/

For documentation see:

   perldoc Net::Twitter::Role::API::Lists

You'll need to include the API::Lists trait:

   my $nt = Net::Twitter-new(traits = ['API::Lists', ...], ...);

You can always use the user parameter as the first placeholder
argument to any of the API calls.  Any or all of the parameters  
included

in the API URL can be passed as placeholder arguments.  Additional
arguments are passed by name in a HASH ref as the final argument.  Any
or all parameters can be passed in the HASH ref.

For example, these calls are equivalent:

   my $list = $nt-create_list(perl_api =
   { name = 'test', mode = private }
   );

   my $list = $nt-create_list({
   user = 'perl_api',
   name = 'test',
   mode = 'private',
   });

In my own testing, I've noticed that the update_list call always  
returns

a 500 status, even though it succeeds.  That's probably a Twitter bug
that will be worked out.

The Lists API support is experimental.  It will very likely change
before a final release.  Feedback welcome.

   -Marc



[twitter-dev] Re: Net::Twitter dev release with Lists API support

2009-10-24 Thread Rich

Same here, I really want to implement but can't without access to the
APIs

Can't at least API devs have access to the feeds even if not on the
site itself?

On Oct 24, 8:31 am, Michael Steuer mste...@gmail.com wrote:
 +1 - would really like to start implementing.

 On Oct 23, 2009, at 11:31 PM, Jesse Stay jesses...@gmail.com wrote:



  How do I get on the List beta?  I'd really like to use it.  Who do I  
  pay and how much?

  Jesse

  On Fri, Oct 23, 2009 at 10:47 PM, Marc Mims marc.m...@gmail.com  
  wrote:

  I uploaded a development release of Net::Twitter to CPAN with Lists  
  API
  support.  If you're a perl developer and you're on the Lists beta,
  please test it and give me some feedback.

  Download it here:
 http://search.cpan.org/~mmims/Net-Twitter-3.07999_01/

  For documentation see:

     perldoc Net::Twitter::Role::API::Lists

  You'll need to include the API::Lists trait:

     my $nt = Net::Twitter-new(traits = ['API::Lists', ...], ...);

  You can always use the user parameter as the first placeholder
  argument to any of the API calls.  Any or all of the parameters  
  included
  in the API URL can be passed as placeholder arguments.  Additional
  arguments are passed by name in a HASH ref as the final argument.  Any
  or all parameters can be passed in the HASH ref.

  For example, these calls are equivalent:

     my $list = $nt-create_list(perl_api =
         { name = 'test', mode = private }
     );

     my $list = $nt-create_list({
         user = 'perl_api',
         name = 'test',
         mode = 'private',
     });

  In my own testing, I've noticed that the update_list call always  
  returns
  a 500 status, even though it succeeds.  That's probably a Twitter bug
  that will be worked out.

  The Lists API support is experimental.  It will very likely change
  before a final release.  Feedback welcome.

         -Marc


[twitter-dev] Re: API 140 character truncation change?

2009-10-24 Thread Dave Sherohman

On Fri, Oct 23, 2009 at 04:20:36PM -0700, Dewald Pretorius wrote:
 Instead of all of us having to do fancy tap-dances, the proper
 solution is for Twitter to issue an error response when a sent tweet
 is rejected for whatever reason.

Yep, exactly.  That's my big gripe about the whole thing.  Failing
silently is *never* the right answer in an API or other library code.

-- 
Dave Sherohman


[twitter-dev] Re: New behaviour for statuses/update API call for 141+ char sized messages and duplicates?

2009-10-24 Thread Dave Sherohman

http://groups.google.com/group/twitter-development-talk/browse_thread/thread/cd95ce07be341223/66c66de585383868#66c66de585383868
http://groups.google.com/group/twitter-development-talk/browse_thread/thread/3d6a727892710d5e#

These are deliberate changes on Twitter's part, so they are not bugs.
Whether they are features depends on who you ask...

As it currently stands, you must either check the returned status ID to
see if it's higher than previous IDs or compare the submitted status to
the returned status (ignoring URLs) to determine whether the update was
actually successful or if it was silently rejected by Twitter.

Hopefully, in the (very near) future, Twitter will start providing some
indication in the response that will make it simple and reliable to
determine when an update has been rejected without requiring app
developers to try to figure that out on our own, but, so far as I am
aware, Twitter has not yet made any statement regarding this.

On Fri, Oct 23, 2009 at 08:53:16AM -0700, Kevin Menard wrote:
 
 Hi,
 
 I'm seeing the same thing that Ole is.  Twitter is not truncating the
 status, but rather returning the last correctly updated status.
 
 --
 Kevin
 
 On Oct 16, 4:58 am, janole s...@mobileways.de wrote:
  According to my tests, messages will not be truncated anymore!
 
  Instead, you will get the most recentstatusupdateas a reply.
 
  Is this a bug or feature?
 
  Also, it seems as if the API now checks for duplicates in your
  backlog of statuses and not just you most recent tweet.
 
  Previously, only the last tweet was checked:
 
  - Last tweet test
  - Send new tweet with status=test will return the oldstatus(with
  the old status_id)
 
  but if you had something like this:
 
  Last tweet Hello, world.
  Second last tweet test
 
  Then you were able to create a new tweet with status=test!
 
  This is not possible at the moment.
 
  Bug or feature?
 
  I'm getting a lot of complaints from my Twitter client users who
  apparently experience both of these new behaviours or bugs (long
  tweets fail, duplicates fail.)
 
  Ole @ mobileways.de
  On Twitter:http://twitter.com/janole
 
  On Oct 15, 8:26 pm, Josh Roesslein jroessl...@gmail.com wrote:
 
 
 
   If you send a message longer than 140 twitter will truncate it and set
   the truncate value on thestatusto True.
   For duplicates it will just ignore thestatus.
 
   Josh
 
   On Thu, Oct 15, 2009 at 1:20 PM, janole s...@mobileways.de wrote:
 
Hi,
 
I just figured out that when calling statuses/updatewith a text
longer than 140 chars, the reply of that API call will be 200 OK with
the laststatusof the user.
 
Wouldn't it be better to return some sort of error message?
 
The same seems to be happening when sending a duplicate tweet.
 
Ole
 
--
Jan Ole Suhr
s...@mobileways.de
On Twitter:http://twitter.com/janole

-- 
Dave Sherohman


[twitter-dev] Re: API 140 character truncation change?

2009-10-24 Thread Dave Sherohman

On Fri, Oct 23, 2009 at 02:24:53PM -0700, AJ Chen wrote:
 I noticed this behavior a long time ago (may be a month) and reported the
 problem on this list, but it did not get any response from the api team. I
 thought it was a bug, but just realized yesterday that the api probably
 ignores 140+ chars status update intentionally. but' I'm not sure this is
 the policy or temporary tactic to reduce workload on api. it would be good
 that api team can clasify on this issue. to check if this happens or not,
 you can compare the status sent to api and the status returned from api in
 your application code.

Note that duplicate statuses are silently failing in the same manner as
those over 140 characters.  Aside from the already-mentioned issue of
Twitter doing automatic bit.ly shortening on URLs, comparing the
submitted status to the received status will also produce incorrect
results when the submitted status is rejected for being identical to the
user's most-recent previous status.  Depending on your application,
failure in this scenario may or may not be relevant.

-- 
Dave Sherohman


[twitter-dev] example of converting userName to userID via scripting

2009-10-24 Thread jeffs

I have posted some simple scripts to manage Lists at:
http://www.ist.rit.edu/~jxs/tools/scripting/twitterLists.html - I try
to encourage my students to get into scripting  to have fun with curl/
grep/sed/etc...

I have noticed a fair amount of chatter around the Web about
converting userName to userID, and there is quick-hack code at the
bottom of that page of examples (as part of the addmember  and
rmmember scripts). If it is useful, feel free to use it (all my
stuff is CC licensed). If you have improvements to suggest, that would
be great (and with your permission I will gladly fold it into my
example scripts  of course give attribution).

jeffs
aka @jeffsonstein


[twitter-dev] Re: example of converting userName to userID via scripting

2009-10-24 Thread Rolando Espinoza La Fuente

On Sat, Oct 24, 2009 at 9:39 AM, jeffs jsonst...@gmail.com wrote:
[...]

 I have noticed a fair amount of chatter around the Web about
 converting userName to userID, and there is quick-hack code at the
 bottom of that page of examples (as part of the addmember  and
 rmmember scripts). If it is useful, feel free to use it (all my
 stuff is CC licensed). If you have improvements to suggest, that would
 be great (and with your permission I will gladly fold it into my
 example scripts  of course give attribution).

Hi, i tested with awk instead of sed, does the same but less code :)

USERID=$( \
curl --silent -u $USERNAME:$PASSWORD http://twitter.com/users/show/$1.xml \
| grep 'id' | head -1 | awk -F'/?id' '{ print $2 }'
) #

Regards,

-- 
ø Rolando Espinoza La fuente


[twitter-dev] XML parsing error when using JSON search.twitter.com/search.json?

2009-10-24 Thread TrixJo

Hello

I am trying to search twitter content using a mySQL/PHP entry in a
table:

$contents = file_get_contents(
http://search.twitter.com/search.json?
lang=enrpp=5q=.urlencode($row[topicTitle]));

$json = json_decode($contents);

I am returning the results via AJAX as an XML file

The problem that I get is:

XML Parsing Error: not well-formed
Location: http://www.domain.com/path/to/my/script.php?id=2765
Line Number 77, Column 44:[refresh_url] = ?
since_id=5126537872q=Indonesia


where Indonesia happens to be the value of $row[topicTitle]

The problem is with the value of $row[topicTitle]  -- doesn't matter
if the term is Indonesia or any other word or phrase (I tried a
bunch) -- I keep getting that XML error

I also tried enclosing it with single quotes, same error

help please?


[twitter-dev] Re: XML parsing error when using JSON search.twitter.com/search.json?

2009-10-24 Thread JDG
You sure that's where the error is? there have been numerous reported
problems with PHP's JSON decoder that it doesn't handle the very large
numbers of Twitter's IDs well.

On Sat, Oct 24, 2009 at 11:11, TrixJo tri...@gmail.com wrote:


 Hello

 I am trying to search twitter content using a mySQL/PHP entry in a
 table:

 $contents = file_get_contents(
http://search.twitter.com/search.json?
 lang=enrpp=5q=http://search.twitter.com/search.json?%0Alang=enrpp=5q=
 .urlencode($row[topicTitle]));

 $json = json_decode($contents);

 I am returning the results via AJAX as an XML file

 The problem that I get is:

 XML Parsing Error: not well-formed
 Location: http://www.domain.com/path/to/my/script.php?id=2765
 Line Number 77, Column 44:[refresh_url] = ?
 since_id=5126537872q=Indonesia


 where Indonesia happens to be the value of $row[topicTitle]

 The problem is with the value of $row[topicTitle]  -- doesn't matter
 if the term is Indonesia or any other word or phrase (I tried a
 bunch) -- I keep getting that XML error

 I also tried enclosing it with single quotes, same error

 help please?




-- 
Internets. Serious business.


[twitter-dev] Re: XML parsing error when using JSON search.twitter.com/search.json?

2009-10-24 Thread Dewald Pretorius

Isn't it because you are trying to process a JSON object as XML data?

Dewald

On Oct 24, 2:11 pm, TrixJo tri...@gmail.com wrote:
 Hello

 I am trying to search twitter content using a mySQL/PHP entry in a
 table:

 $contents = file_get_contents(
                     http://search.twitter.com/search.json?
 lang=enrpp=5q=.urlencode($row[topicTitle]));

 $json = json_decode($contents);

 I am returning the results via AJAX as an XML file

 The problem that I get is:

 XML Parsing Error: not well-formed
 Location:http://www.domain.com/path/to/my/script.php?id=2765
 Line Number 77, Column 44:    [refresh_url] = ?
 since_id=5126537872q=Indonesia

 where Indonesia happens to be the value of $row[topicTitle]

 The problem is with the value of $row[topicTitle]  -- doesn't matter
 if the term is Indonesia or any other word or phrase (I tried a
 bunch) -- I keep getting that XML error

 I also tried enclosing it with single quotes, same error

 help please?


[twitter-dev] Re: XML parsing error when using JSON search.twitter.com/search.json?

2009-10-24 Thread TrixJo

JDG,

I am certain that is where the error is coming from because the error
supplied by the browser is pointing at my query string

Dewald, I am processing the data via JSON into an array



I then take that array and simply echo the relevant errors into XML
format (because I have other queries for other thnigs that I also have
in XML format so I am putting everything together in the same format
which is XML)




On Oct 24, 1:31 pm, Dewald Pretorius dpr...@gmail.com wrote:
 Isn't it because you are trying to process a JSON object as XML data?

 Dewald

 On Oct 24, 2:11 pm, TrixJo tri...@gmail.com wrote:



  Hello

  I am trying to search twitter content using a mySQL/PHP entry in a
  table:

  $contents = file_get_contents(
                      http://search.twitter.com/search.json?
  lang=enrpp=5q=.urlencode($row[topicTitle]));

  $json = json_decode($contents);

  I am returning the results via AJAX as an XML file

  The problem that I get is:

  XML Parsing Error: not well-formed
  Location:http://www.domain.com/path/to/my/script.php?id=2765
  Line Number 77, Column 44:    [refresh_url] = ?
  since_id=5126537872q=Indonesia

  where Indonesia happens to be the value of $row[topicTitle]

  The problem is with the value of $row[topicTitle]  -- doesn't matter
  if the term is Indonesia or any other word or phrase (I tried a
  bunch) -- I keep getting that XML error

  I also tried enclosing it with single quotes, same error

  help please?


[twitter-dev] Re: XML parsing error when using JSON search.twitter.com/search.json?

2009-10-24 Thread JDG
OH. I see what you're saying now. Again, the problem isn't with indonesia
... it's the fact that you're putting  in an xml tag. You need to change
it to amp;

On Sat, Oct 24, 2009 at 11:55, TrixJo tri...@gmail.com wrote:


 JDG,

 I am certain that is where the error is coming from because the error
 supplied by the browser is pointing at my query string

 Dewald, I am processing the data via JSON into an array



 I then take that array and simply echo the relevant errors into XML
 format (because I have other queries for other thnigs that I also have
 in XML format so I am putting everything together in the same format
 which is XML)




 On Oct 24, 1:31 pm, Dewald Pretorius dpr...@gmail.com wrote:
  Isn't it because you are trying to process a JSON object as XML data?
 
  Dewald
 
  On Oct 24, 2:11 pm, TrixJo tri...@gmail.com wrote:
 
 
 
   Hello
 
   I am trying to search twitter content using a mySQL/PHP entry in a
   table:
 
   $contents = file_get_contents(
   http://search.twitter.com/search.json?
   lang=enrpp=5q=.urlencode($row[topicTitle]));
 
   $json = json_decode($contents);
 
   I am returning the results via AJAX as an XML file
 
   The problem that I get is:
 
   XML Parsing Error: not well-formed
   Location:http://www.domain.com/path/to/my/script.php?id=2765
   Line Number 77, Column 44:[refresh_url] = ?
   since_id=5126537872q=Indonesia
 
   where Indonesia happens to be the value of $row[topicTitle]
 
   The problem is with the value of $row[topicTitle]  -- doesn't matter
   if the term is Indonesia or any other word or phrase (I tried a
   bunch) -- I keep getting that XML error
 
   I also tried enclosing it with single quotes, same error
 
   help please?




-- 
Internets. Serious business.


[twitter-dev] Rate Limit: Two accounts on single machine or the limit for the IP of machine with those accounts? - thats the question!

2009-10-24 Thread Atul Kulkarni
Hi All,

I have a small question,

if I run two different scripts authorized with two different accounts
(whitelisted) from the same machine (IP whitelisted), will the rate limit of
the machine which i thnk will be reached be counted (given that I am using
same machine for the both the requests) or the rate limit for the two
different accounts with authorization be used? I don't want them to fight
against eachother for rate, hence the question.

-- 
Regards,
Atul Kulkarni
www.d.umn.edu/~kulka053


[twitter-dev] Re: Draft of List API documentation

2009-10-24 Thread Dave Briccetti

By the way, I changed this code to do ten or fifteen of these at a
time, using multiple threads, and it’s much, much faster.


[twitter-dev] 52: Empty reply from server

2009-10-24 Thread shiplu

Hello,

I am getting 52: Empty reply from server error from curl while
calling friendships/destroy method. what is the problem?

see my curl_getinfo() output.

array(20) {
  [url]=
  string(51) http://twitter.com/friendships/destroy/sample.json;
  [content_type]=
  NULL
  [http_code]=
  int(0)
  [header_size]=
  int(0)
  [request_size]=
  int(501)
  [filetime]=
  int(-1)
  [ssl_verify_result]=
  int(0)
  [redirect_count]=
  int(0)
  [total_time]=
  float(0.180022)
  [namelookup_time]=
  float(0.035113)
  [connect_time]=
  float(0.107336)
  [pretransfer_time]=
  float(0.107453)
  [size_upload]=
  float(0)
  [size_download]=
  float(0)
  [speed_download]=
  float(0)
  [speed_upload]=
  float(0)
  [download_content_length]=
  float(0)
  [upload_content_length]=
  float(0)
  [starttransfer_time]=
  float(0.179996)
  [redirect_time]=
  float(0)
}


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


[twitter-dev] Re: 52: Empty reply from server

2009-10-24 Thread shiplu
I think its related.
I am requesting via OAuth pecl extension of PHP.
Any type of request to twitter now contains no header no data.



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


[twitter-dev] Twitter Lists: /user/list/members.xml returning only 20 at a time

2009-10-24 Thread Dave Briccetti

How can I retrieve more than 20 at a time?

?cursor=-1count=200  has no effect



[twitter-dev] Re: XML parsing error when using JSON search.twitter.com/search.json?

2009-10-24 Thread TrixJo

Ok.  Thanks.  I changed it to amp;

Still now working.  I am trying to query Twitter content and then
display my query in XML format.

To get a better idea of what I am trying to do I have pastebin'd the
code:

http://pastebin.com/m51f7a9dd

The error I am getting is that my file_get_contents() is faulty when
it looks fine to me.  No XML errors now.. just a PHP error.

A little help please?


On Oct 24, 2:37 pm, JDG ghil...@gmail.com wrote:
 OH. I see what you're saying now. Again, the problem isn't with indonesia
 ... it's the fact that you're putting  in an xml tag. You need to change
 it to amp;





 On Sat, Oct 24, 2009 at 11:55, TrixJo tri...@gmail.com wrote:

  JDG,

  I am certain that is where the error is coming from because the error
  supplied by the browser is pointing at my query string

  Dewald, I am processing the data via JSON into an array

  I then take that array and simply echo the relevant errors into XML
  format (because I have other queries for other thnigs that I also have
  in XML format so I am putting everything together in the same format
  which is XML)

  On Oct 24, 1:31 pm, Dewald Pretorius dpr...@gmail.com wrote:
   Isn't it because you are trying to process a JSON object as XML data?

   Dewald

   On Oct 24, 2:11 pm, TrixJo tri...@gmail.com wrote:

Hello

I am trying to search twitter content using a mySQL/PHP entry in a
table:

$contents = file_get_contents(
                    http://search.twitter.com/search.json?
lang=enrpp=5q=.urlencode($row[topicTitle]));

$json = json_decode($contents);

I am returning the results via AJAX as an XML file

The problem that I get is:

XML Parsing Error: not well-formed
Location:http://www.domain.com/path/to/my/script.php?id=2765
Line Number 77, Column 44:    [refresh_url] = ?
since_id=5126537872q=Indonesia

where Indonesia happens to be the value of $row[topicTitle]

The problem is with the value of $row[topicTitle]  -- doesn't matter
if the term is Indonesia or any other word or phrase (I tried a
bunch) -- I keep getting that XML error

I also tried enclosing it with single quotes, same error

help please?

 --
 Internets. Serious business.


[twitter-dev] blocks/blocking documentation?

2009-10-24 Thread DustyReagan

In the blocks/blocking documentation, it stats that 20 user objects
are returned at a time before you have to page. I tested this and
received 115 in one page. Does anyone know the upper bound of blocks/
blocking object return? Or is it actually limitless?

It feels like the page parameter has no affect on the method. Passing
page=234234 still returns my 115 blocked users just like page=1 does.

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

Any takers?

Dusty


[twitter-dev] Re: Rate Limit: Two accounts on single machine or the limit for the IP of machine with those accounts? - thats the question!

2009-10-24 Thread TjL

If they are authenticated requests, they will count towards the
account whitelist limit, but not the IP limit.

If they are not authenticated, they count towards the IP limit…

TjL


On Sat, Oct 24, 2009 at 2:46 PM, Atul Kulkarni atulskulka...@gmail.com wrote:
 Hi All,

 I have a small question,

 if I run two different scripts authorized with two different accounts
 (whitelisted) from the same machine (IP whitelisted), will the rate limit of
 the machine which i thnk will be reached be counted (given that I am using
 same machine for the both the requests) or the rate limit for the two
 different accounts with authorization be used? I don't want them to fight
 against eachother for rate, hence the question.

 --
 Regards,
 Atul Kulkarni
 www.d.umn.edu/~kulka053



[twitter-dev] Re: Rate Limit: Two accounts on single machine or the limit for the IP of machine with those accounts? - thats the question!

2009-10-24 Thread Atul Kulkarni
Thanks for the reply. It helps reinforce my findings after trials.

On Sat, Oct 24, 2009 at 5:36 PM, TjL luo...@gmail.com wrote:


 If they are authenticated requests, they will count towards the
 account whitelist limit, but not the IP limit.

 If they are not authenticated, they count towards the IP limit…

 TjL


 On Sat, Oct 24, 2009 at 2:46 PM, Atul Kulkarni atulskulka...@gmail.com
 wrote:
  Hi All,
 
  I have a small question,
 
  if I run two different scripts authorized with two different accounts
  (whitelisted) from the same machine (IP whitelisted), will the rate limit
 of
  the machine which i thnk will be reached be counted (given that I am
 using
  same machine for the both the requests) or the rate limit for the two
  different accounts with authorization be used? I don't want them to fight
  against eachother for rate, hence the question.
 
  --
  Regards,
  Atul Kulkarni
  www.d.umn.edu/~kulka053 http://www.d.umn.edu/%7Ekulka053
 




-- 
Regards,
Atul Kulkarni
www.d.umn.edu/~kulka053


[twitter-dev] User ID to Screen Name

2009-10-24 Thread Scott Wilcox

Hi folks,

I don't know whether I'm missing something completely simple here, but  
how do I determine a screen name from a users id?

Scott.


[twitter-dev] Re: XML parsing error when using JSON search.twitter.com/search.json?

2009-10-24 Thread Mark Mcbride
If you're embedding that URL in XML you will need to XML encode it...  
In this specific case the ampersand (q=...) needs to be replaced with  
amp;

Sent from mobile device

On Oct 24, 2009, at 10:19 AM, JDG ghil...@gmail.com wrote:

 You sure that's where the error is? there have been numerous  
 reported problems with PHP's JSON decoder that it doesn't handle the  
 very large numbers of Twitter's IDs well.

 On Sat, Oct 24, 2009 at 11:11, TrixJo tri...@gmail.com wrote:

 Hello

 I am trying to search twitter content using a mySQL/PHP entry in a
 table:

 $contents = file_get_contents(
http://search.twitter.com/search.json?
 lang=enrpp=5q=.urlencode($row[topicTitle]));

 $json = json_decode($contents);

 I am returning the results via AJAX as an XML file

 The problem that I get is:

 XML Parsing Error: not well-formed
 Location: http://www.domain.com/path/to/my/script.php?id=2765
 Line Number 77, Column 44:[refresh_url] = ?
 since_id=5126537872q=Indonesia


 where Indonesia happens to be the value of $row[topicTitle]

 The problem is with the value of $row[topicTitle]  -- doesn't matter
 if the term is Indonesia or any other word or phrase (I tried a
 bunch) -- I keep getting that XML error

 I also tried enclosing it with single quotes, same error

 help please?



 -- 
 Internets. Serious business.


[twitter-dev] Re: Net::Twitter dev release with Lists API support

2009-10-24 Thread Sami

+1 here too, I need to get on the List Beta.


[twitter-dev] Re: User ID to Screen Name

2009-10-24 Thread Damon Clinkscales

On Sat, Oct 24, 2009 at 12:52 PM, Scott Wilcox sc...@tig.gr wrote:

 I don't know whether I'm missing something completely simple here, but
 how do I determine a screen name from a users id?

$ curl -s http://api.twitter.com/1/users/show.xml?user_id=12; | grep
screen_name
  screen_namejack/screen_name

-damon

-- 
http://twitter.com/damon


[twitter-dev] Connection Reset by Peer

2009-10-24 Thread Jesse Stay
I'm seeing constant Connection Reset by Peer errors on one of my servers.
 Is anyone else seeing this?  Have I hit a limit of some sort?  It's been
happening all day long it seems.

Jesse


[twitter-dev] Re: Connection Reset by Peer

2009-10-24 Thread Atul Kulkarni
Are you using Basic Auth? Are you using the same account to tweet and are u
tweeting simultaneously while working? If none of the above then u have
reached ur rate limit. Wait for an hour and try again. Else I don't
understand what could have happened. I had this a few days back and reason
was rate limit.

On Sat, Oct 24, 2009 at 11:16 PM, Jesse Stay jesses...@gmail.com wrote:

 I'm seeing constant Connection Reset by Peer errors on one of my servers.
  Is anyone else seeing this?  Have I hit a limit of some sort?  It's been
 happening all day long it seems.

 Jesse




-- 
Regards,
Atul Kulkarni
www.d.umn.edu/~kulka053


[twitter-dev] Re: Connection Reset by Peer

2009-10-24 Thread Jesse Stay
This is a whitelisted account on a whitelisted IP so I don't see how it
could be a rate-limit.  It's using basic auth - is there an easy way to use
oAuth for whitelisted accounts?  This has worked for the last year or so up
until today.

Jesse

On Sat, Oct 24, 2009 at 10:20 PM, Atul Kulkarni atulskulka...@gmail.comwrote:

 Are you using Basic Auth? Are you using the same account to tweet and are u
 tweeting simultaneously while working? If none of the above then u have
 reached ur rate limit. Wait for an hour and try again. Else I don't
 understand what could have happened. I had this a few days back and reason
 was rate limit.

 On Sat, Oct 24, 2009 at 11:16 PM, Jesse Stay jesses...@gmail.com wrote:

 I'm seeing constant Connection Reset by Peer errors on one of my servers.
  Is anyone else seeing this?  Have I hit a limit of some sort?  It's been
 happening all day long it seems.

 Jesse




 --
 Regards,
 Atul Kulkarni
 www.d.umn.edu/~kulka053