A Go client library for interacting with the TecAlliance Order Manager API. This library aims to provide a simple, robust, and idiomatic Go interface for accessing TecAlliance services.
- Type-Safe: Provides Go structs for API requests and responses.
- Authentication: Handles API key authentication seamlessly.
- Article Search: Methods for searching and retrieving article data.
- Order Management: (Planned) Functionality for creating and managing orders.
- Error Handling: Clear and structured error handling for API responses.
- Go 1.24 or later.
- A valid TecAlliance API Key.
- To add the library to your project, use
go get <lib name>
- Building source:
go build -ldflags="-H=windowsgui -s -w" -o="tecalliance-link.exe" ./cmd/app
The client needs to be configured with your API key. It's recommended to use environment variables to keep your credentials secure.
Export your API key in your terminal:
The client will automatically pick up this environment variable.
Here is a basic example of how to initialize the client and make a request.
Contributions are welcome! If you'd like to help improve this library, please feel free to:
- Fork the repository
- Create a new branch (
git checkout -b feature/your-feature-name
) - Make your changes
- Commit your changes (
git commit -m 'feat: Add some amazing feature'
) - Push to the branch (
git push origin feature/your-feature-name
) - Open a new Pull Request
- Start a local web server on http://localhost:8095.
- Automatically open your default web browser to this URL.
- If the server is already running from a previous instance, executing go run ./cmd/app again will simply open a new browser tab to the existing server instance without starting a new one.
Please make sure your code follows the project's coding standards and includes tests for new features.
This project is licensed under the MIT License - see the LICENSE file for details.