webapi接口:自己测试的小玩意验证接口登录
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Kingdee.BOS.WebApi.Client;
using Newtonsoft.Json.Linq;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("请输入账号:");
var name = Console.ReadLine();
Console.WriteLine("请输入密码:");
var password = Console.ReadLine();
K3CloudApiClient client = new K3CloudApiClient("http://175.6.208.227:7879/K3Cloud/Kingdee.BOS.WebApi.ServicesStub.AuthService.ValidateUser.common.kdsvc");
var loginResult = client.ValidateLogin("65716c0b42fc36", name, password, 2052);
Console.Write(JObject.Parse(loginResult)["KDSVCSessionId"]);
var pp = Console.ReadLine();
//var resultType = JObject.Parse(loginResult)["LoginResultType"];
//int resultTypetwo = resultType.Value<int>();
//if (resultTypetwo == 1)
//{
// Console.WriteLine("登陆成功!"+ resultType
// );
// Console.Write(JObject.Parse(loginResult));
//}
//else if(resultTypetwo != 1)
//{
// Console.Write("登入失败");
//}
}
}
}
webapi接口:自己测试的小玩意验证接口登录
本文2024-09-16 18:10:49发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-20466.html