api

package
v0.0.0-...-e893f27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionLog

type ActionLog struct {
	ActCode int64  `json:"act_code"`
	OID     string `json:"oid"`
	EXT     string `json:"ext"`
	Fid     string `json:"fid"`
}

type Actionlog

type Actionlog struct {
	ActCode string `json:"act_code"`
	Fid     string `json:"fid"`
	OID     string `json:"oid"`
	Cardid  string `json:"cardid"`
	EXT     string `json:"ext"`
}

type AlchemyParams

type AlchemyParams struct {
	UgRedEnvelope bool `json:"ug_red_envelope"`
}

type Button

type Button struct {
	Type       string          `json:"type"`
	SubType    int64           `json:"sub_type"`
	Name       string          `json:"name"`
	SkipFormat int64           `json:"skip_format"`
	Params     Params          `json:"params"`
	Actionlog  ButtonActionlog `json:"actionlog"`
	Scheme     string          `json:"scheme"`
}

type ButtonActionlog

type ButtonActionlog struct {
	ActCode     string `json:"act_code"`
	Cardid      string `json:"cardid"`
	OID         string `json:"oid"`
	Featurecode string `json:"featurecode"`
	Mark        string `json:"mark"`
	EXT         string `json:"ext"`
	Luicode     string `json:"luicode"`
	Fid         string `json:"fid"`
	Lfid        string `json:"lfid"`
	Lcardid     string `json:"lcardid"`
}

type Card

type Card struct {
	CardType       int64       `json:"card_type"`
	CardStyle      *int64      `json:"card_style,omitempty"`
	DisplayArrow   *int64      `json:"display_arrow,omitempty"`
	SkipGroupTitle *bool       `json:"skip_group_title,omitempty"`
	CardGroup      []CardGroup `json:"card_group,omitempty"`
	Itemid         *string     `json:"itemid,omitempty"`
	Scheme         *string     `json:"scheme,omitempty"`
	Mblog          *Mblog      `json:"mblog,omitempty"`
}

type CardGroup

type CardGroup struct {
	CardType        int64               `json:"card_type"`
	Col             *int64              `json:"col,omitempty"`
	Group           []Group             `json:"group,omitempty"`
	Desc            *string             `json:"desc,omitempty"`
	Scheme          *string             `json:"scheme,omitempty"`
	Actionlog       *CardGroupActionlog `json:"actionlog,omitempty"`
	DisplayArrow    *int64              `json:"display_arrow,omitempty"`
	TitleExtraText  *string             `json:"title_extra_text,omitempty"`
	Itemid          *string             `json:"itemid,omitempty"`
	BackgroundColor *int64              `json:"background_color,omitempty"`
	Openurl         *string             `json:"openurl,omitempty"`
	RecomRemark     *string             `json:"recom_remark,omitempty"`
	Recommend       *string             `json:"recommend,omitempty"`
	Desc1           *string             `json:"desc1,omitempty"`
	Desc2           *string             `json:"desc2,omitempty"`
	User            *User               `json:"user,omitempty"`
	Buttons         []Button            `json:"buttons,omitempty"`
}

type CardGroupActionlog

type CardGroupActionlog struct {
	ActCode     string  `json:"act_code"`
	Cardid      string  `json:"cardid"`
	OID         *string `json:"oid,omitempty"`
	Featurecode *string `json:"featurecode,omitempty"`
	Mark        *string `json:"mark,omitempty"`
	EXT         *string `json:"ext,omitempty"`
	Uicode      *string `json:"uicode,omitempty"`
	Luicode     *string `json:"luicode,omitempty"`
	Fid         *string `json:"fid,omitempty"`
	Lfid        *string `json:"lfid,omitempty"`
	Lcardid     *string `json:"lcardid,omitempty"`
}

type CardlistInfo

type CardlistInfo struct {
	Containerid string `json:"containerid"`
	VP          int64  `json:"v_p"`
	ShowStyle   int64  `json:"show_style"`
	Total       int64  `json:"total"`
	SinceID     int64  `json:"since_id"`
}

type DarwinTag

