Documentation
¶
Index ¶
Constants ¶
View Source
const ( TooManyRequest = -32 InvalidAccessToken = -216 InvalidRefreshToken = -14014 ExpiredRefreshToken = -14020 )
View Source
const ( AddUserToTag = "add_user_to_tag" RemoveUserFromTag = "remove_user_from_tag" TagFinished = "Hoàn thành" )
View Source
const ( SrcOA = iota SrcUser )
Variables ¶
This section is empty.
Functions ¶
func OptionHTTPClient ¶
Types ¶
type Conversation ¶
type Conversation []Message
func (Conversation) Profile ¶
func (c Conversation) Profile() Profile
type Event ¶
type GetAccessTokenResp ¶
type GetConversationReq ¶
type GetConversationResp ¶
type GetConversationResp struct {
Data Conversation `json:"data"`
ErrorResp
}
type Link ¶
type LinkDescription ¶
type Message ¶
type Message struct {
Src int `json:"src" bson:"src"`
Time int64 `json:"time" bson:"time"`
SentTime string `json:"sent_time" bson:"sent_time"`
FromID string `json:"from_id" bson:"from_id"`
FromDisplayName string `json:"from_display_name" bson:"from_display_name"`
FromAvatar string `json:"from_avatar" bson:"from_avatar"`
ToID string `json:"to_id" bson:"to_id"`
ToDisplayName string `json:"to_display_name" bson:"to_display_name"`
ToAvatar string `json:"to_avatar" bson:"to_avatar"`
MessageID string `json:"message_id" bson:"message_id"`
Type string `json:"type" bson:"type"`
Message string `json:"message" bson:"message"`
Links []Link `json:"links,omitempty" bson:"links"`
Thumb string `json:"thumb" bson:"thumb"`
URL string `json:"url" bson:"url"`
Description string `json:"description" bson:"description"`
}
type Zgo ¶
type Zgo interface {
GetAppID() string
EventSignature(data string, timestamp string) string
RefreshAccessToken(ctx context.Context, refreshToken string) (GetAccessTokenResp, error)
GetConversation(ctx context.Context, accessToken string, reqData GetConversationReq) (GetConversationResp, error)
}
Click to show internal directories.
Click to hide internal directories.