             revision: revisionId
         @apiGet 'template', data, callback
 
-    saveTemplate: (template, callback, options = null) ->
+    saveTemplate: (template, callback, options) ->
+        if options is undefined
+            options = null
         data = @_getOptions options
         data.template = template
         @apiPost 'template', data, callback

            email: email
        @apiGet 'alert', data, callback

    saveAlert: (email, type, template, callback, options = null) ->
        data = @_getOptions options
        data.email = email
        data.type = type


        @apiPost 'blast', data, callback

    scheduleBlast: (name, list, scheduleTime, fromName, fromEmail, subject, contentHtml, contentText, callback, options) ->
        if options is undefined
            options = null
        data = @_getOptions options
        data.name = name
        data.list = list
