im_2_0

package
v1.4.65 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

This file is auto-generated, don't edit it. Thanks. *

*

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	openapi.Client
}

func NewClient

func NewClient(config *openapi.Config) (*Client, error)

func (*Client) CloseTopbox

func (client *Client) CloseTopbox(request *CloseTopboxRequest) (_result *CloseTopboxResponse, _err error)

func (*Client) CloseTopboxWithOptions

func (client *Client) CloseTopboxWithOptions(request *CloseTopboxRequest, headers *CloseTopboxHeaders, runtime *util.RuntimeOptions) (_result *CloseTopboxResponse, _err error)

func (*Client) CreateTopbox

func (client *Client) CreateTopbox(request *CreateTopboxRequest) (_result *CreateTopboxResponse, _err error)

func (*Client) CreateTopboxWithOptions

func (client *Client) CreateTopboxWithOptions(request *CreateTopboxRequest, headers *CreateTopboxHeaders, runtime *util.RuntimeOptions) (_result *CreateTopboxResponse, _err error)

func (*Client) Init

func (client *Client) Init(config *openapi.Config) (_err error)

type CloseTopboxHeaders

type CloseTopboxHeaders struct {
	CommonHeaders           map[string]*string `json:"commonHeaders,omitempty" xml:"commonHeaders,omitempty"`
	XAcsDingtalkAccessToken *string            `json:"x-acs-dingtalk-access-token,omitempty" xml:"x-acs-dingtalk-access-token,omitempty"`
}

func (CloseTopboxHeaders) GoString

func (s CloseTopboxHeaders) GoString() string

func (*CloseTopboxHeaders) SetCommonHeaders

func (s *CloseTopboxHeaders) SetCommonHeaders(v map[string]*string) *CloseTopboxHeaders

func (*CloseTopboxHeaders) SetXAcsDingtalkAccessToken

func (s *CloseTopboxHeaders) SetXAcsDingtalkAccessToken(v string) *CloseTopboxHeaders

func (CloseTopboxHeaders) String

func (s CloseTopboxHeaders) String() string

type CloseTopboxRequest

type CloseTopboxRequest struct {
	// 会话类型。
	ConversationType *int32 `json:"conversationType,omitempty" xml:"conversationType,omitempty"`
	// 酷应用编码。
	CoolAppCode *string `json:"coolAppCode,omitempty" xml:"coolAppCode,omitempty"`
	// 群模板id。
	GroupTemplateId *string `json:"groupTemplateId,omitempty" xml:"groupTemplateId,omitempty"`
	// 会话id。
	OpenConversationId *string `json:"openConversationId,omitempty" xml:"openConversationId,omitempty"`
	// 唯一标识一张卡片的外部ID。
	OutTrackId *string `json:"outTrackId,omitempty" xml:"outTrackId,omitempty"`
	// 单聊助手会话,机器人编码。
	RobotCode *string `json:"robotCode,omitempty" xml:"robotCode,omitempty"`
	// 单聊助手会话,用户unionId。
	UnoinId *string `json:"unoinId,omitempty" xml:"unoinId,omitempty"`
	// 单聊助手会话,用户userId。
	UserId *string `json:"userId,omitempty" xml:"userId,omitempty"`
}

func (CloseTopboxRequest) GoString

func (s CloseTopboxRequest) GoString() string

func (*CloseTopboxRequest) SetConversationType

func (s *CloseTopboxRequest) SetConversationType(v int32) *CloseTopboxRequest

func (*CloseTopboxRequest) SetCoolAppCode

func (s *CloseTopboxRequest) SetCoolAppCode(v string) *CloseTopboxRequest

func (*CloseTopboxRequest) SetGroupTemplateId

func (s *CloseTopboxRequest) SetGroupTemplateId(v string) *CloseTopboxRequest

func (*CloseTopboxRequest) SetOpenConversationId

func (s *CloseTopboxRequest) SetOpenConversationId(v string) *CloseTopboxRequest

