UpsOAuthClient 1.0.3
dotnet add package UpsOAuthClient --version 1.0.3
NuGet\Install-Package UpsOAuthClient -Version 1.0.3
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="UpsOAuthClient" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add UpsOAuthClient --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: UpsOAuthClient, 1.0.3"
#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 UpsOAuthClient as a Cake Addin #addin nuget:?package=UpsOAuthClient&version=1.0.3 // Install UpsOAuthClient as a Cake Tool #tool nuget:?package=UpsOAuthClient&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
UpsOAuthClient
Use to Create authorization tokens for your application to utilize UPS APIs. This API product is required for all UPS's API integrations.
Installation
Install-Package UpsOAuthClient -Version 1.0.0
See NuGet docs for additonal instructions on installing via the dialog or the console.
Usage
A simple create token example:
using OAuthClient
OAuthClient.OAuthClient oAuth = new OAuthClient(
new OAuthClient.Http.ClientConfiguration(clientKey, clientSecret,
OAuthClient.Common.Enums.ApiEnvironment.Test) );
var token = Task.Run(async()=>await client.CreateToken());
Testing
The test suite in this project was specifically build to produce
Settings
- Rename
appsettings - sample.json
toappsettings.json
- Fill up the following configuration
- ClientID: Clinet ID provided by UPS when create your application.
- ClientSecret: Clinet Secret provided by UPS when create your application
- Change
appsettings.json
property Copy to Output Directory toCopy always
orCopy if newer
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Newtonsoft.Json (>= 13.0.3)
- RestSharp (>= 109.0.1)
- RestSharp.Serializers.NewtonsoftJson (>= 109.0.1)
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 |
---|---|---|
1.0.3 | 308 | 5/9/2023 |