type DarwinTag struct {
	ObjectType    string      `json:"object_type"`
	ObjectID      string      `json:"object_id"`
	DisplayName   string      `json:"display_name"`
	EnterpriseUid interface{} `json:"enterprise_uid"`
	PCURL         string      `json:"pc_url"`
	MAPIURL       string      `json:"mapi_url"`
	BdObjectType  string      `json:"bd_object_type"`
}

type Data

type Data struct {
	AvatarGuide  []interface{} `json:"avatar_guide"`
	IsStarStyle  int64         `json:"isStarStyle"`
	UserInfo     DataUserInfo  `json:"userInfo"`
	FansScheme   string        `json:"fans_scheme"`
	FollowScheme string        `json:"follow_scheme"`
	TabsInfo     TabsInfo      `json:"tabsInfo"`
	Scheme       string        `json:"scheme"`
	ShowAppTips  int64         `json:"showAppTips"`
}

type DataUserInfo

type DataUserInfo struct {
	ID              int64         `json:"id"`
	ScreenName      string        `json:"screen_name"`
	ProfileImageURL string        `json:"profile_image_url"`
	ProfileURL      string        `json:"profile_url"`
	StatusesCount   int64         `json:"statuses_count"`
	Verified        bool          `json:"verified"`
	VerifiedType    int64         `json:"verified_type"`
	VerifiedTypeEXT int64         `json:"verified_type_ext"`
	VerifiedReason  string        `json:"verified_reason"`
	CloseBlueV      bool          `json:"close_blue_v"`
	Description     string        `json:"description"`
	Gender          string        `json:"gender"`
	Mbtype          int64         `json:"mbtype"`
	Urank           int64         `json:"urank"`
	Mbrank          int64         `json:"mbrank"`
	FollowMe        bool          `json:"follow_me"`
	Following       bool          `json:"following"`
	FollowersCount  int64         `json:"followers_count"`
	FollowCount     int64         `json:"follow_count"`
	CoverImagePhone string        `json:"cover_image_phone"`
	AvatarHD        string        `json:"avatar_hd"`
	Like            bool          `json:"like"`
	LikeMe          bool          `json:"like_me"`
	ToolbarMenus    []ToolbarMenu `json:"toolbar_menus"`
}

type DisplayText

type DisplayText string

type Extparams

type Extparams struct {
	Followcardid interface{} `json:"followcardid"`
}

type FilterGroup

type FilterGroup struct {
	Name        string `json:"name"`
	Containerid string `json:"containerid"`
	Title       string `json:"title"`
	Scheme      string `json:"scheme"`
}

type FilterGroupInfo

type FilterGroupInfo struct {
	Title      string `json:"title"`
	Icon       string `json:"icon"`
	IconName   string `json:"icon_name"`
	IconScheme string `json:"icon_scheme"`
}

type FluffyGeo

type FluffyGeo struct {
	Width  int64 `json:"width"`
	Height int64 `json:"height"`
	Croped bool  `json:"croped"`
}

type FluffyPagePic

type FluffyPagePic struct {
	URL string `json:"url"`
}

type FocusPoint

type FocusPoint struct {
	Left   float64 `json:"left"`
	Top    float64 `json:"top"`
	Width  float64 `json:"width"`
	Height float64 `json:"height"`
}

type Gender

type Gender string
const (
	F Gender = "f"
	M Gender = "m"
)

type Group

type Group struct {
	TitleSub   string    `json:"title_sub"`
	WordScheme string    `json:"word_scheme"`
	Scheme     string    `json:"scheme"`
	ActionLog  ActionLog `json:"action_log"`
	Icon       *string   `json:"icon,omitempty"`
}

type Large

type Large struct {
	Size string   `json:"size"`
	URL  string   `json:"url"`
	Geo  LargeGeo `json:"geo"`
}

type LargeClass

type LargeClass struct {
	Size string   `json:"size"`
	URL  string   `json:"url"`
	Geo  LargeGeo `json:"geo"`
}

type LargeGeo

type LargeGeo struct {
	Width  string `json:"width"`
	Height string `json:"height"`
	Croped bool   `json:"croped"`
}

type ListPageDat

type ListPageDat struct {
	CardlistInfo CardlistInfo `json:"cardlistInfo"`
	Cards        []Card       `json:"cards"`
	Scheme       string       `json:"scheme"`
	ShowAppTips  int64        `json:"showAppTips"`
}

