Files
m3o-go/examples/currency/codes/getSupportedCodes/main.go
2021-11-03 15:36:34 +00:00

17 lines
298 B
Go
Executable File

package main
import (
"fmt"
"os"
"go.m3o.com/currency"
)
// Codes returns the supported currency codes for the API
func main() {
currencyService := currency.NewCurrencyService(os.Getenv("M3O_API_TOKEN"))
rsp, err := currencyService.Codes(&currency.CodesRequest{})
fmt.Println(rsp, err)
}