MotorEnvios.ApiCore.Sdk
1.0.1
dotnet add package MotorEnvios.ApiCore.Sdk --version 1.0.1
NuGet\Install-Package MotorEnvios.ApiCore.Sdk -Version 1.0.1
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="MotorEnvios.ApiCore.Sdk" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MotorEnvios.ApiCore.Sdk" Version="1.0.1" />
<PackageReference Include="MotorEnvios.ApiCore.Sdk" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MotorEnvios.ApiCore.Sdk --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MotorEnvios.ApiCore.Sdk, 1.0.1"
#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.
#:package MotorEnvios.ApiCore.Sdk@1.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MotorEnvios.ApiCore.Sdk&version=1.0.1
#tool nuget:?package=MotorEnvios.ApiCore.Sdk&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MotorEnvios ApiCore SDK
SDK cliente para consumir Api_Core con autenticacion por client credentials y renovacion automatica de token cuando recibe 401.
Instalacion
dotnet add package MotorEnvios.ApiCore.Sdk
Instalacion desde paquete local (sin publicar en NuGet.org)
- Crear un feed local en una carpeta, por ejemplo
C:\nuget-local. - Copiar el
.nupkggenerado a esa carpeta. - Registrar la fuente en tu maquina:
dotnet nuget add source C:\nuget-local --name local-sdk
- Instalar el paquete:
dotnet add package MotorEnvios.ApiCore.Sdk --version 1.0.0 --source local-sdk
Uso rapido
using ApiCore.Sdk;
using ApiCore.Sdk.Models;
var client = ApiCoreClientFactory.Create(new ApiCoreClientOptions
{
BaseUrl = "https://tu-api-base/",
ClientId = "tu-client-id",
ClientSecret = "tu-client-secret"
});
var createMessage = await client.CreateMessageAsync(new CreateMessageRequest
{
To = "+34123456789",
Content = "Hola desde el SDK",
Channel = "WHATSAPP"
});
var dashboard = await client.GetAsync<object>("v1/stats/dashboard");
Versionado semantico
- Usa tags git con formato
vMAJOR.MINOR.PATCH. - Ejemplos validos:
v1.0.0,v1.2.3,v2.0.0-rc.1. - El pipeline de NuGet toma ese tag y publica esa version.
Pack manual
powershell -ExecutionPolicy Bypass -File scripts/pack-sdk.ps1 -Version 1.0.0
Publicacion manual en NuGet.org
Define tu API key y publica:
powershell -ExecutionPolicy Bypass -File scripts/publish-sdk.ps1 -Version 1.0.0 -ApiKey <NUGET_API_KEY>
Publicacion automatica por CI (tag)
- Crea una pipeline en Azure DevOps usando
azure-pipelines-nuget.yml. - Configura una variable secreta
NUGET_API_KEY. - Haz push de un tag semver:
git tag v1.0.0
git push origin v1.0.0
- El pipeline compila, empaqueta y publica automaticamente en NuGet.org.
Visibilidad en buscador de NuGet
Si publicas en NuGet.org con PackageId = MotorEnvios.ApiCore.Sdk, aparecera en busquedas tras indexacion.
Si publicas en feed privado, solo aparecera en ese feed.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- No dependencies.
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.1 | 132 | 3/17/2026 |