eBay.api 1.0.3

dotnet add package eBay.api --version 1.0.3                
NuGet\Install-Package eBay.api -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="eBay.api" Version="1.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add eBay.api --version 1.0.3                
#r "nuget: eBay.api, 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 eBay.api as a Cake Addin
#addin nuget:?package=eBay.api&version=1.0.3

// Install eBay.api as a Cake Tool
#tool nuget:?package=eBay.api&version=1.0.3                

ebayapi

Refrence doc link https://docs.google.com/document/d/1vmnfmNRI_3yxMtGcU7lT97l6Btl62uKjDOs9zigoY0k/edit?usp=sharing

Demo https://drive.google.com/file/d/1WyIZRuUKTKnPa5lecBRw2XsEfW6FwYUr/view?usp=sharing

===============================================================================================================

  • Create ebay-config-sample.yaml file and past bwlow code and do changes

OAuth Access Tokens - https://developer.ebay.com/api-docs/static/oauth-tokens.html

UPDATE the values in this file, before running the tests

name: ebay-config

api.sandbox.ebay.com: appid: <YOUR-APP-ID> certid: <YOUR-CERT-ID> devid: <YOUR-DEV-ID> redirecturi: "<YOUR-DOMAIN>/api/Auth/getToken" apiurl: "https://api.sandbox.ebay.com" authurl: "https://auth.sandbox.ebay.com"

api.ebay.com: appid: <YOUR-APP-ID> certid: <YOUR-CERT-ID> devid: <YOUR-DEV-ID> redirecturi: "<YOUR-DOMAIN>/api/Auth/getToken" apiurl: "https://api.ebay.com" authurl: "https://auth.ebay.com"

===============================================================================================================

  • Add below code in your addsettings.json file

"RedirectUrls": { "Swagger": "<YOUR-DOMAIN>/swagger/index.html" }

===============================================================================================================

  • In Your Program File Add

using eBay.api; using eBay.ApiClient.Auth.OAuth2;

var builder = WebApplication.CreateBuilder(args);

//Add this CredentialUtil.Load($"{Directory.GetCurrentDirectory()}/ebay-config-sample.yaml");

builder.Services.AddControllers(); builder.Services.AddEndpointsApiExplorer(); builder.Services.AddSwaggerGen(); builder.Services.AddCustomServices();

var app = builder.Build();

app.UseHttpsRedirection();

//Add this app.AddCustomMiddleware();

if (app.Environment.IsDevelopment()) { app.UseSwagger(); app.UseSwaggerUI(); }

//Add this app.AddCustomAppConfiguration();

app.UseAuthorization();

app.MapControllers();

app.Run();

Product 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.