twitter

What benefits does creating an API give to your service?

If I was a webservice, such as Twitter, how does creating an API for people to access my data help me? I can see that they are extending your service to areas that you might not have the resources to expand to (in a way extending your own service), but is it worth all of the bandwidth and infrastructure costs associated with giving acces...

Best Twitter PHP Library

Can anyone suggest which of the following Twitter PHP libraries is the best? My Twitter by Andres Scheffer. Twitter by Felix Oghina. TwitterLibPHP by Justin Poliey. Arc90_Service_Twitter by Matt Williams. PHP Twitter by Aaron Brazell, original code from David Billingham. PEAR Services_Twitter by Joe Stump and David Jean Louis. P...

Can I suppress the browser’s login prompt on 401 response when using XmlHttpRequest with Twitter

I'm using jQuery's ajax methods to interact with the Twitter REST API. Their API is a bit annoying, in that some actions will return a 401 HTTP status code. In that case, I just want it to fail, instead of displaying a login box. I've tried just providing an incorrect user:pass pair in the URL, in case that might suppress the dialog a...

Best way to poll a web service (eg, for a twitter app)

Hi, I need to poll a web service, in this case twitter's API, and I'm wondering what the conventional wisdom is on this topic. I'm not sure whether this is important, but I've always found feedback useful in the past. A couple scenarios I've come up with: The querying process starts every X seconds, eg a cron job runs a python script...

What is the practical difference between xml, json, rss and atom when interfacing with Twitter?

I'm new to web services and as an introduction I'm playing around with the Twitter API using the Twisted framework in python. I've read up on the different formats they offer, but it's still not clear to me which one I should use in my fairly simple project. Specifically the practical difference between using JSON or XML is something I'd...

Twitter/PayPal Framework for PHP

Is there any framework that would allow me to integrate paypal with twitter, such as to send a tweet once payment for an item has been recieved. I'll be programming this with PHP. Thanks. ...

Twitter-like login system (passing parameters in URL?)

How do you pass parameters in a URL? I'm trying to design a login system similar to Twitter's. Notice how you can either login to the main page of www.twitter.com or you can go directly to customised pages such as www.twitter.com/lancearmstrong and www.twitter.com/rails . That's exactly what I need for my project. Thanks. ...

css inheritance

I've just added the Twitter script to my website, and cannot, despite inexpertly consulting firebug, determine how to alter the css to make the feed appear uniform with the other text on my page. The page in question is http://willworth.co.uk/latest.htm Any help would be greatly appreciated Thank you in advance. As I improve, I wi...

TeamCity Twitter Notifier?

Has anyone built something to send out your TeamCity build status with Twitter? Can this be done with TeamCity's Jabber support? ...

how could I combine these regex rules?

I'm detecting @replies in a Twitter stream with the following PHP code using regexes. $text = preg_replace('!^@([A-Za-z0-9_]+)!', '<a href="http://twitter.com/$1" target="_blank">@$1</a>', $text); $text = preg_replace('! @([A-Za-z0-9_]+)!', ' <a href="http://twitter.com/$1" target="_blank">@$1</a>', $text); How can I best combine thes...

MGTwitterEngine - Status updates

I find that randomly I get a EXC_BAD_ACCESS error on the iPhone when updating the status. This occurs pretty randomly. Anyone have any idea to how this make be fixed? #import "TwitterViewController.h" NSString *_testUID = nil; NSString *sImageName; @implementation TwitterViewController //Turns NSLogs into comments //#define NSLog //...

problem with twitter api friends_timeline

i can get my user_timeline fine: curl -u user:pwd http://www.twitter.com/statuses/user_timeline/user.json {blob of tweets} but when i try to get the friends_timeline, i get an auth error: curl -u user:pwd http://www.twitter.com/statuses/friends_timeline.json {"request":"\/statuses\/friends_timeline.json", "error":"Could not authen...

Is it possible to build a Java web application without using a framework?

If not what is a good friendly java framework for newcomers? I want to build something like twitter. ...

Python code to find if x is following y on twitter. More Pythonic way please

I wrote a twitter application in Python. Following is the code I used for a module where I find if x is following y. This code can be obviously improved upon. A pythonic way to do that? import urllib2 import sys import re import base64 from urlparse import urlparse import simplejson def is_follows(follower, following): theurl = 'h...

How do I authenticate for Twitter friends_timeline?

This is my first web API project, so I hope the solution to this isn't blindingly obvious. // Contstruct the http request NSString *urlString = [NSString stringWithFormat:@"http://%@:%@@twitter.com/statuses/user_timeline/%@.xml?count=5", username, password, friend]; NSURL *url = [NSURL URLWithString:urlString]; NSURLRequest *urlRequest...

Count number of results for a particular word on Twitter

To further a personal project of mine, I have been pondering how to count the number of results for a user specified word on Twitter. I have used their API extensively, but have not been able to come up with an efficient or even halfway practical way to count the occurrences of a particular word. The actual results are not critical, ju...

Filter out @replies in a Twitter feed?

I have a feed from my Twitter profile on the top of my site but I wondered if there is a way to filter out my @replies and only show my status updates? Thanks ...

Only show X rows from DataGrid

Hi, I want to post my 5 recent twitters on my website. I've build a datagrid with XMLTextReader in C# which reads the feed but the problem I face is that it shows ALL the feeds and I can't find a way to only show 5. Any idea's? XmlTextReader reader = new XmlTextReader("http://some.rss/feed.rss"); DataSet ds = new DataSet...

How to get *new* followers using the twitter API

I need to periodically return a list of all new followers of a twitter account (i.e. since the last time the list of followers was retrieved), but the Twitter API only seems to provide functionality for getting a list of all current followers of the account. Apart from getting this full list every time and comparing it against a stored ...

twitter bot with api

im writing a bot that replies to a user message instantly. from what i've read their api only allows checking updates every minute or so. it's there a push feature or a 3rd party service that pushes the new message to my server right away? i've seen bots that can do this. ...