Documentation ¶
Index ¶
Constants ¶
View Source
const ( UserOpenIdApiAddr = "https://open.feishu.cn/open-apis/contact/v3/users/batch_get_id" AccessTokenApiAddr = "https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal" )
Variables ¶
View Source
var (
CustomUserAgent = "tt-agent"
)
Functions ¶
This section is empty.
Types ¶
type AccessTokenReq ¶
AccessTokenReq define request body when fetch access token
type AccessTokenRsp ¶
type AccessTokenRsp struct { Code int `json:"code"` Msg string `json:"msg"` TenantAccessToken string `json:"tenant_access_token"` Expire int `json:"expire"` }
AccessTokenRsp define response body when fetch access token
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
func (*Api) FetchAccessToken ¶
type UserOpenIdReq ¶
UserOpenIdReq define request body when fetch user open id
type UserOpenIdRsp ¶
type UserOpenIdRsp struct { Code int `json:"code"` Msg string `json:"msg"` Data UserData `json:"data"` }
UserOpenIdRsp define response body when fetch user open id
Click to show internal directories.
Click to hide internal directories.