[twitter-dev] Can't get followers ids from users with lots of followers

2010-04-22 Thread RTuosto
I get a twitter over capacity when I do something like this:

http://api.twitter.com/1/followers/ids.xml?screen_name=britneyspears


But if I do it with my own account which only has a few followers it
works as normal.

How do I avoid this error?


-- 
Subscription settings: 
http://groups.google.com/group/twitter-development-talk/subscribe?hl=en


[twitter-dev] Error in Creating Friendships

2009-10-21 Thread RTuosto

I am having a problem using the create friendship method in the API.
No idea why this is happening and its only been going on the past few
days.

Below is the code returned by twitter.  Please help!

* Server auth using Basic with user 'FamousGroup1'
 POST /friendships/create.xml?user_id=57929642 HTTP/1.1
Authorization: Basic RmFtb3VzR3JvdXAxOmludGVybmV0Mw==
Host: twitter.com
Accept: */*
Content-Length: 0
Content-Type: application/x-www-form-urlencoded

 HTTP/1.1 403 Forbidden
 Date: Wed, 14 Oct 2009 02:48:03 GMT
 Server: hi
 X-Transaction: 1255488486-30308-24158
 Status: 403 Forbidden
 Last-Modified: Wed, 14 Oct 2009 02:48:06 GMT
 Content-Type: application/xml; charset=utf-8
 Pragma: no-cache
 Content-Length: 311
 Cache-Control: no-cache, no-store, must-revalidate, pre-check=0,
post-check=0
 Expires: Tue, 31 Mar 1981 05:00:00 GMT
 X-Revision: 8e98ae8624f9fc2586caf89fd09fb6a9ca56aada
 Set-Cookie: lang=en; path=/
 Set-Cookie: lang=en; path=/


[twitter-dev] Re: Error in Creating Friendships

2009-10-21 Thread RTuosto

anybody else getting this problem?

On Oct 21, 10:47 am, RTuosto ryantuo...@gmail.com wrote:
 I am having a problem using the create friendship method in the API.
 No idea why this is happening and its only been going on the past few
 days.

 Below is the code returned by twitter.  Please help!

 * Server auth using Basic with user 'FamousGroup1' POST 
 /friendships/create.xml?user_id=57929642 HTTP/1.1

 Authorization: Basic RmFtb3VzR3JvdXAxOmludGVybmV0Mw==
 Host: twitter.com
 Accept: */*
 Content-Length: 0
 Content-Type: application/x-www-form-urlencoded

  HTTP/1.1 403 Forbidden
  Date: Wed, 14 Oct 2009 02:48:03 GMT
  Server: hi
  X-Transaction: 1255488486-30308-24158
  Status: 403 Forbidden
  Last-Modified: Wed, 14 Oct 2009 02:48:06 GMT
  Content-Type: application/xml; charset=utf-8
  Pragma: no-cache
  Content-Length: 311
  Cache-Control: no-cache, no-store, must-revalidate, pre-check=0,
 post-check=0
  Expires: Tue, 31 Mar 1981 05:00:00 GMT
  X-Revision: 8e98ae8624f9fc2586caf89fd09fb6a9ca56aada
  Set-Cookie: lang=en; path=/
  Set-Cookie: lang=en; path=/


[twitter-dev] HTTP Server Error 503 No available server to handle this request

2009-10-12 Thread RTuosto

I'm getting this error when looking at http://www.twitter.com as well
as user pages.  Whats the issue?



[twitter-dev] XML errors when getting a list of user's followers (PHP/CURL)

2009-05-20 Thread RTuosto

I'm getting the following 3 errors:

Warning: simplexml_load_string() [function.simplexml-load-string]:
Entity: line 62: parser error : Entity 'copy' not defined in C:\wamp
\www\TTT1\includes\twitter.functions.php on line 96

Warning: simplexml_load_string() [function.simplexml-load-string]: li
class=firstcopy; 2009 Twitter/li in C:\wamp\www\TTT1\includes
\twitter.functions.php on line 96

Warning: simplexml_load_string() [function.simplexml-load-string]: ^
in C:\wamp\www\TTT1\includes\twitter.functions.php on line 96

Here's my code:

Function getFollowers($id, $login) {
$url = http://twitter.com/followers/ids.xml?user_id=; . $id;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_USERPWD, $login);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
curl_close($ch);
$xml = simplexml_load_string($result);// Line 96
$followers = array();
Foreach ($xml-id as $id) {
array_push($followers, $id);
}
return $followers;
}

Is this a problem on my end or is the xml document not loading
properly?  It seems to load fine in my browser, and sometimes it
works.  I'm even doing a rate-limit verification before calling this
function to make sure the user can do it.

What to do?


[twitter-dev] How would I automatically DM to a person once theyve followed me?

2009-05-18 Thread RTuosto

Trying to automate this feature.

Something like how TweetLater has where when a user follows me it
automatically sends them a direct message to welcome them as my friend.


[twitter-dev] Cannot authenticate on Friendships/Destroy method

2009-05-17 Thread RTuosto

I'm trying to use the destroy friendships API method but I'm running
into a problem.

$login = login:  .$_POST['authid'] . : . $_POST['authpassword'];
$url2 = http://twitter.com/friendships/destroy/; . $id . .xml;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url2);
curl_setopt($ch, CURLOPT_USERPWD, $login);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result2 = curl_exec($ch);
curl_close($ch);
$xml = simplexml_load_string($result2);
var_dump($xml);

var_dump($xml) returns:
object(SimpleXMLElement)#4 (2) { [request]=  string(33) /
friendships/destroy/40627723.xml [error]=  string(27) Could not
authenticate you. }

I only get this error on this method, I've been able to add friends,
and check statuses etc using the other API calls.

Whats going on?