2024-07-24 10:43:43 +08:00
|
|
|
package dw_sdk
|
|
|
|
|
|
|
|
import "testing"
|
|
|
|
|
|
|
|
func TestNewArticleServiceClient(t *testing.T) {
|
|
|
|
//cli := NewArticleServiceClient(PublicConfig{
|
|
|
|
// Key: "340139807ccc413b8767f89ce2ffb121",
|
|
|
|
// Secret: "3c3ab5aa12fc4f7d8e11a32e11c08760",
|
|
|
|
// Env: "dev",
|
|
|
|
//})
|
2024-07-29 15:19:06 +08:00
|
|
|
cli := NewArticleServiceClient(testConfig)
|
2024-07-25 13:30:34 +08:00
|
|
|
resp, err := cli.BatchArticleNumber([]string{"C4250-IMNLJ"})
|
2024-07-24 10:43:43 +08:00
|
|
|
if err != nil {
|
|
|
|
t.Fatal(err)
|
|
|
|
}
|
|
|
|
t.Log(resp)
|
|
|
|
}
|