Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Latest commit

 

History

History
22 lines (17 loc) · 372 Bytes

File metadata and controls

22 lines (17 loc) · 372 Bytes

Deprecated

rpc will be updated to mutual ssl mode and migrate into client

Usage

client, err := refreshTokenRpc.NewRpc("v.ncuos.com:443", &refreshTokenRpc.Config{
	AppCode: "xxx",
	AppSecret: "xxx"
})
if err!=nil {
	panic(err)
}

token, err := client.RefreshToken(context.Background(), "refresnTokenHere")
if err!=nil {
	panic(err)
}

fmt.Println(token)