https://github.com/k8scat/fxiaoke
纷享销客开放平台 Go SDK
https://github.com/k8scat/fxiaoke
fxiaoke go openapi sdk
Last synced: 3 months ago
JSON representation
纷享销客开放平台 Go SDK
- Host: GitHub
- URL: https://github.com/k8scat/fxiaoke
- Owner: k8scat
- License: mit
- Created: 2021-08-08T04:26:53.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-23T06:53:27.000Z (almost 4 years ago)
- Last Synced: 2025-07-04T18:18:08.794Z (3 months ago)
- Topics: fxiaoke, go, openapi, sdk
- Language: Go
- Homepage: https://open.fxiaoke.com/wiki.html
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fxiaoke OpenAPI SDK
Unofficial Go SDK for [the fxiaoke.com OpenAPI](https://open.fxiaoke.com/wiki.html)
## Install
```bash
go get -u github.com/k8scat/fxiaoke
```## Quick start
```go
package mainimport (
"fmt""github.com/k8scat/fxiaoke"
)func main() {
appID := ""
appSecret := ""
permanentCode := ""
userID := ""
corpID := ""
client, err := fxiaoke.NewClient(appID, appSecret, permanentCode, userID, corpID)
if err != nil {
panic(err)
}user, err := client.GetUserByOpenID(userID)
if err != nil {
panic(err)
}
fmt.Printf("%+v", user)
}
```