add curl_helper, refactor api.user