Google Data Contact API

Posted in google, data, contacts at 3:51 a.m. on the 06th of March, 2008.

Google finally comes up with a better way to expose contacts data. No more having to give out my gmail password!

0 comments

Google Calendar Sync

Posted in google, calendar, outlook at 3:49 a.m. on the 06th of March, 2008.

Google Calendar Sync looks interesting, it only allows synchronisation with Microsoft Outlook Calendar at the moment though.

0 comments

Pinging Technorati and Google with Django

Posted in django, technorati, google, blog at 2:37 a.m. on the 06th of March, 2008.

This simple Django snippet demonstrates how to ping Technorati and Google when a blog post has been added or updated.

import xmlrpclib

from django.core import urlresolvers
from django.db.models import signals
from django.dispatch import dispatcher

from django.contrib.sites.models import Site

def send_pings(sender, instance):
    base_url = 'http://%s' % Site.objects.get_current().domain
    blog_url = '%s%s' % (base_url, urlresolvers.reverse('blog-index'))
    entry_url = '%s%s' % (base_url, instance.get_absolute_url())
    # Ping Technorati
    j = xmlrpclib.Server('http://rpc.technorati.com/rpc/ping')
    reply = j.weblogUpdates.ping('Jason Davies', entry_url)
    # Ping Google Blog Search
    j = xmlrpclib.Server('http://blogsearch.google.com/ping/RPC2')
    reply = j.weblogUpdates.ping('Jason Davies', blog_url, entry_url)

dispatcher.connect(send_pings, sender=Entry, signal=signals.post_save)

0 comments

Google's Social Graph API

Posted in google, opensocial, programming at 12:48 a.m. on the 02nd of February, 2008.

Google have made a step in the right direction by providing a new Social Graph API. Time to update my sites to support XFN and FOAF.

See also: URLs are People, Too

0 comments

Style: Normal Dark