https://github.com/wolveix/openxbl-go
OpenXBL API Go SDK
https://github.com/wolveix/openxbl-go
Last synced: 4 months ago
JSON representation
OpenXBL API Go SDK
- Host: GitHub
- URL: https://github.com/wolveix/openxbl-go
- Owner: wolveix
- License: apache-2.0
- Created: 2024-05-10T19:55:40.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-11T09:24:35.000Z (about 1 year ago)
- Last Synced: 2024-12-29T08:13:45.936Z (5 months ago)
- Language: Go
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenXBL Go SDK
Interface with OpenXBL's API using Go.**Note: This is in an experimental state. PRs are always welcome!**
## Setup
1. Create an account with [OpenXBL](https://xbl.io/)
2. Verify your email
3. Create an API key## Login and Retrieve Account Info
```go
package mainimport (
"fmt"
"log"
"time""github.com/wolveix/openxbl-go"
)func main() {
client := openxbl.NewClient("your-api-token-here", time.Second*3)account, err := client.GetAccount()
if err != nil {
log.Fatalf("Failed to query account info: %v", err)
}fmt.Println(account)
}
```## Roadmap
- [ ] Implement testing for all functions
- [ ] Support all API endpoints