var utils = require('../utils/httpUtils.js');
var _ = require('underscore');
var constants = require('../utils/constants.js');

exports.create = function(options) {
  var optionsToSend = {
    accessToken : options.accessToken
  };

  var getComment = function(getOptions, callback) {
    optionsToSend.url = buildUrl(getOptions);
    return utils.get(_.extend(optionsToSend, getOptions), callback);
  };

  var deleteComment = function(getOptions, callback) {
    optionsToSend.url = buildUrl(getOptions);
    return utils.delete(_.extend(optionsToSend, getOptions), callback);
  };

  var addCommentUrlAttachment = function(getOptions, callback) {
    optionsToSend.url = buildUrl(getOptions) + '/attachments';
    return utils.post(_.extend(optionsToSend, getOptions), callback);
  };
  
  var addCommentFileAttachment = function(getOptions, callback) {
    optionsToSend.url = buildUrl(getOptions) + '/attachments';
    return utils.postFile(_.extend(optionsToSend, getOptions), callback);
  };

  var editComment = function(putOptions, callback) {
    optionsToSend.url = buildUrl(putOptions);
    return utils.put(_.extend(optionsToSend, putOptions), callback);
  };

  var buildUrl = function(urlOptions) {
    return options.apiUrls.sheets + urlOptions.sheetId + '/comments/' + (urlOptions.commentId || '');
  };

  return {
    getComment : getComment,
    deleteComment : deleteComment,
    addCommentUrlAttachment : addCommentUrlAttachment,
    addCommentFileAttachment : addCommentFileAttachment,
    editComment : editComment
  };
};

@@ -422,35 +422,38 @@
 ment = function(
-g
+del
 et
+e
 Options, callbac
@@ -482,35 +482,38 @@
 .url = buildUrl(
-g
+del
 et
+e
 Options);%0A    re
@@ -546,35 +546,38 @@
 (optionsToSend, 
-g
+del
 et
+e
 Options), callba
@@ -620,34 +620,35 @@
 ment = function(
-ge
+pos
 tOptions, callba
@@ -678,34 +678,35 @@
 .url = buildUrl(
-ge
+pos
 tOptions) + '/at
@@ -755,34 +755,35 @@
 (optionsToSend, 
-ge
+pos
 tOptions), callb
@@ -830,34 +830,35 @@
 ment = function(
-ge
+pos
 tOptions, callba
@@ -888,34 +888,35 @@
 .url = buildUrl(
-ge
+pos
 tOptions) + '/at
@@ -969,34 +969,35 @@
 (optionsToSend, 
-ge
+pos
 tOptions), callb

Fix options param names to match their requests.