https://github.com/guibranco/vtex-sdk-dotnet
π βοΈ VTEX platform .NET SDK
https://github.com/guibranco/vtex-sdk-dotnet
api dotnet dotnet-core dotnetcore dotnetframework e-commerce ecommerce hacktoberfest sdk vtex vtex-api
Last synced: 6 months ago
JSON representation
π βοΈ VTEX platform .NET SDK
- Host: GitHub
- URL: https://github.com/guibranco/vtex-sdk-dotnet
- Owner: guibranco
- License: mit
- Created: 2019-09-22T07:41:03.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2025-04-22T15:29:34.000Z (6 months ago)
- Last Synced: 2025-04-22T15:42:58.314Z (6 months ago)
- Topics: api, dotnet, dotnet-core, dotnetcore, dotnetframework, e-commerce, ecommerce, hacktoberfest, sdk, vtex, vtex-api
- Language: C#
- Homepage: http://guilherme.stracini.com.br/VTEX-SDK-dotnet/
- Size: 938 KB
- Stars: 13
- Watchers: 3
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VTEX SDK
π βοΈ [VTEX](https://vtex.com) platform .NET SDK.
[](https://github.com/guibranco/VTEX-SDK-dotnet)
[](https://wakatime.com/badge/github/guibranco/VTEX-SDK-dotnet)
## CI/CD
| Build status | Last commit | Tests | Coverage | Code Smells | LoC |
|--------------|-------------|-------|----------|-------------|-----|
| [](https://ci.appveyor.com/project/guibranco/vtex-sdk-dotnet/branch/main) | [](https://github.com/guibranco/VTEX-SDK-dotnet) |  | [](https://sonarcloud.io/dashboard?id=guibranco_VTEX-SDK-dotnet) | [](https://sonarcloud.io/dashboard?id=guibranco_VTEX-SDK-dotnet) | [](https://sonarcloud.io/dashboard?id=guibranco_VTEX-SDK-dotnet)## Code Quality
[](https://www.codacy.com/gh/guibranco/VTEX-SDK-dotnet/dashboard?utm_source=github.com&utm_medium=referral&utm_content=guibranco/VTEX-SDK-dotnet&utm_campaign=Badge_Grade)
[](https://www.codacy.com/gh/guibranco/VTEX-SDK-dotnet/dashboard?utm_source=github.com&utm_medium=referral&utm_content=guibranco/VTEX-SDK-dotnet&utm_campaign=Badge_Coverage)[](https://codecov.io/gh/guibranco/VTEX-SDK-dotnet)
[](https://www.codefactor.io/repository/github/guibranco/VTEX-SDK-dotnet)[](https://codeclimate.com/github/guibranco/VTEX-SDK-dotnet/maintainability)
[](https://codeclimate.com/github/guibranco/VTEX-SDK-dotnet/test_coverage)[](https://sonarcloud.io/dashboard?id=guibranco_VTEX-SDK-dotnet)
[](https://sonarcloud.io/dashboard?id=guibranco_VTEX-SDK-dotnet)[](https://sonarcloud.io/dashboard?id=guibranco_VTEX-SDK-dotnet)
[](https://sonarcloud.io/dashboard?id=guibranco_VTEX-SDK-dotnet)[](https://sonarcloud.io/dashboard?id=guibranco_VTEX-SDK-dotnet)
[](https://sonarcloud.io/dashboard?id=guibranco_VTEX-SDK-dotnet)[](https://sonarcloud.io/dashboard?id=guibranco_VTEX-SDK-dotnet)
[](https://sonarcloud.io/dashboard?id=guibranco_VTEX-SDK-dotnet)---
## Installation
### Github Releases
[](https://github.com/guibranco/VTEX-SDK-dotnet) [](https://github.com/guibranco/VTEX-SDK-dotnet)
Download the latest `.zip` file from the [Releases](https://github.com/GuiBranco/VTEX-SDK-dotnet/releases) page.
### Nuget package manager
| Package | Version | Downloads |
|------------------|:-------:|:-------:|
| **VTEX** | [](https://www.nuget.org/packages/VTEX/) | [](https://www.nuget.org/packages/VTEX/) |
| **VTEX.Health** | [](https://www.nuget.org/packages/VTEX.Health/) | [](https://www.nuget.org/packages/VTEX.Health/) |---
## Features
- Full implementation of VTEX API.
- Refer to [VTEX Developer Docs](https://developers.vtex.com/) for more information.---
## Usage
### Dependency Injection (IoC)
Register the VTEX Service using the `CrispyWaffle` toolkit's [Service Locator](https://guibranco.github.io/CrispyWaffle/user-guide/serviceLocator/):
```csharp
var connectionVtex = new Connection(); // Fill in your details
ServiceLocator.Register(() => new VTEXContext(connectionVtex), LifeStyle.Singleton);
```#### Constructor Injection
```csharp
public class MyClass
{
private readonly VTEXContext _vtexContext;public MyClass(VTEXContext vtexContext)
{
_vtexContext = vtexContext ?? throw new ArgumentNullException(nameof(vtexContext));
}
}
```#### Manual Resolution
```csharp
var vtexContext = ServiceLocator.Resolve();
```
---### Authentication
Authenticate with VTEX platform API keys. Refer to this [tutorial](https://help.vtex.com/tutorial/creating-appkeys-and-apptokens-to-authenticate-integrations--43tQeyQJgAKGEuCqQKAOI2).
```csharp
var vtex = new VTEXContext("store name", "app-key-xyz", "app-token-secret-hash");
var order = vtex.GetOrder("V-123456789-01");
Console.WriteLine($"Sequence: {order.Sequence} | Value: {order.Value}");
```---
## Support
If you need help, feel free to [open an issue](https://github.com/guibranco/VTEX-SDK-dotnet/issues/new).
---
## Contributing
Contributions are welcome! Check out the [CONTRIBUTING.md](CONTRIBUTING.md) guide for details.
---
## Contributors
Thanks to all contributors! π
![]()
Guilherme Branco Stracini
![]()
JoΓ£o VΓtor Valadares
![]()
Viktorius Suwandi
### Bots
![]()
dependabot[bot]
![]()
github-actions[bot]
![]()
penify-dev[bot]
![]()
stack-file[bot]
![]()
codefactor-io[bot]
![]()
Snyk bot