我正在使用 Foursquare API,我想知道是否有任何方法可以知道何时接受或拒绝标志。
当我标记场地时,文档没有说明响应的内容是什么。是空的Response fields
。。
标记时,响应如下所示:
{
"meta": {...},
"notifications": [...],
"response": {
"id": "4b82fd8ef964a52049f130e3",
"name": "times square",
"contact": {},
"location": {
"lat": 43.642197,
"lng": 6.979622,
"cc": "FR",
"city": "New york",
"state": "New york",
"country": "France"
},
"canonicalUrl": "https://foursquare.com/v/times-square-new-york/4b82fd8ef964a52049f130e3",
"canonicalPath": "/v/times-square-new-york/4b82fd8ef964a52049f130e3",
"categories": [],
"verified": false,
"stats": {...},
"creator": {...},
"flags": {
"count": 1,
"items": [
{
"id": "5272152d11d25a4be68777a1",
"type": "remove",
"comments": [],
"reporters": [
{...}
],
"resolvedTime": "Thu Oct 31 09:20:17 UTC 2013",
"resolvedUsers": [],
"value": {
"reason": "doesnt_exist"
}
}
]
}
}
}
我是否需要重新调用相同的查询(就像我标记场地时一样)并且响应将包含一些内容来告诉标记是被接受还是被拒绝?喜欢在resolvedUsers
?
更新:
看来我可以调用这个 url 来获取给定场地的所有标志的列表。然后我可以检查我的标志 id 是否存在,否则意味着标志已被处理。但我不知道国旗是被接受还是被拒绝......
https://api.foursquare.com/v2/venues/4b23dd27f964a5207c5b24e3/flags?v=20120321&locale=en
顺便说一句,/flags
如果接受重复,则返回新场地,而不是重复。更难确定..