2012-03-26 2 views
1

목록/추가? oauth_token = xxxxxxxxxxxxxxxxx & 이름 = 키 네 개의 사각형에 목록을 추가하는 동안이 오류가 발생합니다. 네 개의 사각형에서 게시물 요청에 오류가있는 경우

**

는 매개 변수 이름을 제공해야합니다 * *

하지만 이름 매개 변수도 내가 보내고,이 문제를 해결할 수 있도록 위의 url.Please를 참조하십시오.

+0

어떻게 이름, 토큰 등을 검색 할 수 있습니까? – Sara

답변

0

코드에 오류가 있습니다. "이름"매개 변수 만 사용하여 목록을 만들 수 있습니다. 아래를 참조하십시오 :

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$ 
관련 문제