func (*CloseTopboxRequest) SetOutTrackId

func (s *CloseTopboxRequest) SetOutTrackId(v string) *CloseTopboxRequest

func (*CloseTopboxRequest) SetRobotCode

func (s *CloseTopboxRequest) SetRobotCode(v string) *CloseTopboxRequest

func (*CloseTopboxRequest) SetUnoinId

func (s *CloseTopboxRequest) SetUnoinId(v string) *CloseTopboxRequest

func (*CloseTopboxRequest) SetUserId

func (s *CloseTopboxRequest) SetUserId(v string) *CloseTopboxRequest

func (CloseTopboxRequest) String

func (s CloseTopboxRequest) String() string

type CloseTopboxResponse

type CloseTopboxResponse struct {
	Headers map[string]*string       `json:"headers,omitempty" xml:"headers,omitempty" require:"true"`
	Body    *CloseTopboxResponseBody `json:"body,omitempty" xml:"body,omitempty" require:"true"`
}

func (CloseTopboxResponse) GoString

func (s CloseTopboxResponse) GoString() string

func (*CloseTopboxResponse) SetBody

func (*CloseTopboxResponse) SetHeaders

func (s *CloseTopboxResponse) SetHeaders(v map[string]*string) *CloseTopboxResponse

func (CloseTopboxResponse) String

func (s CloseTopboxResponse) String() string

type CloseTopboxResponseBody

type CloseTopboxResponseBody struct {
	// 请求是否成功。
	Success *bool `json:"success,omitempty" xml:"success,omitempty"`
}

func (CloseTopboxResponseBody) GoString

func (s CloseTopboxResponseBody) GoString() string

func (*CloseTopboxResponseBody) SetSuccess

func (CloseTopboxResponseBody) String

func (s CloseTopboxResponseBody) String() string

type CreateTopboxHeaders

type CreateTopboxHeaders struct {
	CommonHeaders           map[string]*string `json:"commonHeaders,omitempty" xml:"commonHeaders,omitempty"`
	XAcsDingtalkAccessToken *string            `json:"x-acs-dingtalk-access-token,omitempty" xml:"x-acs-dingtalk-access-token,omitempty"`
}

func (CreateTopboxHeaders) GoString

func (s CreateTopboxHeaders) GoString() string

func (*CreateTopboxHeaders) SetCommonHeaders

func (s *CreateTopboxHeaders) SetCommonHeaders(v map[string]*string) *CreateTopboxHeaders

func (*CreateTopboxHeaders) SetXAcsDingtalkAccessToken

func (s *CreateTopboxHeaders) SetXAcsDingtalkAccessToken(v string) *CreateTopboxHeaders

func (CreateTopboxHeaders) String

func (s CreateTopboxHeaders) String() string

type CreateTopboxRequest

