Documentation ¶
Index ¶
- type ActionLog
- type Actionlog
- type AlchemyParams
- type Button
- type ButtonActionlog
- type Card
- type CardGroup
- type CardGroupActionlog
- type CardlistInfo
- type DarwinTag
- type Data
- type DataUserInfo
- type DisplayText
- type Extparams
- type FilterGroup
- type FilterGroupInfo
- type FluffyGeo
- type FluffyPagePic
- type FocusPoint
- type Gender
- type Group
- type Large
- type LargeClass
- type LargeGeo
- type ListPageDat
- type Mblog
- type MblogEditConfig
- type MediaInfo
- type MenuEditHistory
- type MenuList
- type MenuListParams
- type NumberDisplayStrategy
- type PageInfo
- type PagePic
- type Params
- type Pic
- type PicFocusPoint
- type PicGeo
- type PurpleGeo
- type PurplePagePic
- type RetweetedStatus
- type RetweetedStatusEditConfig
- type RetweetedStatusPageInfo
- type RetweetedStatusPic
- type RetweetedStatusUser
- type Status
- type StatusPageInfo
- type StatusPic
- type StatusUser
- type Tab
- type TabsInfo
- type TimeLineData
- type Title
- type ToolbarMenu
- type ToolbarMenuParams
- type ToolbarMenuUserInfo
- type Urls
- type User
- type Visible
- type WeiboAPI
- type WeiboTimeLine
- type WeiboUserIndex
- type WeiboUserListPageIndex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlchemyParams ¶
type AlchemyParams struct {
UgRedEnvelope bool `json:"ug_red_envelope"`
}
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 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 FilterGroup ¶
type FilterGroupInfo ¶
type FluffyPagePic ¶
type FluffyPagePic struct {
URL string `json:"url"`
}
type FocusPoint ¶
type LargeClass ¶
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 MenuEditHistory ¶
type MenuList ¶
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 ¶
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 PicFocusPoint ¶
type PicFocusPoint struct { FocusPoint FocusPoint `json:"focus_point"` PicID string `json:"pic_id"` }
type PurplePagePic ¶
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 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 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 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 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 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 WeiboAPI ¶
type WeiboAPI struct {
// contains filtered or unexported fields
}
func (*WeiboAPI) GetContainerId ¶
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.