public void Setup() { context = new YunPianSMSContext(); var config = VendorConfig.GetConfig("YunPian"); context.Host = config.Host; context.AccessToken = config.AccessToken; api = new YunPianSMSService(context); }
public void Setup() { context = new HuaXinTechSMSContext(); var config = VendorConfig.GetConfig("HuaXinTech"); context.Host = config.Host; context.AccountId = config.Username; context.PasswordMD5 = config.Password; context.Signature = config.Signature; context.Userid = ""; api = new HuaXinTechSMSService(context); //string accesstoken = context.AccessToken; }
public void Setup() { var config = VendorConfig.GetConfig("CCP"); var context = new CCPSMSContext() { Host = config.Host, Port = config.Port, AccountId = config.Username, AccessToken = config.AccessToken, AppId = config.AppId }; smsService = new CCPSMSService(context); }