Hi,
  I'm trying to implement the feature that show the 'tweets' of my
twitter account in the index page of my blog(hosted in GAE) based in
the code of admin controller, but it don't run !. In my tests it can't
connect with twitter. It's a bug/bad implementation of my controller
or the GAE don't accepts this feature ?

My code in default controller:

def get_tweets():
        from gluon.tools import fetch
        import gluon.contrib.simplejson as sj
        page = fetch('http://twitter.com/myaccount?format=json')
        return sj.loads(page)['#timeline']

My Page:
<ul class="twittadas">
<li>
<div id="tweets">{{=T('loading...')}}</div>
<script>
jQuery(document).ready(function(){jQuery('#tweets').load('{{=URL
(r=request,f='get_tweets')}}')});
</script>
</div>
</li>
</ul>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to