[twitter-dev] Obtaining a complete user feed

2009-05-27 Thread Matthias Bauer

Hello Twitter Team,

I was wondering whether there is a way, currently or planned, to obtain 
the complete twitterstream of one or multiple given users for data 
mining and backup purposes. It would be sufficient for me if I could 
request the data and would then, some time later, be notified that the 
data is available for download, it need not be live.

Is there anything like this?

-Matt


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

2009-05-18 Thread Matthias Bauer

On 2009-05-17 11:17, RTuosto wrote:
 I'm trying to use the destroy friendships API method but I'm running
 into a problem.

 $login = login:  .$_POST['authid'] . : . $_POST['authpassword'];

This should be $login = $_POST['authid'] . : . $_POST['authpassword'];

-Matt


[twitter-dev] Allow ?count= parameter for favorites functions

2009-04-30 Thread Matthias Bauer

We're trying to gather meaningful statistics about Twitter favorites, 
which means we have to crawl a high number of profiles and, worse, a 
high number of people's favorites' pages. The latter also has to be done 
regularly to update the statistics.

Currently, the /favorites method only always returns 20 favorites per 
page. It would be useful for our app, and I assume for other apps as 
well, if the /favorites method also accepted the ?count parameter.

 From our preliminary testing, few users give more than 150 favs per 
month, so the max count of 200 should be sufficient to cut down our API 
usage five- to sixfold.

Please star issue 539 if you support this:

http://code.google.com/p/twitter-api/issues/detail?id=539

Regards,

Matt


[twitter-dev] Re: Profile Images with no file extension

2009-03-24 Thread Matthias Bauer

On 23.03.2009 15:17, Shannon Whitley wrote:
 I just discovered that there are profile images with no file
 extension.  This is an example:

 http://s3.amazonaws.com/twitter_production/profile_images/70479542/eliteblogger_logo


 Is this something that we should expect?  I have been using the
 extension to determine the content-type.

Why don't you use the Content-type to determine the content-type?

S3 correctly sends a Content-type: image/png header.

-Matt


Re: Putting a ceiling on requests from users and IPs on the whitelist

2009-01-22 Thread Matthias Bauer

iematthew wrote:
 Perhaps a leaner version for requesting a user's followers and friends
 would help? Say, a method that only returns the ID and screen name for
 the user's followers or friends, but in lots of a thousand or ten
 thousand at a time.

Yes, please!

-Matt


Re: Racking my brain to figure out how to use users/show

2009-01-05 Thread Matthias Bauer

Pete Wingard wrote:
 I have this cURL 
 
function get_tweets(){
// create a new cURL resource
$ch = curl_init();
 $user = netlatch;
$pass = ;
// set URL and other appropriate options
// $user:$pass http://twitter.com/statuses/replies.json
curl_setopt($ch, CURLOPT_USERPWD, $user.:.$pass);
curl_setopt($ch, CURLOPT_URL, 
 http://twitter.com/users/show/netlatch.json;);
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,2);
 
// grab URL and pass it to the browser
$input = curl_exec($ch);
$val = json_decode($input);
$output = $val-{text};
// close cURL resource, and free up system resources
curl_close($ch);
return $output;
 }
 $array=get_tweets();
 
 but I get nothing in the $array. It dumps the content on the page 
 though. If I use this w/o a username and password I get an error of too 
 many requests. What am I doing wrong? 

You need to set

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

or $input will contain the curl result code, not the page contents.


-Matt


Re: Why isn't this code snippet working

2008-12-25 Thread Matthias Bauer

hubs wrote:
 This is the error code I'm getting:
 
 Warning: simplexml_load_file(http://twitter.com/statuses/followers/
 hubs.xml) [function.simplexml-load-file]: failed to open stream: HTTP
 request failed! HTTP/1.1 401 Unauthorized in /home/.jerrie/hubs/
 artifacting.com/blog/wp-content/plugins/runPHP/runPHP.php(383) : eval
 ()'d code on line 16
 
 Warning: simplexml_load_file() [function.simplexml-load-file]: I/O
 warning : failed to load external entity http://twitter.com/statuses/
 followers/hubs.xml in /home/.jerrie/hubs/artifacting.com/blog/wp-
 content/plugins/runPHP/runPHP.php(383) : eval()'d code on line 16
 
 
 I'm running the code within a wordpress enty.
 Thanks.

As I said before, use simplexml_load_string($buffer) instead of trying 
to fetch the resource using url wrappers. With the code you posted, 
you're making a cURL call, then throw away the data, then fetch it again 
- wrongly.

-Matt


Re: Could you please increase # followers returned to 1000 say?

2008-11-24 Thread Matthias Bauer

Or, what I've been secretly wishing for since months, give us other
output formats. For example, for most of what I do, all I need is for
this user, give me all followers' user id and nickname. Or even only
the user id. I can cache the user profile data locally, I don't need
so much stuff in the API data. Instead, give me 1000 follower IDs per
page.

Would twitter consider doing something like that?

On Sat, Nov 22, 2008 at 04:02, Amir Michail [EMAIL PROTECTED] wrote:

 Hi,

 Or if not, please give us some control over which 100 followers are
 returned.

 Amir