         callback(error, null)
 
   request: (path, callback) ->
+    request ?= require 'request'
     request "#{@baseURL}#{path}", (err, res, body) =>
       try
         data = JSON.parse(body)

      writeStream.on 'finish', -> callback(null, imagePath)
      writeStream.on 'error', (error) -> callback(error)

      readStream = request("https://github.com/#{login}.png")
      readStream.on 'error', (error) -> callback(error)
      readStream.pipe(writeStream)

fs = require 'fs-plus'
path = require 'path'

glob = null    # defer until used
request = null # defer until used

module.exports =
class AtomIoClient
