AliExpressSDK 1.1.2

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package AliExpressSDK --version 1.1.2
NuGet\Install-Package AliExpressSDK -Version 1.1.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AliExpressSDK" Version="1.1.2">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AliExpressSDK --version 1.1.2
#r "nuget: AliExpressSDK, 1.1.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AliExpressSDK as a Cake Addin
#addin nuget:?package=AliExpressSDK&version=1.1.2

// Install AliExpressSDK as a Cake Tool
#tool nuget:?package=AliExpressSDK&version=1.1.2

AliExpressSDK
阿里速卖通开放平台SDK C#版本
官网  http://open.aliexpress.com/
开源 https://github.com/mccj/AliExpressSDK

使用例子
          var client = new SDK.Platform.AliExpressApi.AliExpressClient("appKey", "appSecret", "accessToken");
          var order = client.FindOrderById(11111);

Product Compatible and additional computed target framework versions.
.NET Framework net46 is compatible.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated

使用例子
          var client = new SDK.Platform.AliExpressApi.AliExpressClient("appKey", "appSecret", "accessToken");
          var order = client.FindOrderById(11111);

扩展重写
      public class CustomAliExpressClient : SDK.Platform.AliExpressApi.AliExpressClient
      {
          public CustomAliExpressClient(string appKey, string appSecret, string accessToken = null, bool _throw = true)
              : base(appKey, appSecret, accessToken, _throw)
          {
              //this.StrClient
          }
          //重写 或 自定义方法,属性
          public override ApiFindOrderByIdResponse FindOrderById(long orderId)
          {
              return base.FindOrderById(orderId);

              //解析方法1,使用SDK现有的解析方法
              //SDK解析结果正确时,推荐使用
              var model = this.ModelClient.FindOrderById(orderId);
              return model;

              //解析方法2,使用SDK现有的 json 获取,自定义对象解析
              // SDK 获取 json 结果正确,但是解析对象错误,或不能满足需求时,推荐使用
              var json = this.StrClient.api_findOrderById(orderId);
              var customModel = Newtonsoft.Json.JsonConvert.DeserializeObject<ApiFindOrderByIdResponse>(json);
              return customModel;

              //解析方法2,使用SDK现有的签名及请求,其他自定义
              var dic = new Dictionary<string, object>();
              dic.Add(SDK.Platform.AliExpressApi.AliExpressClient.fieldAccessToken, this.AccessToken);//用户授权令牌
              dic.Add("orderId", orderId);
              dic.Add("fieldList", null);
              dic.Add("extInfoBitFlag", null);
              var json2 = this.PostWebRequest(SDK.Platform.AliExpressApi.AliExpressClient.openapiIP, this.AppKey, SDK.Platform.AliExpressApi.AliExpressClient.Url + "api.findOrderById", isFile: false, stream: null, paramDic: dic, paramIsSign: true, paramIscon: true);
              var customModel2 = Newtonsoft.Json.JsonConvert.DeserializeObject<ApiFindOrderByIdResponse>(json2);
              return customModel2;

              //使用 System.Net.Http.HttpClient 获取数据
              var str1 = this.PostAsync<string, ApiFindOrderByIdResponse>("http://www.qq.com/", "test");
          }
      }