Skip to content

Instantly share code, notes, and snippets.

@myles
Created March 21, 2010 19:00
Show Gist options
  • Save myles/339494 to your computer and use it in GitHub Desktop.
Save myles/339494 to your computer and use it in GitHub Desktop.
A simple shell script to check into a venue in Foursquare.
#!/bin/sh
#
# A simple shell script to check into a venue in Foursquare.
CURL=`which curl`
FOURSQUARE_API="http://api.foursquare.com/v1/checkin"
if test -z "$CURL"; then
echo "curl binary not found"
exit 1
fi
USERNAME=$1
VENUE_ID=$2
$CURL -X POST -u $USERNAME $FOURSQUARE_API --data "vid=$VENUE_ID"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment