コード例 #1
0
ファイル: TaskPush.cs プロジェクト: Cloud33/K2.Tasks-Service
        private static async Task<string> CreateQuanShiToKenAsync()
        {
            return await Task.Run(() =>
            {
                LoginModel login = new LoginModel()
                {
                    username = QuanShiAccount,
                    password = QuanShiPwb,
                    role = 0
                };
                return PostWebRequest(QuanShiLoginAPIUrl, JsonConvert.SerializeObject(login), Encoding.UTF8);
            });

        }
コード例 #2
0
ファイル: TaskPush.cs プロジェクト: Cloud33/K2.Tasks-Service
 public static string CreateQuanShiToKen()
 {
     LoginModel login = new LoginModel()
     {
         username = QuanShiAccount,
         password = QuanShiPwb,
         role = 0
     };
     return PostWebRequest(QuanShiLoginAPIUrl, JsonConvert.SerializeObject(login), Encoding.UTF8);
 }