using System.Web.Http; using Sony.ChartBot.Entities.MessengerApi; using Sony.ChartBot.MessengerApi; namespace Sony.ChartBot.Client.Controllers { public class SetupController : ApiController { [HttpGet] public IHttpActionResult Index() { var apiClient = new MessengerApiClient(); apiClient.ClearAllCallToActions(); var callToActions = new[] { new Setting { setting_type = "call_to_actions", thread_state = "new_thread", call_to_actions = new[] { new CallToActions { type = "postback", title = "Get started!", payload = "started" } } } }; apiClient.AddCallToActions(callToActions); return Ok(); } } }