FourSquare is using API calls that are currently undocumented, yet seem quite interesting if you're integrating with it. Specifically, Documentation on oking a venue has been left out. Like, dislike and their undo counterparts are documented.
Here are the calls needed to rate a FourSquare venue:
Endpoint: https://developer.foursquare.com/docs/venues/like
Param | Type | Description |
---|---|---|
set |
boolean | 1 to like 0 to undo a like |
Endpoint: https://api.foursquare.com/v2/venues/VENUE_ID/dislike
Param | Type | Description |
---|---|---|
set |
boolean | 1 to dislike 0 to undo a dislike |
Endpoint: https://api.foursquare.com/v2/venues/VENUE_ID/ok?set=1
Param | Type | Description |
---|---|---|
set |
boolean | 1 to ok 0 to undo an ok |
Endpoint: https://api.foursquare.com/v2/tips/TIP_ID/vote
Param | Type | Description |
---|---|---|
vote |
boolean | true to upvote, false to downvote |
Endpoint: https://api.foursquare.com/v2/tips/TIP_ID/removevote