sdk for go
Getting started
This sdk is only for go in ikaopu.cn.
See examples in tests.
You can contact liyuan@ikaopu.cn if you have any question.
go get -u github.com/LeoNumber1/sdk-go@v0.0.1-alpha3
- then import it in your code
import "github.com/LeoNumber1/sdk-go"
kpClient := client.NewClient(client.Config{
BaseURL: "http://localhost:3000",
AccessKey: "YOUR AK",
SecretKey: "YOUR SK",
}
insClient := api.NewInstanceAPI(kpClient)
insClient.GetInstance("instanceId")
marketClient := api.NewMarketAPI(kpClient)
marketClient.ListMarketCommon()
Try it yourself and enjoy your code!