def get_google_access_token(email):
    # TODO: This should be cacheable
    try:
        me = UserSocialAuth.objects.get(uid=email, provider="google-oauth2")
        return me.extra_data['access_token']
    except (UserSocialAuth.DoesNotExist, __HOLE__):
        raise AccessTokenNotFound
dataset/ETHPy150Open coddingtonbear/django-mailbox/django_mailbox/google_utils.py/get_google_access_token