调用weiAPI免密登录

栏目:云星空知识作者:金蝶来源:金蝶云社区发布:2024-09-16浏览:1

调用weiAPI免密登录

try

            { 

            string appId = "Appid";

            string appSecret = "appSecret ";

            string dbId = "dbid";

            string userId = "user";


            K3CloudApiClient client = new K3CloudApiClient("http://url/K3Cloud/");


            string loginResult = client.LoginByAppSecret(dbId, userId, appId, appSecret, 2052);


            Newtonsoft.Json.Linq.JObject loginResultObj = JObject.Parse(loginResult);


            JToken loginResultType;


            loginResultObj.TryGetValue("LoginResultType", out loginResultType);


            if (loginResultType != null && loginResultType.Value<Int32>() == 1)

            {

                this.textBox2.Text = client.Save("BD_Customer", this.textBox1.Text);

            }

            }

            catch(Exception ex)

            {

                MessageBox.Show(ex.Message);

            }


调用weiAPI免密登录

try { string appId = "Appid"; string appSecret = "appSecret "; ...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息