0
我正在玩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
一式两份的情况下,返回新的场地被接受,而不是重复。使其难以确定..
这就是我害怕..我必须*猜*如果国旗已被处理。我想这是4sweep背后的人为处理他们的国旗系统所做的事情(有回应,甚至是替代解决方案等等),对吧? – j0k