type CreateTopboxRequest struct {
	// 可控制卡片回调时的路由Key,用于指定特定的callbackUrl。
	CallbackRouteKey *string `json:"callbackRouteKey,omitempty" xml:"callbackRouteKey,omitempty"`
	// 卡片数据。
	CardData *CreateTopboxRequestCardData `json:"cardData,omitempty" xml:"cardData,omitempty" type:"Struct"`
	// 卡片设置项。
	CardSettings *CreateTopboxRequestCardSettings `json:"cardSettings,omitempty" xml:"cardSettings,omitempty" type:"Struct"`
	// 互动卡片的消息模板ID
	CardTemplateId *string `json:"cardTemplateId,omitempty" xml:"cardTemplateId,omitempty"`
	// 会话类型。
	ConversationType *int32 `json:"conversationType,omitempty" xml:"conversationType,omitempty"`
	// 酷应用编码。
	CoolAppCode *string `json:"coolAppCode,omitempty" xml:"coolAppCode,omitempty"`
	// 吊顶的过期时间,绝对时间。
	ExpiredTime *int64 `json:"expiredTime,omitempty" xml:"expiredTime,omitempty"`
	// 群模板id。
	GroupTemplateId *string `json:"groupTemplateId,omitempty" xml:"groupTemplateId,omitempty"`
	// 会话id。
	OpenConversationId *string `json:"openConversationId,omitempty" xml:"openConversationId,omitempty"`
	// 唯一标识一张卡片的外部ID。
	OutTrackId *string `json:"outTrackId,omitempty" xml:"outTrackId,omitempty"`
	// 期望吊顶的端,如果有多个用“|”分隔。 例如:ios|mac|android|win表示iOS、MAC、安卓和windows端。
	Platforms *string `json:"platforms,omitempty" xml:"platforms,omitempty"`
	// 吊顶可见者unionId,最多可传100个unionId。
	ReceiverUnionIdList []*string `json:"receiverUnionIdList,omitempty" xml:"receiverUnionIdList,omitempty" type:"Repeated"`
	// 吊顶可见者userId,最多可传100个userId。
	ReceiverUserIdList []*string `json:"receiverUserIdList,omitempty" xml:"receiverUserIdList,omitempty" type:"Repeated"`
	// 单聊助手会话,机器人编码。
	RobotCode *string `json:"robotCode,omitempty" xml:"robotCode,omitempty"`
	// 卡片模板unionId差异用户参数。
	UnionIdPrivateDataMap map[string]*UnionIdPrivateDataMapValue `json:"unionIdPrivateDataMap,omitempty" xml:"unionIdPrivateDataMap,omitempty"`
	// 单聊助手会话,用户unionId。
	UnoinId *string `json:"unoinId,omitempty" xml:"unoinId,omitempty"`
	// 单聊助手会话,用户userId。
	UserId *string `json:"userId,omitempty" xml:"userId,omitempty"`
	// 卡片模板userId差异用户参数。
	UserIdPrivateDataMap map[string]*UserIdPrivateDataMapValue `json:"userIdPrivateDataMap,omitempty" xml:"userIdPrivateDataMap,omitempty"`
}

func (CreateTopboxRequest) GoString

func (s CreateTopboxRequest) GoString() string

func (*CreateTopboxRequest) SetCallbackRouteKey

func (s *CreateTopboxRequest) SetCallbackRouteKey(v string) *CreateTopboxRequest

func (*CreateTopboxRequest) SetCardData

func (*CreateTopboxRequest) SetCardSettings

func (*CreateTopboxRequest) SetCardTemplateId

func (s *CreateTopboxRequest) SetCardTemplateId(v string) *CreateTopboxRequest

func (*CreateTopboxRequest) SetConversationType

func (s *CreateTopboxRequest) SetConversationType(v int32) *CreateTopboxRequest

func (*CreateTopboxRequest) SetCoolAppCode

func (s *CreateTopboxRequest) SetCoolAppCode(v string) *CreateTopboxRequest

func (*CreateTopboxRequest) SetExpiredTime

func (s *CreateTopboxRequest) SetExpiredTime(v int64) *CreateTopboxRequest

func (*CreateTopboxRequest) SetGroupTemplateId

func (s *CreateTopboxRequest) SetGroupTemplateId(v string) *CreateTopboxRequest

func (*CreateTopboxRequest) SetOpenConversationId

func (s *CreateTopboxRequest) SetOpenConversationId(v string) *CreateTopboxRequest

func (*CreateTopboxRequest) SetOutTrackId

func (s *CreateTopboxRequest) SetOutTrackId(v string) *CreateTopboxRequest

func (*CreateTopboxRequest) SetPlatforms

func (s *CreateTopboxRequest) SetPlatforms(v string) *CreateTopboxRequest

func (*CreateTopboxRequest) SetReceiverUnionIdList

func (s *CreateTopboxRequest) SetReceiverUnionIdList(v []*string) *CreateTopboxRequest

func (*CreateTopboxRequest) SetReceiverUserIdList

func (s *CreateTopboxRequest) SetReceiverUserIdList(v []*string) *CreateTopboxRequest

func (*CreateTopboxRequest) SetRobotCode

