コード例 #1
0
        protected void btnETTests_Click(object sender, EventArgs e)
        {
            //InvokeEM2ParentToolkitReply reply = ExactTargetService.InvokeEM2ParentToolkit(new InvokeEM2ParentToolkitRequest { ToEmail = tbxSubscriberEmail1.Text });
            //BaseReply reply = ExactTargetService.InvokeWelcomeToUnderstood(new InvokeWelcomeToUnderstoodRequest { PreferredLanguage = new Guid(ddlLanguages.SelectedValue), ToEmail = tbxSubscriberEmail1.Text, FirstName = tbxSubscriberFN1.Text });
            BaseReply reply = ExactTargetService.SendBehaviorToolSuggestion(new BaseRequest {
                PreferredLanguage = new Guid(ddlLanguages.SelectedValue), ToEmail = tbxSubscriberEmail1.Text
            }, "Hello, world!");

            //BaseReply reply = ExactTargetService.InvokeEM10WebinarConfirmation(new InvokeEM10WebinarConfirmationRequest { ToEmail = tbxSubscriberEmail1.Text, WebinarModule = txtWebinarCode.Text });
            lblMessage.Text = reply.Message;
        }
コード例 #2
0
        public SubmissionResult SubmitSuggestion(string message)
        {
            message = message.Trim();

            // TODO: Submit to salesforce
            BaseRequest request = new BaseRequest
            {
                ToEmail = Sitecore.Configuration.Settings.GetSetting(Constants.Settings.BehaviorToolSuggestionEmail)
            };

            var response = ExactTargetService.SendBehaviorToolSuggestion(request, message);

            return(new SubmissionResult
            {
                Message = response.Message,
                IsValid = response.Successful
            });
        }