Posted on Leave a comment

Tasker foursquare checkin task

So I was trying to incorporate the new v parameter necessary for a foursquare checking using Tasker. Using https://kristianfreeman.com/automatic-checkins-with-tasker/ I was able to initially get it working but at some point it quit working. Adding the additional parameter with an ampersand was not working. Turns out that the proper format of the data/file field is this:

venueId=%par1

oauth_token=YOUR_TOKEN_HERE

v=20131202

 

Note: a good way to see the actual response you get back from foursquare is to simulate a post with:

 

<html xmlns=”http://www.w3.org/1999/xhtml”>
<head><title>Test Post with FourSquareAPI</title>
<script language=”javascript” type=”text/javascript”>
</script>
</head>
<body>
<form id=”TestForm” action=”https://api.foursquare.com/v2/checkins/add” method=”post”>
vennueId: <input type=”Text” name=”venueId”<br/>
oauth_token: <input type=”Text” name=”oauth_token”<br/>
v:<input type=”Text” name=”v”<br/><br/>
<input type=”submit” value=”post” />
</form>
</body>
</html>