Skip to content

k8scat/fxiaoke

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fxiaoke OpenAPI SDK

Unofficial Go SDK for the fxiaoke.com OpenAPI

Install

go get -u github.com/k8scat/fxiaoke

Quick start

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)
}