def METHOD_NAME(self, response):
    """Return user details from Weixin. API URL is:
    https://api.weixin.qq.com/sns/userinfo
    """
    if self.setting("DOMAIN_AS_USERNAME"):
        username = response.get("domain", "")
    else:
        username = response.get("nickname", "")
    return {
        "username": username,
        "profile_image_url": response.get("headimgurl", ""),
    }