Account/activate

跳转到: 导航, 搜索
第1行: 第1行:
{{api_desc2|
+
{{api_desc2_en|
 
uri=account/activate|
 
uri=account/activate|
desc=二次注册微博的接口,该接口为受限接口(只对受邀请的合作伙伴开放)。 |
+
desc=Second round for registering API. This API is only available for selected partner. |
 
format=XML/JSON|
 
format=XML/JSON|
 
httpMethod=POST|
 
httpMethod=POST|
 
needAuth=false|
 
needAuth=false|
 
rateLimit=false|
 
rateLimit=false|
params={{api_args|uid|true|int64|用户ID}}
+
params={{api_args|uid|true|int64|User ID.}}
{{api_args|nickname|true|string|昵称,不超过20个汉字}}
+
{{api_args|nickname|true|string|nick name, limited by 20 Chinese characters.}}
{{api_args|gender|true|string|性别,1 表示男性,2 表示女性。}}
+
{{api_args|gender|true|string|Gender, m means male, f means female. }}
{{api_args|email|true|string|注册邮箱,需要保持与当前网站同域,如:在abc.com下注册的用户需要使用***@abc.com的邮箱。}}
+
{{api_args|email|true|string|email, this email should be same domain of the website. Eg, user from abc.com should use ***@abc.com}}
{{api_args|ip|true|string|注册用户的真实IP}}
+
{{api_args|ip|true|string|real IP of user. }}
{{api_args|province|false|int|省份代码,参考[[省份城市编码表]]}}
+
{{api_args|province|false|int|Province code, see [[Province and city code table]]}}
{{api_args|city|false|int|城市代码,1000表示不指定具体城市。参考[[省份城市编码表]]}}|
+
{{api_args|city|false|int|city code,  1000 means undefined city. see [[Province and city code table]]}}|
 
getParam=|
 
getParam=|
 
postParam="uid=1570185455&nickname=cusdfntss121&gender=1&province=11&email=suhang03@sinas.cn"|
 
postParam="uid=1570185455&nickname=cusdfntss121&gender=1&province=11&email=suhang03@sinas.cn"|
 
result=
 
result=
===XML示例===
+
===XML Example===
 
<pre>
 
<pre>
 
<?xml version="1.0" encoding="UTF-8"?>
 
<?xml version="1.0" encoding="UTF-8"?>
 
<uid>1719316790</uid>
 
<uid>1719316790</uid>
 
</pre>
 
</pre>
===JSON示例===
+
===JSON Example===
 
<pre>
 
<pre>
 
{
 
{
第27行: 第27行:
 
}
 
}
 
</pre>|
 
</pre>|
useAge=|
+
useAge=None|
otherInfo=
+
otherInfo=None
 
}}
 
}}

2011年1月21日 (五) 14:27的版本

目录

account/activate

Second round for registering API. This API is only available for selected partner.

URL

http://api.t.sina.com.cn/account/activate.(json%7Cxml)

Supported Formats

XML/JSON

HTTP Request Method

POST

Requires Authentication

false
See the Authorization Mechanism Statement for authorization details

Requests Count Limitation

false
See the Interface Access Rights Statement for the Request Count Limitaiton details.

Request Parameters

  Requires Type and Range Description
source true string AppKey for the application to identify it. ( This parameter is not needed when using OAuth)
uid true int64 User ID.
nickname true string nick name, limited by 20 Chinese characters.
gender true string Gender, m means male, f means female.
email true string email, this email should be same domain of the website. Eg, user from abc.com should use ***@abc.com
ip true string real IP of user.
province false int Province code, see Province and city code table
city false int city code, 1000 means undefined city. see Province and city code table

Notes

None

Example Request

XML
curl -u "username:password" "uid=1570185455&nickname=cusdfntss121&gender=1&province=11&email=suhang03@sinas.cn" "http://api.t.sina.com.cn/account/activate.xml?source=appkey"
JSON
curl -u "username:password" "uid=1570185455&nickname=cusdfntss121&gender=1&province=11&email=suhang03@sinas.cn" "http://api.t.sina.com.cn/account/activate.json?source=appkey"

Response

XML Example

<?xml version="1.0" encoding="UTF-8"?>
<uid>1719316790</uid>

JSON Example

{
   "uid":1719316790
}

Others

None