Partial work integrating Foursquare API

"rake aborted! undefined method `[]' for nil:NilClass" is the current error when I run my foursquare rake task. For awhile the Foursquare API was having issues but I talked to Foursquare API support and that shouldn't be a problem anymore. I'm not going to work on this task anymore.