accesscode = request.GET.get('code')
redirect_uri = 'http://www.example.com'
url = 'https://www.linkedin.com/uas/oauth2/accessToken'
postdata = {'grant_type': 'authorization_code', 'code': accesscode,
    'redirect_uri': redirect_uri, 'client_id': consumer_key,
    'client_secret': consumer_secret}
Performing POST on a URL string in Django