type Mblog

type Mblog struct {
	Visible                  *Visible         `json:"visible,omitempty"`
	CreatedAt                *string          `json:"created_at,omitempty"`
	ID                       *string          `json:"id,omitempty"`
	Mid                      *string          `json:"mid,omitempty"`
	EditCount                *int64           `json:"edit_count,omitempty"`
	CanEdit                  *bool            `json:"can_edit,omitempty"`
	EditAt                   *string          `json:"edit_at,omitempty"`
	Version                  *int64           `json:"version,omitempty"`
	ShowAdditionalIndication *int64           `json:"show_additional_indication,omitempty"`
	Text                     *string          `json:"text,omitempty"`
	TextLength               *int64           `json:"textLength,omitempty"`
	Source                   string           `json:"source,omitempty"`
	Favorited                *bool            `json:"favorited,omitempty"`
	PicIDS                   []string         `json:"pic_ids,omitempty"`
	PicTypes                 *string          `json:"pic_types,omitempty"`
	ThumbnailPic             *string          `json:"thumbnail_pic,omitempty"`
	BmiddlePic               *string          `json:"bmiddle_pic,omitempty"`
	OriginalPic              *string          `json:"original_pic,omitempty"`
	IsPaid                   *bool            `json:"is_paid,omitempty"`
	MblogVipType             *int64           `json:"mblog_vip_type,omitempty"`
	User                     *User            `json:"user,omitempty"`
	PicStatus                *string          `json:"picStatus,omitempty"`
	RepostsCount             *int64           `json:"reposts_count,omitempty"`
	CommentsCount            *int64           `json:"comments_count,omitempty"`
	AttitudesCount           *int64           `json:"attitudes_count,omitempty"`
	PendingApprovalCount     *int64           `json:"pending_approval_count,omitempty"`
	IsLongText               *bool            `json:"isLongText,omitempty"`
	RewardExhibitionType     *int64           `json:"reward_exhibition_type,omitempty"`
	HideFlag                 *int64           `json:"hide_flag,omitempty"`
	Mlevel                   *int64           `json:"mlevel,omitempty"`
	DarwinTags               []interface{}    `json:"darwin_tags,omitempty"`
	Mblogtype                *int64           `json:"mblogtype,omitempty"`
	Rid                      *string          `json:"rid,omitempty"`
	MoreInfoType             *int64           `json:"more_info_type,omitempty"`
	ExternSafe               *int64           `json:"extern_safe,omitempty"`
	ContentAuth              *int64           `json:"content_auth,omitempty"`
	SafeTags                 *int64           `json:"safe_tags,omitempty"`
	PicNum                   *int64           `json:"pic_num,omitempty"`
	AlchemyParams            *AlchemyParams   `json:"alchemy_params,omitempty"`
	MblogMenuNewStyle        *int64           `json:"mblog_menu_new_style,omitempty"`
	EditConfig               *MblogEditConfig `json:"edit_config,omitempty"`
	IsTop                    *int64           `json:"isTop,omitempty"`
	PageInfo                 *PageInfo        `json:"page_info,omitempty"`
	Pics                     []Pic            `json:"pics,omitempty"`
	Title                    *Title           `json:"title,omitempty"`
	Bid                      *string          `json:"bid,omitempty"`
	RetweetedStatus          *RetweetedStatus `json:"retweeted_status,omitempty"`
	RepostType               *int64           `json:"repost_type,omitempty"`
	RawText                  *string          `json:"raw_text,omitempty"`
	Fid                      *int64           `json:"fid,omitempty"`
}

type MblogEditConfig

type MblogEditConfig struct {
	Edited          bool             `json:"edited"`
	MenuEditHistory *MenuEditHistory `json:"menu_edit_history,omitempty"`
}

type MediaInfo

type MediaInfo struct {
	StreamURL   string  `json:"stream_url"`
	StreamURLHD string  `json:"stream_url_hd"`
	Duration    float64 `json:"duration"`
}
type MenuEditHistory struct {
	Scheme string `json:"scheme"`
	Title  string `json:"title"`
}
type MenuList struct {
	Type      string         `json:"type"`
	Name      string         `json:"name"`
	Params    MenuListParams `json:"params"`
	Actionlog Actionlog      `json:"actionlog"`
	Scheme    string         `json:"scheme"`
}
type MenuListParams struct {
	Scheme string `json:"scheme"`
}

