Account/register/en

跳转到: 导航, 搜索

目录

account/register

API for registering Sina Weibo. This API is only available for limited partner.

URL

http://api.t.sina.com.cn/account/register.(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)
nick true string name. limited by 20 Chinese characters.
gender true string gender. m means male, f means female.
password true string password
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" -d "email=zlxx@163.com&nick=abc&password=123456&gender=m&province=11&city=12&ip=61.4.1.2" "http://api.t.sina.com.cn/account/register.xml?source=appkey"
JSON
curl -u "username:password" -d "email=zlxx@163.com&nick=abc&password=123456&gender=m&province=11&city=12&ip=61.4.1.2" "http://api.t.sina.com.cn/account/register.json?source=appkey"

Response

XML Example

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

JSON Example

{
   "uid":1719316790
}

Others

None