Trends/follow/en
目录 |
trends/follow
Follow a topic
URL
http://api.t.sina.com.cn/trends/follow.(json%7Cxml)
Supported Formats
XML/JSON
HTTP Request Method
POST
Requires Authentication
true
See the Authorization Mechanism Statement for authorization details
Requests Count Limitation
true
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) |
trend_name | true | string | Topic name |
Notes
- It returns 400 error "40028: 40028:你已经添加了此话题" if the topic is already followed
Example Request
- XML
- curl -u "username:password" -d "trend_name=JAVA" "http://api.t.sina.com.cn/trends/follow.xml?source=appkey"
- JSON
- curl -u "username:password" -d "trend_name=JAVA" "http://api.t.sina.com.cn/trends/follow.json?source=appkey"
Response
XML Example
<?xml version="1.0" encoding="UTF-8"?> <topicid>1568186</topicid>
JSON示例
{ "topicid" : "1568197" }
Others
None