type NumberDisplayStrategy

type NumberDisplayStrategy struct {
	ApplyScenarioFlag    int64       `json:"apply_scenario_flag"`
	DisplayTextMinNumber int64       `json:"display_text_min_number"`
	DisplayText          DisplayText `json:"display_text"`
}

type PageInfo

type PageInfo struct {
	Type             string     `json:"type"`
	ObjectType       int64      `json:"object_type"`
	PagePic          PagePic    `json:"page_pic"`
	PageURL          string     `json:"page_url"`
	PageTitle        string     `json:"page_title"`
	Content1         string     `json:"content1"`
	URLOri           *string    `json:"url_ori,omitempty"`
	ObjectID         *string    `json:"object_id,omitempty"`
	Title            *string    `json:"title,omitempty"`
	Content2         *string    `json:"content2,omitempty"`
	VideoOrientation *string    `json:"video_orientation,omitempty"`
	PlayCount        *string    `json:"play_count,omitempty"`
	MediaInfo        *MediaInfo `json:"media_info,omitempty"`
	Urls             *Urls      `json:"urls,omitempty"`
}

type PagePic

type PagePic struct {
	URL         string  `json:"url"`
	Width       *int64  `json:"width,omitempty"`
	PID         *string `json:"pid,omitempty"`
	Source      *int64  `json:"source,omitempty"`
	IsSelfCover *int64  `json:"is_self_cover,omitempty"`
	Type        *int64  `json:"type,omitempty"`
	Height      *int64  `json:"height,omitempty"`
}

type Params

type Params struct {
	Uid            int64  `json:"uid"`
	NeedFollow     int64  `json:"need_follow"`
	TrendEXT       string `json:"trend_ext"`
	TrendType      int64  `json:"trend_type"`
	Itemid         int64  `json:"itemid"`
	AllowReplenish int64  `json:"allow_replenish"`
	APIType        string `json:"api_type"`
}

type Pic

type Pic struct {
	PID   string `json:"pid"`
	URL   string `json:"url"`
	Size  string `json:"size"`
	Geo   PicGeo `json:"geo"`
	Large Large  `json:"large"`
}

type PicFocusPoint

type PicFocusPoint struct {
	FocusPoint FocusPoint `json:"focus_point"`
	PicID      string     `json:"pic_id"`
}

type PicGeo

type PicGeo struct {
	Width  int64 `json:"width"`
	Height int64 `json:"height"`
	Croped bool  `json:"croped"`
}

type PurpleGeo

type PurpleGeo struct {
	Croped bool `json:"croped"`
}

type PurplePagePic

type PurplePagePic struct {
	URL         string  `json:"url"`
	Width       *int64  `json:"width,omitempty"`
	Height      *int64  `json:"height,omitempty"`
	PID         *string `json:"pid,omitempty"`
	Source      *int64  `json:"source,omitempty"`
	IsSelfCover *int64  `json:"is_self_cover,omitempty"`
	Type        *int64  `json:"type,omitempty"`
}

type RetweetedStatus

type RetweetedStatus struct {
	Visible                  Visible                   `json:"visible"`
	CreatedAt                string                    `json:"created_at"`
	ID                       string                    `json:"id"`
	Mid                      string                    `json:"mid"`
	CanEdit                  bool                      `json:"can_edit"`
	ShowAdditionalIndication int64                     `json:"show_additional_indication"`
	Text                     string                    `json:"text"`
	TextLength               int64                     `json:"textLength"`
	Source                   string                    `json:"source"`
	Favorited                bool                      `json:"favorited"`
	PicIDS                   []interface{}             `json:"pic_ids"`
	PicTypes                 string                    `json:"pic_types"`
	IsPaid                   bool                      `json:"is_paid"`
	MblogVipType             int64                     `json:"mblog_vip_type"`
	User                     User                      `json:"user"`
	RepostsCount             int64                     `json:"reposts_count"`
	CommentsCount            int64                     `json:"comments_count"`
	AttitudesCount           int64                     `json:"attitudes_count"`
	PendingApprovalCount     int64                     `json:"pending_approval_count"`
	IsLongText               bool                      `json:"isLongText"`
	RewardExhibitionType     int64                     `json:"reward_exhibition_type"`
	HideFlag                 int64                     `json:"hide_flag"`
	Mlevel                   int64                     `json:"mlevel"`
	DarwinTags               []interface{}             `json:"darwin_tags"`
	Mblogtype                int64                     `json:"mblogtype"`
	Rid                      string                    `json:"rid"`
	MoreInfoType             int64                     `json:"more_info_type"`
	ContentAuth              int64                     `json:"content_auth"`
	PicNum                   int64                     `json:"pic_num"`
	EditConfig               RetweetedStatusEditConfig `json:"edit_config"`
	PageInfo                 PageInfo                  `json:"page_info"`
	Bid                      string                    `json:"bid"`
}

