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