Started work on returning structs instead of json strings
Lots of tests have been added to the main.go file. Several of the functions return structs now instead of json strings. I've added the initial structs for the remaining functions.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
go-halo5-api is a wrapper around the Halo5 API as documented at https://developer.haloapi.com.
|
||||
|
||||
# Usage
|
||||
Set your API key as an environment variable
|
||||
Set your API key as an environment variable. Request and API key at https://developer.haloapi.com/products
|
||||
```go
|
||||
export HALO_API_KEY="123456789abcdefghi"
|
||||
```
|
||||
@@ -23,7 +23,7 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Println(vehicles("https://www.haloapi.com", "h5"))
|
||||
fmt.Println(string(Vehicles("https://www.haloapi.com", "h5")))
|
||||
}
|
||||
```
|
||||
Results:
|
||||
|
||||
Reference in New Issue
Block a user