在四个方格的帖子请求中有错误

时间:2012-03-26 12:09:52

标签: php foursquare

在四个方块中添加列表时列出/添加?oauth_token = xxxxxxxxxxxxxxxxx& name = key,我收到此错误。

  

**必须提供参数名* *

但我也发送了name参数,请参考上面的url.Please帮助解决这个问题。

1 个答案:

答案 0 :(得分:0)

您的代码中可能存在错误 - 我可以仅使用“name”参数创建一个列表。见下文:

Momo:~ ak$ curl --data name=foobar\&oauth_token=NZYZSJL2IOGPVMCTL1A3A30VVYAZK3PNWNZWJBTRC4MWPRMS\&v=20120411 https://api.foursquare.com/v2/lists/add
{"meta":{"code":200},"notifications":[{"type":"notificationTray","item":{"unreadCount":1}}],"response":{"list":{"id":"4f859d91e4b0be4a120b2fa1","name":"foobar","description":"","type":"created","user":{"id":"606","firstName":"Akshay","lastName":"Patil","photo":"https:\/\/is0.4sqi.net\/userpix_thumbs\/YEOVWGYHWG5S05IP.jpg","gender":"male","homeCity":"New York, NY","bio":"Mayor of your heart","canonicalUrl":"https:\/\/foursquare.com\/ak","relationship":"self"},"editable":true,"public":true,"collaborative":false,"url":"https:\/\/foursquare.com\/ak\/list\/foobar","canonicalUrl":"https:\/\/foursquare.com\/ak\/list\/foobar","createdAt":1334156689,"updatedAt":1334156689,"likes":{"count":0,"groups":[]},"like":false,"comments":{"count":0,"items":[]},"doneCount":0,"visitedCount":0,"venueCount":0,"categories":{"count":0,"items":[]},"following":false,"followers":{"count":0},"collaborators":{"count":0,"items":[]},"listItems":{"count":0,"items":[]}}}}Momo:~ ak$