Account/activate
第1行: | 第1行: | ||
− | {{ | + | {{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| | + | params={{api_args|uid|true|int64|User ID.}} |
− | {{api_args|nickname|true|string| | + | {{api_args|nickname|true|string|nick name, limited by 20 Chinese characters.}} |
− | {{api_args|gender|true|string| | + | {{api_args|gender|true|string|Gender, m means male, f means female. }} |
− | {{api_args|email|true|string| | + | {{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| | + | {{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| | + | {{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 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 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. |
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