type RetweetedStatusEditConfig

type RetweetedStatusEditConfig struct {
	Edited bool `json:"edited"`
}

type RetweetedStatusPageInfo

type RetweetedStatusPageInfo struct {
	Type       string        `json:"type"`
	ObjectType int64         `json:"object_type"`
	PagePic    FluffyPagePic `json:"page_pic"`
	PageURL    string        `json:"page_url"`
	PageTitle  string        `json:"page_title"`
	Content1   string        `json:"content1"`
	Content2   string        `json:"content2"`
}

type RetweetedStatusPic

type RetweetedStatusPic struct {
	PID   string     `json:"pid"`
	URL   string     `json:"url"`
	Size  string     `json:"size"`
	Geo   FluffyGeo  `json:"geo"`
	Large LargeClass `json:"large"`
}

type RetweetedStatusUser

type RetweetedStatusUser struct {
	ID              int64            `json:"id"`
	ScreenName      string           `json:"screen_name"`
	ProfileImageURL string           `json:"profile_image_url"`
	ProfileURL      string           `json:"profile_url"`
	StatusesCount   int64            `json:"statuses_count"`
	Verified        bool             `json:"verified"`
	VerifiedType    int64            `json:"verified_type"`
	VerifiedTypeEXT int64            `json:"verified_type_ext"`
	VerifiedReason  string           `json:"verified_reason"`
	CloseBlueV      bool             `json:"close_blue_v"`
	Description     string           `json:"description"`
	Gender          Gender           `json:"gender"`
	Mbtype          int64            `json:"mbtype"`
	Urank           int64            `json:"urank"`
	Mbrank          int64            `json:"mbrank"`
	FollowMe        bool             `json:"follow_me"`
	Following       bool             `json:"following"`
	FollowersCount  int64            `json:"followers_count"`
	FollowCount     int64            `json:"follow_count"`
	CoverImagePhone string           `json:"cover_image_phone"`
	AvatarHD        string           `json:"avatar_hd"`
	Like            bool             `json:"like"`
	LikeMe          bool             `json:"like_me"`
	Badge           map[string]int64 `json:"badge"`
}

type Status

