import (
"github.com/DigitalUnion/du-pco-go-sdk/dupco"
"github.com/goccy/go-json"
"log"
)
func ExampleClient() {
// clientId identify of dupco
// secretKey key of secret
// secretVal value of secret
api := dupco.NewDataClient("cloud-test", "aa", "yDpDEihpUsF_RyWsCES1H")
for i := 0; i < 10; i++ {
// api_id 从文档中获取,或咨询对接人员
r := api.Call("api_id",[]byte(`{"f":"mac,imei","k":"868862032205613","m":"0"}`))
j, _ := json.Marshal(r)
log.Println(string(j))
}
}
data,err := Decode(raw,secretVal)