https://github.com/cnbattle/alibaba
1688开放平台 golang sdk
https://github.com/cnbattle/alibaba
alibaba go golang openplatform sdk-go
Last synced: 3 months ago
JSON representation
1688开放平台 golang sdk
- Host: GitHub
- URL: https://github.com/cnbattle/alibaba
- Owner: cnbattle
- License: mit
- Created: 2021-06-09T07:22:17.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-31T05:10:25.000Z (almost 4 years ago)
- Last Synced: 2024-06-21T07:45:56.082Z (12 months ago)
- Topics: alibaba, go, golang, openplatform, sdk-go
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# alibabaopen
## Use Demo
```go
package mainimport (
"fmt"
"github.com/cnbattle/alibaba/open"
)func main() {
client := &open.Client{
AppKey: "4790000",
AppSecret: "xxxxx",
AccessToken: "xxxxxxxx-eb92-4b15-857c-f0e89f5c7684",
}
params := make(map[string]string)
params["page"] = "1"
params["pageSize"] = "10"
var uri = "com.alibaba.p4p:alibaba.cps.op.searchCybOffers-1"
do, err := client.Do(uri, params)
if err != nil {
panic(err)
}
fmt.Println(string(do))
}```