You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
namespace TradeManageNew.APIClients.FedexApi
|
|
|
|
|
{
|
|
|
|
|
public static class FedexAPIClientMisc
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 沙箱环境地址
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string SANDBOX_URL = "https://apis-sandbox.fedex.com";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 生产环境地址
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string PRODUCTION_URL = "https://apis.fedex.com";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 设置西部仓库账户沙箱环境凭证
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="credential"></param>
|
|
|
|
|
public static FedexCredential SetWestSandBoxCredential(this FedexCredential credential)
|
|
|
|
|
{
|
|
|
|
|
credential.ClientId = "l7c3eeb4b319e94d329c6a29cd7cb4ca60";
|
|
|
|
|
credential.ClientSecret = "82ab698a91244d9d80038d56b7502222";
|
|
|
|
|
credential.AccountNumber = "740561073";
|
|
|
|
|
|
|
|
|
|
return credential;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 设置西部仓库账户正式环境凭证
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="credential"></param>
|
|
|
|
|
public static FedexCredential SetWestProductionCredential(this FedexCredential credential)
|
|
|
|
|
{
|
|
|
|
|
credential.ClientId = "l79b85927590ba4f9aa4435b6711c6a4e5";
|
|
|
|
|
credential.ClientSecret = "9c81856004734312b4eea86652c89d12";
|
|
|
|
|
credential.AccountNumber = "910845691";
|
|
|
|
|
|
|
|
|
|
return credential;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 设置东部仓库账户沙箱环境凭证
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="credential"></param>
|
|
|
|
|
public static FedexCredential SetEastSandBoxCredential(this FedexCredential credential)
|
|
|
|
|
{
|
|
|
|
|
credential.ClientId = "l7eca17acbff47442c8771431483457104";
|
|
|
|
|
credential.ClientSecret = "ab05476bb62242e5bbef5ab87bfd0168";
|
|
|
|
|
credential.AccountNumber = "740561073";
|
|
|
|
|
|
|
|
|
|
return credential;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 设置东部仓库账户正式环境凭证
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="credential"></param>
|
|
|
|
|
public static FedexCredential SetEastProductionCredential(this FedexCredential credential)
|
|
|
|
|
{
|
|
|
|
|
credential.ClientId = "l72a19b2aaee2e43b5b2eae3bd8f1055a0";
|
|
|
|
|
credential.ClientSecret = "7db3f2d302b44f298e7766c781abbd73";
|
|
|
|
|
credential.AccountNumber = "896756010";
|
|
|
|
|
|
|
|
|
|
return credential;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|