Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 584 Bytes

File metadata and controls

31 lines (20 loc) · 584 Bytes

apistore

baidu api store for golang, 百度APIStore接口Golang实现

快速指南(Quick Start)

	import "github.com/h2object/apistore/currency"

	client := currency.NewClient()
	// 获取汇率币种类型
	types, err := client.Catagories()

	// 获取汇率转换
	data := ExchangeData{
		FromCurrency: "JPY",
		ToCurrency: "CNY",
		Amount: 1000,
	}

	err = client.Exchange(&data)
	log.Println(data)

已完成接入(持续接入中)