Adding an Item to a List Using the Foursquare API

Using the Foursquare API, I am trying to add a new location to the list I made. I am currently using the call to this :

https://api.foursquare.com/v2/lists/MY_USER_ID/tips/?venueid=4b3bb64ff964a520627925e3&oauth_token=XXXXXXXXX

Although the placement ID is correct, the output I get is the following:

{

meta: {
    code: 400
    errorType: "param_error"
    errorDetail: "Value 4b3bb64ff964a520627925e3 is invalid for item id"
}
response: { }

}

      

What could be causing this error?

+3


source to share


2 answers


To add a place to an existing list, you need to make a request:

POST https://api.foursquare.com/v2/lists/LIST_ID/additem?venueId=4b3...&oauth_token=XXXX

      



Let me know if this query doesn't work for you

0


source


I faced a similar problem with another API call. The fix for my problem was to include the content content of the HTTP header like this:Content-Type: application/x-www-form-urlencoded



0


source







All Articles