Documentation
¶
Index ¶
- Variables
- func DefaultCheck() (check checkCookie)
- func DownPic(c *Client, pic string, picUrl string, path string) error
- func ExistedOrDownPic(c *Client, mblog *Mblog, path string) error
- type ActionInfo
- type CMblog
- type CMblogBody
- type Card
- type CardGroup
- type Client
- func (c *Client) AddFriend(uid string) (err error)
- func (c *Client) CheckCookie() (isActivate bool, err error)
- func (c *Client) DownPics(mblog *Mblog, path string) error
- func (c *Client) FetchCMblogLongText(mblog *CMblog) error
- func (c *Client) FetchMblogLongText(mblog *Mblog) error
- func (c *Client) GetCMblogs(userid string, page int, longtext bool) ([]*CMblog, error)
- func (c *Client) GetMMblogs(userid string, page int, longtext bool) ([]*CMblog, error)
- func (c *Client) GetMblogLongText(mblogid string) (longtext string, err error)
- func (c *Client) GetMblogs(userid string, page int, longtext bool) ([]*Mblog, error)
- type Comment
- type CommentBlog
- type Database
- type Large
- type LongtextBody
- type Mblog
- type MymblogBody
- type Pics
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var BadRequest = errors.New("BadRequest")
Functions ¶
func DefaultCheck ¶ added in v1.1.2
func DefaultCheck() (check checkCookie)
Types ¶
type ActionInfo ¶ added in v1.1.3
type ActionInfo struct {
Comment *Comment `json:"comment"`
}
type CMblog ¶ added in v1.1.3
type CMblog struct {
CreatedAt string `json:"created_at"`
ID string `json:"id"`
Text string `json:"text"`
PicIds []string `json:"pic_ids"`
User *User `json:"user"`
IsLongText bool `json:"isLongText"`
ActionInfo *ActionInfo `json:"action_info"`
PicNum int8 `json:"pic_num"`
MblogID string `json:"bid"`
Pics []*Pics `json:"pics,omitempty"`
Retweeted *CMblog `json:"retweeted_status,omitempty"`
LongTextRaw string
}
type CMblogBody ¶ added in v1.1.3
type Client ¶
func (*Client) CheckCookie ¶ added in v1.1.2
func (*Client) FetchCMblogLongText ¶ added in v1.1.3
func (*Client) FetchMblogLongText ¶
func (*Client) GetCMblogs ¶ added in v1.1.3
获取互动信息,需要cookie
func (*Client) GetMMblogs ¶ added in v1.1.4
手机端api,获取全部微博,需要cookie
func (*Client) GetMblogLongText ¶
type Comment ¶ added in v1.1.3
type Comment struct {
List []*CommentBlog `json:"list"`
Count int64 `json:"count"`
}
type CommentBlog ¶ added in v1.1.3
type LongtextBody ¶
type Mblog ¶
type Mblog struct {
User *User `json:"user"`
CreatedAt string `json:"created_at"`
ID int64 `json:"id"`
MblogID string `json:"mblogid"`
TextRaw string `json:"text_raw"`
Text string `json:"text"`
IsLongText bool `json:"isLongText"`
PicNum int8 `json:"pic_num"`
PicIds []string `json:"pic_ids"`
PicInfos map[string]interface{} `json:"pic_infos"`
MixMediaInfo map[string]interface{} `json:"mix_media_info"`
Retweeted *Mblog `json:"retweeted_status,omitempty"`
LongTextRaw string
}
type MymblogBody ¶
Click to show internal directories.
Click to hide internal directories.