Unofficial Go SDK for the fxiaoke.com OpenAPI
go get -u github.com/k8scat/fxiaoke
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)
}