如何使用foursquare api在foursquare上添加新的特价商品

Posted

技术标签:

【中文标题】如何使用foursquare api在foursquare上添加新的特价商品【英文标题】:how to add new special on foursquare using foursquare api 【发布时间】:2012-10-19 11:03:13 【问题描述】:

我正在尝试添加新的特殊使用 https://api.foursquare.com/v2/specials/add 但它总是响应错误的请求。 这就是回应

错误域=com.labratrevenge.HTTPRiot.ErrorDomain Code=403 "forbidden" UserInfo=0x797dc90 NSLocalizedFailureReason=403 错误: , NSLocalizedDescription=forbidden, headers=type = immutable dict, count = 10, 条目 => 0:不区分大小写键:Access-Control-Allow-Origin = contents = "*" 2:不区分大小写键:Expires = contents = "Fri, 19 Oct 2012 10:58:12 GMT" 4:不区分大小写键:Content-Type = contents = "application/json; charset=utf-8" 5:不区分大小写键:Server = contents = "nginx/1.2.1" 6:不区分大小写键:Content-Length = contents = "125" 7:不区分大小写键:Connection = contents = "keep-alive" 8:不区分大小写键:Date = contents = "Fri, 19 Oct 2012 10:58:12 GMT" 9:不区分大小写键:Cache-Control = contents = "no-cache, private, no-store" 10:不区分大小写键:Content-Encoding = contents = "gzip" 11:不区分大小写键:Pragma = contents = "no-cache"

【问题讨论】:

【参考方案1】:

您似乎遇到了 403 Forbidden 错误,这意味着您无权添加特价商品。您只能将特价商品添加到您担任经理的场所。

【讨论】:

以上是关于如何使用foursquare api在foursquare上添加新的特价商品的主要内容,如果未能解决你的问题,请参考以下文章

如何在Web API中使用C#获取Foursquare OAuth请求代码?

如何对foursquare场所/搜索api返回的结果进行分页?

地理本地 google Maps API 业务结果foursquare 喜欢 iphone

使用 Python 代码从 Foursquare API 中提取特定场地类别

在 Foursquare 的 Lists API 上使用 RKDynamicMapping 来捕获列表

foursquare API的IP地址范围是多少? [关闭]