Skip to content

Instantly share code, notes, and snippets.

@caritos
Created December 13, 2011 19:38
Show Gist options
  • Save caritos/1473548 to your computer and use it in GitHub Desktop.
Save caritos/1473548 to your computer and use it in GitHub Desktop.
import json
import urllib2
import simplejson
import logging
from django.shortcuts import render
from django.http import HttpResponse
def home(request):
result = simplejson.load(urllib2.urlopen('http://devtest3.spling.com/api/1/find_friends/facebook'))
logging.warning(result)
return render(request, 'invite/index.html', {'friends':result})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment