hi Michele,

thanx for ur time to help me..  but it doesnt work.. :(

my code (a part from default.py ) :

from rauth import OAuth1Service
    twitter = OAuth1Service(
            name='twitter',
            consumer_key='sgpDtqbVKlYeV8zXmaAd6A',
            consumer_secret='xMqlrwCcOsQoUlOwdsxDId80BetRE3oP1D6qdWING7A',
            request_token_url='https://api.twitter.com/oauth/request_token',
            access_token_url='https://api.twitter.com/oauth/access_token',
            authorize_url='https://api.twitter.com/oauth/authorize',
            base_url='https://api.twitter.com/1/')

    request_token, request_token_secret = twitter.get_request_token()
    authorize_url = twitter.get_authorize_url(request_token)
# redirect the url and get back
    session = twitter.get_auth_session(equest_token,
                                   request_token_secret,
                                   method='POST',
                                   data={'oauth_verifier': oauth_verifier})

    params = {}
    k = session.get('account/verify_credentials.json', params = params)

    name = k.json()[u'name']
    t_id = k.json()[u'id']
    pic = k.json()[u'profile_image_url']

    pic = XML(resim)

    if db.auth_user.update_or_insert(t_id = t_id):
        print "New!"


here is my code.. and i mean if db.auth_user.update_or_insert(t_id = t_id): 
it should be login with name..
pls look at the web site: http://www.plovist.com/pins/    there is a button 
for twitter and u r going to login.. thats all.. 

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to