示例#1
0
        public string PostAccount(string Name, string AccountType, string token)
        {
            var body     = JsonConvert.SerializeObject(new { AccountType, Name });
            var response = CustomHttpHelper.MakeHttpRequest("POST", $"{baseUrl}company/{RealMeId}/account?minorversion={minorversion}", body, token);

            return(response);
        }
示例#2
0
        static void Main(string[] args)
        {
            var task = Task.Run(async() => await CustomHttpHelper.GetAccessToken());
            var bbb  = task.Result;
            var aa   = CustomHttpHelper.GetAccessToken().ConfigureAwait(false);

            Console.WriteLine("Hello World!");
            Console.ReadLine();
        }