ā ļø This is a Reference Implementation - pseudocode and reference materials only, not a functional SDK. For working SDKs, see language-specific SDKs below.
Languages Java Ā Kotlin Ā JavaScript Ā TypeScript Ā Python Ā PHP Ā Go Ā Rust
C# / .NET Ā Ruby Ā Swift Ā Objective-C Ā Shell / Bash Ā CLI Tools
This repository contains a language-agnostic blueprint for implementing OpenapiĀ® client libraries. Also contains standardized patterns, test specifications, and reference implementation.
src/ # Pseudocode specifications (oauth_client, api_client, types)
tests/ # Test case specifications
examples/ # Usage examples
docs/ # Implementation guide
reference/ # Rust reference implementation
- OauthClient - Token management with Basic auth (
username:api_key) - ApiClient - HTTP client with Bearer token auth
- Types - Standardized data structures and error handling
// 1. Generate a token
oauth = new OauthClient("username", "api_key", test=true)
token_response = oauth.create_token(["GET:test.imprese.openapi.it/advance"], 3600)
access_token = parse_json(token_response)["token"]
// 2. Make API calls
client = new ApiClient(access_token)
response = client.get("https://test.imprese.openapi.it/advance", {"denominazione": "altravia"})
- Study
src/*.pseudofiles as reference - Implement
OauthClient,ApiClient, and type definitions - Follow the test cases in
tests/ - See
docs/implementation-guide.mdfor detailed guidance
MIT - See LICENSE for details.