0
有什么办法检查用户名可用性为tumblr?我想检查用户名是否可用于在tumblr上注册。如何以编程方式检查Tumblr用户名可用性?
我试着检查像username.tumblr.com这样的网址的HTTP响应,但是返回404的网址仍然无法注册。任何想法? 谢谢!
有什么办法检查用户名可用性为tumblr?我想检查用户名是否可用于在tumblr上注册。如何以编程方式检查Tumblr用户名可用性?
我试着检查像username.tumblr.com这样的网址的HTTP响应,但是返回404的网址仍然无法注册。任何想法? 谢谢!
这是我得到的最接近:
curl 'https://www.tumblr.com/svc/account/register' --data 'user%5Bemail%[email protected]&tumblelog%5Bname%5D=USERNAMETOCHECK&form_key=!1231473848212%7CKpTkShMIsrNRL3V1GPCfNlpw6V8&action=signup_account'
但是:
form_key
参数可能会在一段时间后过期;你应该能够解析从https://www.tumblr.com/
得到一个新的。注:
[email protected]
只是我能想到的最短的未使用电子邮件地址。的回应将是这样的:
{
"redirect": false,
"redirect_method": "GET",
"errors": [
"Someone beat you to that username.",
"You forgot to enter your password!"
],
"signup_success": false,
"next_view": false,
"usernames": [
"..."
]
}
如果Someone beat you to that username.
出现在错误,那么用户名取。
你的替代方案是用many services and APIs,可能做同样的事情之一。