mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-12 19:05:12 +00:00
16 lines
313 B
Go
Executable File
16 lines
313 B
Go
Executable File
package example
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"go.m3o.com/currency"
|
|
)
|
|
|
|
// Codes returns the supported currency codes for the API
|
|
func GetSupportedCodes() {
|
|
currencyService := currency.NewCurrencyService(os.Getenv("M3O_API_TOKEN"))
|
|
rsp, err := currencyService.Codes(¤cy.CodesRequest{})
|
|
fmt.Println(rsp, err)
|
|
}
|