Пример #1
0
        public void SetUp()
        {
            var auth = new PrivateAppAuth(appKey, appSecret);

            token = auth.GetToken();
            api   = new Api(token);
        }
Пример #2
0
 /// <summary>
 /// 私有应用API使用方法。
 /// </summary>
 private static void PrivateAppSample()
 {
     var auth = new PrivateAppAuth(appKey, appSecret);
     var token = auth.GetToken();
     var api = new Api(token);
     var response = api.Get("customers");
     Console.WriteLine(response.Content);
 }
Пример #3
0
        /// <summary>
        /// 私有应用API使用方法。
        /// </summary>
        private static void PrivateAppSample()
        {
            var auth     = new PrivateAppAuth(appKey, appSecret);
            var token    = auth.GetToken();
            var api      = new Api(token);
            var response = api.Get("customers");

            Console.WriteLine(response.Content);
        }
Пример #4
0
 public void SetUp()
 {
     var auth = new PrivateAppAuth(appKey, appSecret);
     token = auth.GetToken();
     api = new Api(token);
 }
Пример #5
0
 public void SetUp()
 {
     auth = new PrivateAppAuth(appKey, appSecret);
 }
Пример #6
0
 public void SetUp()
 {
     auth = new PrivateAppAuth(appKey, appSecret);
 }