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


having error in post request in four square

lists/add?oauth_token=xxxxxxxxxxxxxxxxx&name=key在四格中添加列表时,我收到了这个错误。

**必须提供参数名称**

但是name参数我也在发送,请参考上面的url。请帮助解决此问题。

您的代码中可能有错误——我可以只使用"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$