Tuesday, July 22, 2008

Twitter Hello-World: that was easy

I'm working on Twitter integration for Tipjoy. It's going to be all about pushing your favorite content out to your friends on twitter, like our FriendFeed integration.

I just finished a 'hello world' integration. Here is the result.

Here is the code:
#!/usr/bin/python
import urllib
import urllib2
import urlparse
username = "tipjoy"
password = "get.your.own"
realm = "Twitter API"
url = 'http://twitter.com/statuses/update.json'
(scheme, netloc, path, params, query, fragment) = urlparse.urlparse(url)
handler = urllib2.HTTPBasicAuthHandler()
handler.add_password(realm, netloc, username, password)
opener = urllib2.build_opener(handler)
text = "hello from python"
data = {'status': text}
encoded_data = urllib.urlencode(dict([(k, unicode(v).encode('utf-8')) for k, v in data.items()]))
url_data = opener.open(url, encoded_data).read()

Thursday, July 17, 2008

Share great stuff worth giving money to

Here's a new way to broadcast things you love online. The stuff you really love enough to leave some money for.

It's now really easy for people to share content they've given money to on Tipjoy.

For example, check out this link: http://tipjoy.com/joy/34010/

Below the content's info, there's now a 'share' section. We've given each piece of content its own link, in this example it's: http://tipjoy.com/7Rk

Put that link in email, IM, Tweet it, and people will get to see the content immediately and have the option to give money to it with our frame on top.

You can also email this link automatically through us using the form on the page.

Saturday, July 5, 2008

Check out Tweetsnap

They made this superbly simple widget:

Tipjoy