using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
using System.Web.Script.Serialization;

namespace ZionRobot.WebService
{
    public class ZFlow
    {
        private string token = "47497f45ea68b19b2f5bdab2542cd62af8dd4da5";

        internal object CheckResponsibleAvailability(string name, string email)
        {
            string n = name;

            var x = new JavaScriptSerializer().Serialize(new
            {
                Name = @"Milena Fortes Carreira"
            });
            var a = new ZionVault.WebService.Client(Persistence.WSProperties.UrlApi)._request("POST",
               Persistence.WSProperties.CheckResponsibleAvailability,
               this.token,
               null,
               x,
               null);

            return a;
        }

    }
}