func (s *CreateTopboxRequest) SetRobotCode(v string) *CreateTopboxRequest

func (*CreateTopboxRequest) SetUnionIdPrivateDataMap

func (s *CreateTopboxRequest) SetUnionIdPrivateDataMap(v map[string]*UnionIdPrivateDataMapValue) *CreateTopboxRequest

func (*CreateTopboxRequest) SetUnoinId

func (*CreateTopboxRequest) SetUserId

func (*CreateTopboxRequest) SetUserIdPrivateDataMap

func (s *CreateTopboxRequest) SetUserIdPrivateDataMap(v map[string]*UserIdPrivateDataMapValue) *CreateTopboxRequest

func (CreateTopboxRequest) String

func (s CreateTopboxRequest) String() string

type CreateTopboxRequestCardData

type CreateTopboxRequestCardData struct {
	// 卡片模板内容替换参数,包含普通文本类型和多媒体类型。
	CardParamMap map[string]*string `json:"cardParamMap,omitempty" xml:"cardParamMap,omitempty"`
}

func (CreateTopboxRequestCardData) GoString

func (s CreateTopboxRequestCardData) GoString() string

func (*CreateTopboxRequestCardData) SetCardParamMap

func (CreateTopboxRequestCardData) String

type CreateTopboxRequestCardSettings

type CreateTopboxRequestCardSettings struct {
	// 是否开启卡片纯拉模式。
	PullStrategy *bool `json:"pullStrategy,omitempty" xml:"pullStrategy,omitempty"`
}

func (CreateTopboxRequestCardSettings) GoString

func (*CreateTopboxRequestCardSettings) SetPullStrategy

func (CreateTopboxRequestCardSettings) String

type CreateTopboxResponse

type CreateTopboxResponse struct {
	Headers map[string]*string        `json:"headers,omitempty" xml:"headers,omitempty" require:"true"`
	Body    *CreateTopboxResponseBody `json:"body,omitempty" xml:"body,omitempty" require:"true"`
}

func (CreateTopboxResponse) GoString

func (s CreateTopboxResponse) GoString() string

func (*CreateTopboxResponse) SetBody

func (*CreateTopboxResponse) SetHeaders

func (s *CreateTopboxResponse) SetHeaders(v map[string]*string) *CreateTopboxResponse

func (CreateTopboxResponse) String

func (s CreateTopboxResponse) String() string

type CreateTopboxResponseBody

type CreateTopboxResponseBody struct {
	// 请求是否成功。
	Success *bool `json:"success,omitempty" xml:"success,omitempty"`
}

func (CreateTopboxResponseBody) GoString

func (s CreateTopboxResponseBody) GoString() string

func (*CreateTopboxResponseBody) SetSuccess

func (CreateTopboxResponseBody) String

func (s CreateTopboxResponseBody) String() string

type UnionIdPrivateDataMapValue

type UnionIdPrivateDataMapValue struct {
	// 卡片模板内容替换参数,包含普通文本类型和多媒体类型。
	CardParamMap map[string]*string `json:"cardParamMap,omitempty" xml:"cardParamMap,omitempty"`
}

func (UnionIdPrivateDataMapValue) GoString

func (s UnionIdPrivateDataMapValue) GoString() string

func (*UnionIdPrivateDataMapValue) SetCardParamMap

func (UnionIdPrivateDataMapValue) String

type UserIdPrivateDataMapValue

type UserIdPrivateDataMapValue struct {
	// 卡片模板内容替换参数,包含普通文本类型和多媒体类型。
	CardParamMap map[string]*string `json:"cardParamMap,omitempty" xml:"cardParamMap,omitempty"`
}

func (UserIdPrivateDataMapValue) GoString

func (s UserIdPrivateDataMapValue) GoString() string

func (*UserIdPrivateDataMapValue) SetCardParamMap

func (UserIdPrivateDataMapValue) String

func (s UserIdPrivateDataMapValue) String() string

Jump to

Keyboard shortcuts

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