Created
December 13, 2011 19:38
-
-
Save caritos/1473548 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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