An open API service indexing awesome lists of open source software.

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

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 main

import (
"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)
}
```