我正在使用Foursquare API,我想知道是否有任何方法可以知道何时接受或拒绝一个标志。
当我标记一个场地时,documentation没有说明响应的内容是什么。 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
?
更新
似乎我可以调用此网址来获取给定场地的所有旗帜列表。然后我可以检查我的标志id是否存在,否则意味着标志已被处理。但我不知道国旗被接受或拒绝......
https://api.foursquare.com/v2/venues/4b23dd27f964a5207c5b24e3/flags?v=20120321&locale=en
顺便说一句,如果接受重复,/flags
会返回新地点,而不是重复。使确定更难..
答案 0 :(得分:1)
该标志将通过并被放入队列中以供我们的超级用户进行调节,没有“接受”或“否认”标志 - 该标志的请求可能最终被接受或拒绝。无法通过API查看是否接受或拒绝了某个特定标志,但如果场地最终被更改,您将知道它是否被接受。