type Status struct {
	Visible                  Visible                `json:"visible"`
	CreatedAt                string                 `json:"created_at"`
	ID                       string                 `json:"id"`
	Mid                      string                 `json:"mid"`
	CanEdit                  bool                   `json:"can_edit"`
	Version                  *int64                 `json:"version,omitempty"`
	ShowAdditionalIndication int64                  `json:"show_additional_indication"`
	Text                     string                 `json:"text"`
	TextLength               *int64                 `json:"textLength,omitempty"`
	Source                   string                 `json:"source"`
	Favorited                bool                   `json:"favorited"`
	PicIDS                   []string               `json:"pic_ids"`
	PicTypes                 string                 `json:"pic_types"`
	ThumbnailPic             *string                `json:"thumbnail_pic,omitempty"`
	BmiddlePic               *string                `json:"bmiddle_pic,omitempty"`
	OriginalPic              *string                `json:"original_pic,omitempty"`
	IsPaid                   bool                   `json:"is_paid"`
	MblogVipType             int64                  `json:"mblog_vip_type"`
	User                     StatusUser             `json:"user"`
	PicStatus                *string                `json:"picStatus,omitempty"`
	RepostsCount             int64                  `json:"reposts_count"`
	CommentsCount            int64                  `json:"comments_count"`
	AttitudesCount           int64                  `json:"attitudes_count"`
	PendingApprovalCount     int64                  `json:"pending_approval_count"`
	IsLongText               bool                   `json:"isLongText"`
	RewardExhibitionType     int64                  `json:"reward_exhibition_type"`
	HideFlag                 int64                  `json:"hide_flag"`
	Mlevel                   int64                  `json:"mlevel"`
	DarwinTags               []DarwinTag            `json:"darwin_tags"`
	Mblogtype                int64                  `json:"mblogtype"`
	Rid                      string                 `json:"rid"`
	MoreInfoType             int64                  `json:"more_info_type"`
	EnableCommentGuide       *bool                  `json:"enable_comment_guide,omitempty"`
	ContentAuth              int64                  `json:"content_auth"`
	PicNum                   int64                  `json:"pic_num"`
	AlchemyParams            AlchemyParams          `json:"alchemy_params"`
	PageInfo                 *StatusPageInfo        `json:"page_info,omitempty"`
	Pics                     []StatusPic            `json:"pics,omitempty"`
	Bid                      string                 `json:"bid"`
	EditCount                *int64                 `json:"edit_count,omitempty"`
	EditAt                   *string                `json:"edit_at,omitempty"`
	PicFocusPoint            []PicFocusPoint        `json:"pic_focus_point,omitempty"`
	PicRectangleObject       []interface{}          `json:"pic_rectangle_object,omitempty"`
	PicFlag                  *int64                 `json:"pic_flag,omitempty"`
	TopicID                  *string                `json:"topic_id,omitempty"`
	SyncMblog                *bool                  `json:"sync_mblog,omitempty"`
	IsImportedTopic          *bool                  `json:"is_imported_topic,omitempty"`
	Cardid                   *string                `json:"cardid,omitempty"`
	NumberDisplayStrategy    *NumberDisplayStrategy `json:"number_display_strategy,omitempty"`
	RewardScheme             *string                `json:"reward_scheme,omitempty"`
	PID                      *int64                 `json:"pid,omitempty"`
	Pidstr                   *string                `json:"pidstr,omitempty"`
	RetweetedStatus          *RetweetedStatus       `json:"retweeted_status,omitempty"`
	RepostType               *int64                 `json:"repost_type,omitempty"`
	RawText                  *string                `json:"raw_text,omitempty"`
	SafeTags                 *int64                 `json:"safe_tags,omitempty"`
	Fid                      *int64                 `json:"fid,omitempty"`
}

type StatusPageInfo

type StatusPageInfo struct {
	Type             string        `json:"type"`
	ObjectType       int64         `json:"object_type"`
	PagePic          PurplePagePic `json:"page_pic"`
	PageURL          string        `json:"page_url"`
	PageTitle        string        `json:"page_title"`
	Content1         string        `json:"content1"`
	URLOri           *string       `json:"url_ori,omitempty"`
	ObjectID         *string       `json:"object_id,omitempty"`
	Title            *string       `json:"title,omitempty"`
	Content2         *string       `json:"content2,omitempty"`
	VideoOrientation *string       `json:"video_orientation,omitempty"`
	PlayCount        *string       `json:"play_count,omitempty"`
	MediaInfo        *MediaInfo    `json:"media_info,omitempty"`
	Urls             *Urls         `json:"urls,omitempty"`
}

type StatusPic

type StatusPic struct {
	PID   string     `json:"pid"`
	URL   string     `json:"url"`
	Size  string     `json:"size"`
	Geo   PurpleGeo  `json:"geo"`
	Large LargeClass `json:"large"`
}

type StatusUser

