Versions in this module Expand all Collapse all v1 v1.0.0 Dec 20, 2021 Changes in this version + type AccountInfo struct + Balance string + ExpiredAt Time + type Client struct + func NewClient(uid, apiKey string) *Client + func (c Client) GetAccountInfo(ctx context.Context) (*AccountInfo, error) + func (c Client) GetAuthURL(redirect string, getUserInfo bool) string + func (c Client) SendRedPocket(ctx context.Context, redPocket RedPocket) error + func (c Client) VerifyURL(url string) (openId string, userInfo UserInfo, ok bool) + type Error struct + Code string + Message string + func (e Error) Error() string + type RedPocket struct + Cents int + Description string + OrderId string + ReceiverOpenId string + SenderName string + Title string + Type RedPocketType + type RedPocketType int + const RedPocketTypeEnterprise + const RedPocketTypePersonal + type Time struct + func (t *Time) UnmarshalJSON(b []byte) error + type UserInfo struct + ImageUrl string + NickName string + OpenId string