Properties

$category

$category

消息分类,请传入对应分类编码值

$content

$content

消息正文,html原文或纯文本

$cover

$cover

消息背景图片(目前支持格式jpg, jpeg, bmp),需上传图片原始二进制流,图片最大1MB

$desc

$desc

消息概述

$msgType

$msgType

媒体资讯类生活号消息类型

$sourceExtInfo

$sourceExtInfo

消息来源方附属信息,供搜索、推荐使用 publish_time(int):消息发布时间,单位秒 keyword_list(String): 文章的标签列表,英文逗号分隔 comment(int):消息来源处评论次数 reward(int):消息来源处打赏次数 is_recommended(boolean):消息在来源处是否被推荐 is_news(boolean):消息是否实时性内容 read(int):消息在来源处被阅读次数 like(int):消息在来源处被点赞次数 is_hot(boolean):消息在来源平台是否是热门内容 share(int):文章在来源平台的分享次数 deadline(int):文章的失效时间,单位秒

$title

$title

消息标题

$uniqueMsgId

$uniqueMsgId

来源方消息唯一标识;若不为空,根据此id和生活号id对消息去重;若为空,不去重

$videoLength

$videoLength

生活号消息视频时长,单位:秒(视频类消息必填)

$videoSamples

$videoSamples

视频类型消息中视频抽样关键帧截图,视频类消息选填

$videoSize

$videoSize

视频大小,单位:KB(视频类消息必填)

$videoSource

$videoSource

视频资源来源id(视频类消息必填),取值限定youku, miaopai, taobao, sina中的一个

$videoTemporaryUrl

$videoTemporaryUrl

视频的临时链接(优酷来源的视频消息,该字段不能为空)

$videoUrl

$videoUrl

生活号视频类消息视频id或url(视频类消息必填,根据来源区分)

$apiParas

$apiParas

$terminalType

$terminalType

$terminalInfo

$terminalInfo

$prodCode

$prodCode

$apiVersion

$apiVersion

$notifyUrl

$notifyUrl

$returnUrl

$returnUrl

$needEncrypt

$needEncrypt

Methods

setCategory()

setCategory(mixed  $category) : mixed

Parameters

mixed $category

Returns

mixed —

getCategory()

getCategory() : mixed

Returns

mixed —

setContent()

setContent(mixed  $content) : mixed

Parameters

mixed $content

Returns

mixed —

getContent()

getContent() : mixed

Returns

mixed —

setCover()

setCover(mixed  $cover) : mixed

Parameters

mixed $cover

Returns

mixed —

getCover()

getCover() : mixed

Returns

mixed —

setDesc()

setDesc(mixed  $desc) : mixed

Parameters

mixed $desc

Returns

mixed —

getDesc()

getDesc() : mixed

Returns

mixed —

setMsgType()

setMsgType(mixed  $msgType) : mixed

Parameters

mixed $msgType

Returns

mixed —

getMsgType()

getMsgType() : mixed

Returns

mixed —

setSourceExtInfo()

setSourceExtInfo(mixed  $sourceExtInfo) : mixed

Parameters

mixed $sourceExtInfo

Returns

mixed —

getSourceExtInfo()

getSourceExtInfo() : mixed

Returns

mixed —

setTitle()

setTitle(mixed  $title) : mixed

Parameters

mixed $title

Returns

mixed —

getTitle()

getTitle() : mixed

Returns

mixed —

setUniqueMsgId()

setUniqueMsgId(mixed  $uniqueMsgId) : mixed

Parameters

mixed $uniqueMsgId

Returns

mixed —

getUniqueMsgId()

getUniqueMsgId() : mixed

Returns

mixed —

setVideoLength()

setVideoLength(mixed  $videoLength) : mixed

Parameters

mixed $videoLength

Returns

mixed —

getVideoLength()

getVideoLength() : mixed

Returns

mixed —

setVideoSamples()

setVideoSamples(mixed  $videoSamples) : mixed

Parameters

mixed $videoSamples

Returns

mixed —

getVideoSamples()

getVideoSamples() : mixed

Returns

mixed —

setVideoSize()

setVideoSize(mixed  $videoSize) : mixed

Parameters

mixed $videoSize

Returns

mixed —

getVideoSize()

getVideoSize() : mixed

Returns

mixed —

setVideoSource()

setVideoSource(mixed  $videoSource) : mixed

Parameters

mixed $videoSource

Returns

mixed —

getVideoSource()

getVideoSource() : mixed

Returns

mixed —

setVideoTemporaryUrl()

setVideoTemporaryUrl(mixed  $videoTemporaryUrl) : mixed

Parameters

mixed $videoTemporaryUrl

Returns

mixed —

getVideoTemporaryUrl()

getVideoTemporaryUrl() : mixed

Returns

mixed —

setVideoUrl()

setVideoUrl(mixed  $videoUrl) : mixed

Parameters

mixed $videoUrl

Returns

mixed —

getVideoUrl()

getVideoUrl() : mixed

Returns

mixed —

getApiMethodName()

getApiMethodName() : mixed

Returns

mixed —

setNotifyUrl()

setNotifyUrl(mixed  $notifyUrl) : mixed

Parameters

mixed $notifyUrl

Returns

mixed —

getNotifyUrl()

getNotifyUrl() : mixed

Returns

mixed —

setReturnUrl()

setReturnUrl(mixed  $returnUrl) : mixed

Parameters

mixed $returnUrl

Returns

mixed —

getReturnUrl()

getReturnUrl() : mixed

Returns

mixed —

getApiParas()

getApiParas() : mixed

Returns

mixed —

getTerminalType()

getTerminalType() : mixed

Returns

mixed —

setTerminalType()

setTerminalType(mixed  $terminalType) : mixed

Parameters

mixed $terminalType

Returns

mixed —

getTerminalInfo()

getTerminalInfo() : mixed

Returns

mixed —

setTerminalInfo()

setTerminalInfo(mixed  $terminalInfo) : mixed

Parameters

mixed $terminalInfo

Returns

mixed —

getProdCode()

getProdCode() : mixed

Returns

mixed —

setProdCode()

setProdCode(mixed  $prodCode) : mixed

Parameters

mixed $prodCode

Returns

mixed —

setApiVersion()

setApiVersion(mixed  $apiVersion) : mixed

Parameters

mixed $apiVersion

Returns

mixed —

getApiVersion()

getApiVersion() : mixed

Returns

mixed —

setNeedEncrypt()

setNeedEncrypt(mixed  $needEncrypt) : mixed

Parameters

mixed $needEncrypt

Returns

mixed —

getNeedEncrypt()

getNeedEncrypt() : mixed

Returns

mixed —