Account/activate/en
目录 |
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
文档更新时间: 2011-01-21