예제 #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello");

            RestClientHelper restClient = new RestClientHelper("rest/", "spadmin", "admin");

            var isLoggedin = restClient.Login();

            restClient.GetConfig();
            Console.WriteLine(isLoggedin);

            // Get identity info
            restClient.GetIdentity("1");
            // Get Identity links
            restClient.GetIdentityLinks("1");
            // Create Identity
            Identity identity = new Identity
            {
                firstname   = "adli",
                lastname    = "adli",
                name        = "adli adli",
                displayName = "adli Khab",
                email       = "*****@*****.**"
            };

            restClient.CreateUpdateIdentity(identity, HttpVerb.POST);

            Console.ReadKey();
        }