baichuanctg

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaBaichuanCtgToutiaoContentAPIResponse

type AlibabaBaichuanCtgToutiaoContentAPIResponse struct {
	model.CommonResponse
	AlibabaBaichuanCtgToutiaoContentResponse
}

微博输出头条数据 API返回值 alibaba.baichuan.ctg.toutiao.content

百川头条内容获取

type AlibabaBaichuanCtgToutiaoContentData

type AlibabaBaichuanCtgToutiaoContentData struct {
	// 内容标题
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 内容发布时间
	PublishTime string `json:"publish_time,omitempty" xml:"publish_time,omitempty"`
	// 内容来源:头条
	Source string `json:"source,omitempty" xml:"source,omitempty"`
	// 内容概要描述
	Summary string `json:"summary,omitempty" xml:"summary,omitempty"`
	// 内容封面图
	CoverUrl string `json:"cover_url,omitempty" xml:"cover_url,omitempty"`
	// 内容链接(可能为空)
	ContentUrl string `json:"content_url,omitempty" xml:"content_url,omitempty"`
	// 内容来源说明
	OrgSource string `json:"org_source,omitempty" xml:"org_source,omitempty"`
	// 达人nick
	Nick string `json:"nick,omitempty" xml:"nick,omitempty"`
	// 微博大V账户id
	WbUid string `json:"wb_uid,omitempty" xml:"wb_uid,omitempty"`
	// 内容创建时间
	CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"`
	// 返回的埋点参数
	Ybhpss string `json:"ybhpss,omitempty" xml:"ybhpss,omitempty"`
	// 内容正文信息
	Body string `json:"body,omitempty" xml:"body,omitempty"`
	// 内容修改时间
	ModifiedTime string `json:"modified_time,omitempty" xml:"modified_time,omitempty"`
	// 返回商品列表信息
	ItemUrlList string `json:"item_url_list,omitempty" xml:"item_url_list,omitempty"`
	// 内容id
	ContentId string `json:"content_id,omitempty" xml:"content_id,omitempty"`
	// 淘宝达人id
	TbUid string `json:"tb_uid,omitempty" xml:"tb_uid,omitempty"`
}

AlibabaBaichuanCtgToutiaoContentData

type AlibabaBaichuanCtgToutiaoContentRequest

type AlibabaBaichuanCtgToutiaoContentRequest struct {
	model.Params
	// contains filtered or unexported fields
}

微博输出头条数据 API请求 alibaba.baichuan.ctg.toutiao.content

百川头条内容获取

func NewAlibabaBaichuanCtgToutiaoContentRequest

func NewAlibabaBaichuanCtgToutiaoContentRequest() *AlibabaBaichuanCtgToutiaoContentRequest

初始化AlibabaBaichuanCtgToutiaoContentRequest对象

func (AlibabaBaichuanCtgToutiaoContentRequest) GetApiMethodName

func (r AlibabaBaichuanCtgToutiaoContentRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaBaichuanCtgToutiaoContentRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaBaichuanCtgToutiaoContentRequest) GetParam0

Param0 Getter

func (*AlibabaBaichuanCtgToutiaoContentRequest) SetParam0

Param0 Setter param0

type AlibabaBaichuanCtgToutiaoContentResponse

type AlibabaBaichuanCtgToutiaoContentResponse struct {
	XMLName xml.Name `xml:"alibaba_baichuan_ctg_toutiao_content_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 内容总体结构
	Result *CtgResponse `json:"result,omitempty" xml:"result,omitempty"`
}

微博输出头条数据 成功返回结果

type CtgRequest

type CtgRequest struct {
	// delivery_id
	DeliveryId string `json:"delivery_id,omitempty" xml:"delivery_id,omitempty"`
	// page_size
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// current_page
	CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"`
	// res_id
	ResId string `json:"res_id,omitempty" xml:"res_id,omitempty"`
	// app_key
	BusinessAppKey string `json:"business_app_key,omitempty" xml:"business_app_key,omitempty"`
	// date
	Date string `json:"date,omitempty" xml:"date,omitempty"`
}

CtgRequest

type CtgResponse

type CtgResponse struct {
	// 返回错误信息
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 是否包含下一页数据
	HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 数据列表
	DataList []AlibabaBaichuanCtgToutiaoContentData `json:"data_list,omitempty" xml:"data_list>alibaba_baichuan_ctg_toutiao_content_data,omitempty"`
	// 处理成功与否
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

CtgResponse

Jump to

Keyboard shortcuts

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