type StatusUser struct {
	ID              int64            `json:"id"`
	ScreenName      string           `json:"screen_name"`
	ProfileImageURL string           `json:"profile_image_url"`
	ProfileURL      string           `json:"profile_url"`
	StatusesCount   int64            `json:"statuses_count"`
	Verified        bool             `json:"verified"`
	VerifiedType    int64            `json:"verified_type"`
	VerifiedTypeEXT *int64           `json:"verified_type_ext,omitempty"`
	VerifiedReason  *string          `json:"verified_reason,omitempty"`
	CloseBlueV      bool             `json:"close_blue_v"`
	Description     string           `json:"description"`
	Gender          Gender           `json:"gender"`
	Mbtype          int64            `json:"mbtype"`
	Urank           int64            `json:"urank"`
	Mbrank          int64            `json:"mbrank"`
	FollowMe        bool             `json:"follow_me"`
	Following       bool             `json:"following"`
	FollowersCount  int64            `json:"followers_count"`
	FollowCount     int64            `json:"follow_count"`
	CoverImagePhone string           `json:"cover_image_phone"`
	AvatarHD        string           `json:"avatar_hd"`
	Like            bool             `json:"like"`
	LikeMe          bool             `json:"like_me"`
	Badge           map[string]int64 `json:"badge"`
	Remark          *string          `json:"remark,omitempty"`
}

type Tab

type Tab struct {
	ID              int64            `json:"id"`
	TabKey          string           `json:"tabKey"`
	MustShow        int64            `json:"must_show"`
	Hidden          int64            `json:"hidden"`
	Title           string           `json:"title"`
	TabType         string           `json:"tab_type"`
	Containerid     string           `json:"containerid"`
	Apipath         *string          `json:"apipath,omitempty"`
	URL             *string          `json:"url,omitempty"`
	FilterGroup     []FilterGroup    `json:"filter_group,omitempty"`
	FilterGroupInfo *FilterGroupInfo `json:"filter_group_info,omitempty"`
}

type TabsInfo

type TabsInfo struct {
	SelectedTab int64 `json:"selectedTab"`
	Tabs        []Tab `json:"tabs"`
}

type TimeLineData

type TimeLineData struct {
	Statuses          []Status      `json:"statuses"`
	Advertises        []interface{} `json:"advertises"`
	Ad                []interface{} `json:"ad"`
	Hasvisible        bool          `json:"hasvisible"`
	PreviousCursor    int64         `json:"previous_cursor"`
	NextCursor        int64         `json:"next_cursor"`
	PreviousCursorStr string        `json:"previous_cursor_str"`
	NextCursorStr     string        `json:"next_cursor_str"`
	TotalNumber       int64         `json:"total_number"`
	Interval          int64         `json:"interval"`
	UveBlank          int64         `json:"uve_blank"`
	SinceID           int64         `json:"since_id"`
	SinceIDStr        string        `json:"since_id_str"`
	MaxID             int64         `json:"max_id"`
	MaxIDStr          string        `json:"max_id_str"`
	HasUnread         int64         `json:"has_unread"`
}

type Title

type Title struct {
	Text      string `json:"text"`
	BaseColor int64  `json:"base_color"`
}

type ToolbarMenu

type ToolbarMenu struct {
	Type      string               `json:"type"`
	Name      string               `json:"name"`
	Params    ToolbarMenuParams    `json:"params"`
	Actionlog Actionlog            `json:"actionlog"`
	UserInfo  *ToolbarMenuUserInfo `json:"userInfo,omitempty"`
	SubType   *int64               `json:"sub_type,omitempty"`
	Scheme    *string              `json:"scheme,omitempty"`
}

type ToolbarMenuParams

type ToolbarMenuParams struct {
	Uid       *int64     `json:"uid,omitempty"`
	Extparams *Extparams `json:"extparams,omitempty"`
	Scheme    *string    `json:"scheme,omitempty"`
	MenuList  []MenuList `json:"menu_list,omitempty"`
}

type ToolbarMenuUserInfo

type ToolbarMenuUserInfo struct {
	ID              int64  `json:"id"`
	Idstr           string `json:"idstr"`
	ScreenName      string `json:"screen_name"`
	ProfileImageURL string `json:"profile_image_url"`
	Following       bool   `json:"following"`
	Verified        bool   `json:"verified"`
	VerifiedType    int64  `json:"verified_type"`
	Remark          string `json:"remark"`
	AvatarLarge     string `json:"avatar_large"`
	AvatarHD        string `json:"avatar_hd"`
	VerifiedTypeEXT int64  `json:"verified_type_ext"`
	FollowMe        bool   `json:"follow_me"`
	Mbtype          int64  `json:"mbtype"`
	Mbrank          int64  `json:"mbrank"`
	Level           int64  `json:"level"`
	Type            int64  `json:"type"`
	StoryReadState  int64  `json:"story_read_state"`
	AllowMsg        int64  `json:"allow_msg"`
	SpecialFollow   bool   `json:"special_follow"`
}

