A command-line interface to MINDBODY Online, a website I use to reserve spots in gym classes.
Install Go. Install mercurial. Then run:
mkdir /tmp/mbotmp
export GOPATH=/tmp/mbotmp
go get github.com/rgarcia/mbo
sudo cp $GOPATH/bin/mbo /usr/local/bin/
Make sure /usr/local/bin
is in your PATH.
$ mbo -h
Usage of mbo:
Commands:
login Start a session with MBO
logout End session with MBO
ls List classes
register Register for a class
schedule Show your schedule
cancel Cancel a visit
Pass -h
to any subcommand for more information.
The script cron.sh
contains an example script that will automatically check for a class at a certain time and register for it.