lib/locklizard/customer_commands.rb
# add_customer, enable by default webviewer access and multi session logins and license number = 10

add_customer, enable by default webviewer access and multi session logins and license number = 10
add_customer enable by default webviewer access and multi session logins and license number = 10
def add_customer(name, email, webviewer = 1, webmslogins = 1, licenses = 10, company = 'MyCompany')
      suburl = "&action=add_customer" + "&" + 
        "name="  + email + "&" + 
        "email=" + email  + "&" +
        "start_date=" + Time.now.utc.strftime("%m-%d-%Y") + "&" +
        "end_type=unlimited" + "&" +
        "noregemail=1"       + "&" +
        "licenses=#{licenses}" + "&" + 
        "webviewer=#{webviewer}" + "&" + 
	"webmslogins=#{webmslogins}" + '&' +
	"company=#{company}"
      call_target_url(suburl) 
    end
def add_customer ( name , email , webviewer = 1 , webmslogins = 1 , licenses = 10 , company = 'MyCompany' ) suburl = "&action=add_customer" + "&" + "name=" + email + "&" + "email=" + email + "&" + "start_date=" + Time . now . utc . strftime ( "%m-%d-%Y" ) + "&" + "end_type=unlimited" + "&" + "noregemail=1" + "&" + "licenses=#{licenses}" + "&" + "webviewer=#{webviewer}" + "&" + "webmslogins=#{webmslogins}" + '&' + "company=#{company}" call_target_url ( suburl ) end
add_customer, enable by default webviewer access and multi session logins and license number = 10
add_customer enable by default webviewer access and multi session logins and license number = 10
#call private method

name
email
webviewer
webmslogins
licenses
company