\Alipay\EasySDK\Marketing\OpenLifeClient

Summary

Methods
Properties
Constants
__construct()
createImageTextContent()
modifyImageTextContent()
sendText()
sendImageText()
sendSingleMessage()
recallMessage()
setIndustry()
getIndustry()
agent()
auth()
asyncNotify()
route()
optional()
batchOptional()
No public properties found
No constants found
No protected methods found
$_kernel
N/A
No private methods found
No private properties found
N/A

Properties

$_kernel

$_kernel

Methods

__construct()

__construct(mixed  $kernel) : mixed

Parameters

mixed $kernel

Returns

mixed —

createImageTextContent()

createImageTextContent(string  $title, string  $cover, string  $content, string  $contentComment, string  $ctype, string  $benefit, string  $extTags, string  $loginIds) : \Alipay\EasySDK\Marketing\OpenLife\Models\AlipayOpenPublicMessageContentCreateResponse

Parameters

string $title
string $cover
string $content
string $contentComment
string $ctype
string $benefit
string $extTags
string $loginIds

Throws

\AlibabaCloud\Tea\Exception\TeaError
\Exception
\AlibabaCloud\Tea\Exception\TeaUnableRetryError

Returns

\Alipay\EasySDK\Marketing\OpenLife\Models\AlipayOpenPublicMessageContentCreateResponse —

modifyImageTextContent()

modifyImageTextContent(string  $contentId, string  $title, string  $cover, string  $content, string  $couldComment, string  $ctype, string  $benefit, string  $extTags, string  $loginIds) : \Alipay\EasySDK\Marketing\OpenLife\Models\AlipayOpenPublicMessageContentModifyResponse

Parameters

string $contentId
string $title
string $cover
string $content
string $couldComment
string $ctype
string $benefit
string $extTags
string $loginIds

Throws

\AlibabaCloud\Tea\Exception\TeaError
\Exception
\AlibabaCloud\Tea\Exception\TeaUnableRetryError

Returns

\Alipay\EasySDK\Marketing\OpenLife\Models\AlipayOpenPublicMessageContentModifyResponse —

sendText()

sendText(string  $text) : \Alipay\EasySDK\Marketing\OpenLife\Models\AlipayOpenPublicMessageTotalSendResponse

Parameters

string $text

Throws

\AlibabaCloud\Tea\Exception\TeaError
\Exception
\AlibabaCloud\Tea\Exception\TeaUnableRetryError

Returns

\Alipay\EasySDK\Marketing\OpenLife\Models\AlipayOpenPublicMessageTotalSendResponse —

sendImageText()

sendImageText(\Alipay\EasySDK\Marketing\OpenLife\Models\Article[]  $articles) : \Alipay\EasySDK\Marketing\OpenLife\Models\AlipayOpenPublicMessageTotalSendResponse

Parameters

\Alipay\EasySDK\Marketing\OpenLife\Models\Article[] $articles

Throws

\AlibabaCloud\Tea\Exception\TeaError
\Exception
\AlibabaCloud\Tea\Exception\TeaUnableRetryError

Returns

\Alipay\EasySDK\Marketing\OpenLife\Models\AlipayOpenPublicMessageTotalSendResponse —

sendSingleMessage()

sendSingleMessage(string  $toUserId, \Alipay\EasySDK\Marketing\OpenLife\Models\Template  $template) : \Alipay\EasySDK\Marketing\OpenLife\Models\AlipayOpenPublicMessageSingleSendResponse

Parameters

string $toUserId
\Alipay\EasySDK\Marketing\OpenLife\Models\Template $template

Throws

\AlibabaCloud\Tea\Exception\TeaError
\Exception
\AlibabaCloud\Tea\Exception\TeaUnableRetryError

Returns

\Alipay\EasySDK\Marketing\OpenLife\Models\AlipayOpenPublicMessageSingleSendResponse —

recallMessage()

recallMessage(string  $messageId) : \Alipay\EasySDK\Marketing\OpenLife\Models\AlipayOpenPublicLifeMsgRecallResponse

Parameters

string $messageId

Throws

\AlibabaCloud\Tea\Exception\TeaError
\Exception
\AlibabaCloud\Tea\Exception\TeaUnableRetryError

Returns

\Alipay\EasySDK\Marketing\OpenLife\Models\AlipayOpenPublicLifeMsgRecallResponse —

setIndustry()

setIndustry(string  $primaryIndustryCode, string  $primaryIndustryName, string  $secondaryIndustryCode, string  $secondaryIndustryName) : \Alipay\EasySDK\Marketing\OpenLife\Models\AlipayOpenPublicTemplateMessageIndustryModifyResponse

Parameters

string $primaryIndustryCode
string $primaryIndustryName
string $secondaryIndustryCode
string $secondaryIndustryName

Throws

\AlibabaCloud\Tea\Exception\TeaError
\Exception
\AlibabaCloud\Tea\Exception\TeaUnableRetryError

Returns

\Alipay\EasySDK\Marketing\OpenLife\Models\AlipayOpenPublicTemplateMessageIndustryModifyResponse —

getIndustry()

getIndustry() : \Alipay\EasySDK\Marketing\OpenLife\Models\AlipayOpenPublicSettingCategoryQueryResponse

Throws

\AlibabaCloud\Tea\Exception\TeaError
\Exception
\AlibabaCloud\Tea\Exception\TeaUnableRetryError

Returns

\Alipay\EasySDK\Marketing\OpenLife\Models\AlipayOpenPublicSettingCategoryQueryResponse —

agent()

agent( $appAuthToken) : $this

ISV代商户代用,指定appAuthToken

Parameters

$appAuthToken

String 代调用token

Returns

$this —

本客户端,便于链式调用

auth()

auth( $authToken) : $this

用户授权调用,指定authToken

Parameters

$authToken

String 用户授权token

Returns

$this —

asyncNotify()

asyncNotify( $url) : $this

设置异步通知回调地址,此处设置将在本调用中覆盖Config中的全局配置

Parameters

$url

String 异步通知回调地址,例如:https://www.test.com/callback

Returns

$this —

route()

route( $testUrl) : $this

将本次调用强制路由到后端系统的测试地址上,常用于线下环境内外联调,沙箱与线上环境设置无效

Parameters

$testUrl

String 后端系统测试地址

Returns

$this —

optional()

optional( $key,  $value) : $this

设置API入参中没有的其他可选业务请求参数(biz_content下的字段)

Parameters

$key

String 业务请求参数名称(biz_content下的字段名,比如timeout_express)

$value

object 业务请求参数的值,一个可以序列化成JSON的对象 如果该字段是一个字符串类型(String、Price、Date在SDK中都是字符串),请使用String储存 如果该字段是一个数值型类型(比如:Number),请使用Long储存 如果该字段是一个复杂类型,请使用嵌套的array指定各下级字段的值 如果该字段是一个数组,请使用array储存各个值

Returns

$this —

batchOptional()

batchOptional( $optionalArgs) : $this

批量设置API入参中没有的其他可选业务请求参数(biz_content下的字段) optional方法的批量版本

Parameters

$optionalArgs

array 可选参数集合,每个参数由key和value组成,key和value的格式请参见optional方法的注释

Returns

$this —