Rules lookup
GET
/2/tweets/search/stream/rulesReturns rules from a user's active rule set. Users can fetch all of their rules or a subset, specified by the provided rule ids.
请求参数
Query 参数
ids
可选
A comma-separated list of Rule IDs.
示例代码
返回响应
The request was successful(200)
500(500)
The request was successful
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
data
array[object (Rule) {3}]
必需
id
string
可选
Unique identifier of this rule.
示例值:
120897978112909812
正则匹配:
^[0-9]{1,19}$
tag
string
可选
A tag meant for the labeling of user provided rules.
示例值:
Non-retweeted coffee tweets
value
string
必需
The filterlang value of the rule.
示例值:
coffee -is:retweet
meta
object (RulesResponseMetadata)
必需
sent
string
必需
summary
RulesRequestSummary
示例
{
"data": [
{
"id": "120897978112909812",
"tag": "Non-retweeted coffee tweets",
"value": "coffee -is:retweet"
}
],
"meta": {
"sent": "string",
"summary": {
"created": 1,
"invalid": 1,
"not_created": 1,
"valid": 1
}
}
}
最后修改时间: 4 年前