   @BASE_URL = 'http://f.hatena.ne.jp'
 
   # constructor
-  # options:
-  # - type     : always 'wsse'. authentication type. (optional)
-  # - username : wsse authentication username. (required)
-  # - apikey   : wsse authentication apikey. (required)
+  # params:
+  #   options: (required)
+  #   - type     : authentication type. default `'wsse'`
+  #   - username : wsse authentication username. (required)
+  #   - apikey   : wsse authentication apikey. (required)
   constructor: ({ type, username, apikey }) ->
     @_type = type ? 'wsse'
     @_username = username

    @_wsse = wsse()

  # POST PostURI (/atom/post)
  # options:
  # - file     : 'content'. image file path. (required)
  # - title    : 'title'. image title. default `''`. (optional)
  # - type     : 'type'. content-type. default `mime.lookup(file)`. (optional)
  # - folder   : 'dc:subject'. folder name. default `undefined`. (optional)
  # - generator: 'generator'. tool name. default `undefined`. (optional)
  # callback:
  # - err: error
  # - res: response
  create: ({ file, title, type, folder, generator }, callback) ->
    return callback(new Error('options.file is required')) unless file?
    title = title ? ''

    @_request { method, path }, callback

  # GET FeedURI (/atom/feed)
  # params:
  #   options:
  #   callback:
  #   - err: error
  #   - res: response
  # returns:
  #   Promise
  index: (options, callback) ->
    callback = options unless callback?
    method = 'get'