type Urls

type Urls struct {
	Mp4720PMp4 string  `json:"mp4_720p_mp4"`
	Mp4HDMp4   string  `json:"mp4_hd_mp4"`
	Mp4LdMp4   string  `json:"mp4_ld_mp4"`
	HevcMp4HD  *string `json:"hevc_mp4_hd,omitempty"`
}

type User

type User struct {
	ID              int64            `json:"id"`
	ScreenName      string           `json:"screen_name"`
	ProfileImageURL string           `json:"profile_image_url"`
	ProfileURL      string           `json:"profile_url"`
	StatusesCount   *int64           `json:"statuses_count"`
	Verified        bool             `json:"verified"`
	VerifiedType    int64            `json:"verified_type"`
	VerifiedTypeEXT int64            `json:"verified_type_ext"`
	VerifiedReason  string           `json:"verified_reason"`
	CloseBlueV      bool             `json:"close_blue_v"`
	Description     string           `json:"description"`
	Gender          Gender           `json:"gender"`
	Mbtype          *int64           `json:"mbtype"`
	Urank           *int64           `json:"urank"`
	Mbrank          *int64           `json:"mbrank"`
	FollowMe        *bool            `json:"follow_me"`
	Following       *bool            `json:"following"`
	FollowersCount  int64            `json:"followers_count"`
	FollowCount     int64            `json:"follow_count"`
	CoverImagePhone string           `json:"cover_image_phone"`
	AvatarHD        string           `json:"avatar_hd"`
	Desc1           *string          `json:"desc1,omitempty"`
	Desc2           interface{}      `json:"desc2"`
	Like            *bool            `json:"like,omitempty"`
	LikeMe          *bool            `json:"like_me,omitempty"`
	Badge           map[string]int64 `json:"badge,omitempty"`
}

type Visible

type Visible struct {
	Type   int64 `json:"type"`
	ListID int64 `json:"list_id"`
}

type WeiboAPI

type WeiboAPI struct {
	// contains filtered or unexported fields
}

func NewWeiboAPI

func NewWeiboAPI() *WeiboAPI

NewWeiboAPI to create api instance for weibo

func (*WeiboAPI) GetContainerId

func (api *WeiboAPI) GetContainerId(uid string) (string, error)

GetContainerId of uid

func (*WeiboAPI) GetTimeLine

func (api *WeiboAPI) GetTimeLine(cookieSub string, recentBlogId string) (*WeiboTimeLine, error)

GetTimeLine for current user, need the 'SUB' part of cookie

func (*WeiboAPI) GetUserPagesIndex

func (api *WeiboAPI) GetUserPagesIndex(uid string, page int) (*WeiboUserListPageIndex, error)

type WeiboTimeLine

type WeiboTimeLine struct {
	Data     TimeLineData `json:"data"`
	Ok       int64        `json:"ok"`
	HTTPCode int64        `json:"http_code"`
}

func UnmarshalWeiboTimeLine

func UnmarshalWeiboTimeLine(data []byte) (WeiboTimeLine, error)

func (*WeiboTimeLine) Marshal

func (r *WeiboTimeLine) Marshal() ([]byte, error)

type WeiboUserIndex

type WeiboUserIndex struct {
	Ok   int64 `json:"ok"`
	Data Data  `json:"data"`
}

func UnmarshalWeiboUserIndex

func UnmarshalWeiboUserIndex(data []byte) (WeiboUserIndex, error)

func (*WeiboUserIndex) Marshal

func (r *WeiboUserIndex) Marshal() ([]byte, error)

type WeiboUserListPageIndex

type WeiboUserListPageIndex struct {
	Ok   int64       `json:"ok"`
	Data ListPageDat `json:"data"`
}

func UnmarshalWeiboUserListPageIndex

func UnmarshalWeiboUserListPageIndex(data []byte) (WeiboUserListPageIndex, error)

func (*WeiboUserListPageIndex) Marshal

func (r *WeiboUserListPageIndex) Marshal() ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL