             err =
               error   : "BORED_INSTANCE_ERROR"
               message : "Could not find a bored instance. #{err.message}"
-
             return cb err
 
           url = "#{@_protocol}api2.#{theUrl}/instances/bored"


  calcSignature: (toSign) ->
    return crypto
    .createHmac("sha1", @_authSecret)
    .update(new Buffer(toSign, "utf-8"))
    .digest "hex"

  _appendForm: (req, params, fields) ->
    jsonParams = @_prepareParams params


  _getBoredInstance: (url, customBoredLogic, cb) ->
    if url == null
      url = @_serviceUrl() + "/instances/bored"

    opts =
      url     : url
