yunosappstore

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package yunosappstore 包含ALiOS应用中心相关结构体

https://open.taobao.com/API.htm?docId=35428&docType=2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdInfo

type AdInfo struct {
	// 创意列表
	Creatives []string `json:"creatives,omitempty" xml:"creatives>string,omitempty"`
	// 广告跟踪id
	TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"`
	// 简介
	Intro string `json:"intro,omitempty" xml:"intro,omitempty"`
	// icon
	Icon string `json:"icon,omitempty" xml:"icon,omitempty"`
	// 版本名
	VerName string `json:"ver_name,omitempty" xml:"ver_name,omitempty"`
	// 结算类型
	FeeType string `json:"fee_type,omitempty" xml:"fee_type,omitempty"`
	// 名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 包名
	Pkg string `json:"pkg,omitempty" xml:"pkg,omitempty"`
	// 包文件md5
	Md5 string `json:"md5,omitempty" xml:"md5,omitempty"`
	// deeplink
	Deeplink string `json:"deeplink,omitempty" xml:"deeplink,omitempty"`
	// 下地地址
	DownloadUrl string `json:"download_url,omitempty" xml:"download_url,omitempty"`
	// 版本号
	VerCode int64 `json:"ver_code,omitempty" xml:"ver_code,omitempty"`
	// 价格
	Price int64 `json:"price,omitempty" xml:"price,omitempty"`
	// 回调地址
	Callbacks *Callbacks `json:"callbacks,omitempty" xml:"callbacks,omitempty"`
}

AdInfo 结构体

type AppInfo

type AppInfo struct {
	// 应用icon
	Icon string `json:"icon,omitempty" xml:"icon,omitempty"`
	// 应用包名
	PackageName string `json:"package_name,omitempty" xml:"package_name,omitempty"`
	// 应用名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 应用版本名称
	VersionName string `json:"version_name,omitempty" xml:"version_name,omitempty"`
	// 应用版本号
	VersionCode int64 `json:"version_code,omitempty" xml:"version_code,omitempty"`
}

AppInfo 结构体

type Callbacks

type Callbacks struct {
	// 点击
	Click string `json:"click,omitempty" xml:"click,omitempty"`
	// 曝光
	View string `json:"view,omitempty" xml:"view,omitempty"`
	// 竞价成功
	Deal string `json:"deal,omitempty" xml:"deal,omitempty"`
}

Callbacks 结构体

type YunosAppstoreAppsGetAPIRequest added in v1.2.0

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

YunosAppstoreAppsGetAPIRequest 根据包名列表获取应用信息列表 API请求 yunos.appstore.apps.get

根据包名列表获取应用信息列表

func NewYunosAppstoreAppsGetRequest

func NewYunosAppstoreAppsGetRequest() *YunosAppstoreAppsGetAPIRequest

NewYunosAppstoreAppsGetRequest 初始化YunosAppstoreAppsGetAPIRequest对象

func (YunosAppstoreAppsGetAPIRequest) GetApiMethodName added in v1.2.0

func (r YunosAppstoreAppsGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (YunosAppstoreAppsGetAPIRequest) GetApiParams added in v1.2.0

func (r YunosAppstoreAppsGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (YunosAppstoreAppsGetAPIRequest) GetPkgs added in v1.2.0

func (r YunosAppstoreAppsGetAPIRequest) GetPkgs() []string

GetPkgs Pkgs Getter

func (*YunosAppstoreAppsGetAPIRequest) SetPkgs added in v1.2.0

func (r *YunosAppstoreAppsGetAPIRequest) SetPkgs(_pkgs []string) error

SetPkgs is Pkgs Setter 应用包名列表

type YunosAppstoreAppsGetAPIResponse

type YunosAppstoreAppsGetAPIResponse struct {
	model.CommonResponse
	YunosAppstoreAppsGetAPIResponseModel
}

YunosAppstoreAppsGetAPIResponse 根据包名列表获取应用信息列表 API返回值 yunos.appstore.apps.get

根据包名列表获取应用信息列表

type YunosAppstoreAppsGetAPIResponseModel added in v1.2.0

type YunosAppstoreAppsGetAPIResponseModel struct {
	XMLName xml.Name `xml:"yunos_appstore_apps_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 应用信息列表
	AppInfoList []AppInfo `json:"app_info_list,omitempty" xml:"app_info_list>app_info,omitempty"`
}

YunosAppstoreAppsGetAPIResponseModel is 根据包名列表获取应用信息列表 成功返回结果

type YunosAppstoreOpenGetadsAPIRequest added in v1.2.0

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

YunosAppstoreOpenGetadsAPIRequest 获取外投广告 API请求 yunos.appstore.open.getads

将广告外投给外部合作伙伴

func NewYunosAppstoreOpenGetadsRequest

func NewYunosAppstoreOpenGetadsRequest() *YunosAppstoreOpenGetadsAPIRequest

NewYunosAppstoreOpenGetadsRequest 初始化YunosAppstoreOpenGetadsAPIRequest对象

func (YunosAppstoreOpenGetadsAPIRequest) GetApiMethodName added in v1.2.0

func (r YunosAppstoreOpenGetadsAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (YunosAppstoreOpenGetadsAPIRequest) GetApiParams added in v1.2.0

func (r YunosAppstoreOpenGetadsAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (YunosAppstoreOpenGetadsAPIRequest) GetCaseId added in v1.2.0

GetCaseId CaseId Getter

func (YunosAppstoreOpenGetadsAPIRequest) GetCats added in v1.2.0

GetCats Cats Getter

func (YunosAppstoreOpenGetadsAPIRequest) GetClientIp added in v1.2.0

func (r YunosAppstoreOpenGetadsAPIRequest) GetClientIp() string

GetClientIp ClientIp Getter

func (YunosAppstoreOpenGetadsAPIRequest) GetClientVerCode added in v1.2.0

func (r YunosAppstoreOpenGetadsAPIRequest) GetClientVerCode() int64

GetClientVerCode ClientVerCode Getter

func (YunosAppstoreOpenGetadsAPIRequest) GetDeviceId added in v1.2.0

func (r YunosAppstoreOpenGetadsAPIRequest) GetDeviceId() string

GetDeviceId DeviceId Getter

func (YunosAppstoreOpenGetadsAPIRequest) GetExcludeCats added in v1.2.0

func (r YunosAppstoreOpenGetadsAPIRequest) GetExcludeCats() []string

GetExcludeCats ExcludeCats Getter

func (YunosAppstoreOpenGetadsAPIRequest) GetExcludeInstall added in v1.2.0

func (r YunosAppstoreOpenGetadsAPIRequest) GetExcludeInstall() bool

GetExcludeInstall ExcludeInstall Getter

func (YunosAppstoreOpenGetadsAPIRequest) GetExcludePkgs added in v1.2.0

func (r YunosAppstoreOpenGetadsAPIRequest) GetExcludePkgs() []string

GetExcludePkgs ExcludePkgs Getter

func (YunosAppstoreOpenGetadsAPIRequest) GetFeeType added in v1.2.0

GetFeeType FeeType Getter

func (YunosAppstoreOpenGetadsAPIRequest) GetMrp added in v1.2.0

GetMrp Mrp Getter

func (YunosAppstoreOpenGetadsAPIRequest) GetOptions added in v1.2.0

GetOptions Options Getter

func (YunosAppstoreOpenGetadsAPIRequest) GetPkgs added in v1.2.0

GetPkgs Pkgs Getter

func (YunosAppstoreOpenGetadsAPIRequest) GetRid added in v1.2.0

GetRid Rid Getter

func (YunosAppstoreOpenGetadsAPIRequest) GetSize added in v1.2.0

GetSize Size Getter

func (YunosAppstoreOpenGetadsAPIRequest) GetSsp added in v1.2.0

GetSsp Ssp Getter

func (YunosAppstoreOpenGetadsAPIRequest) GetTemplateIds added in v1.2.0

func (r YunosAppstoreOpenGetadsAPIRequest) GetTemplateIds() []int64

GetTemplateIds TemplateIds Getter

func (YunosAppstoreOpenGetadsAPIRequest) GetTryMapToUuid added in v1.2.0

func (r YunosAppstoreOpenGetadsAPIRequest) GetTryMapToUuid() bool

GetTryMapToUuid TryMapToUuid Getter

func (*YunosAppstoreOpenGetadsAPIRequest) SetCaseId added in v1.2.0

func (r *YunosAppstoreOpenGetadsAPIRequest) SetCaseId(_caseId string) error

SetCaseId is CaseId Setter 场景或页面标识

func (*YunosAppstoreOpenGetadsAPIRequest) SetCats added in v1.2.0

func (r *YunosAppstoreOpenGetadsAPIRequest) SetCats(_cats []string) error

SetCats is Cats Setter 指定广告分类

func (*YunosAppstoreOpenGetadsAPIRequest) SetClientIp added in v1.2.0

func (r *YunosAppstoreOpenGetadsAPIRequest) SetClientIp(_clientIp string) error

SetClientIp is ClientIp Setter 客户端来源ip

func (*YunosAppstoreOpenGetadsAPIRequest) SetClientVerCode added in v1.2.0

func (r *YunosAppstoreOpenGetadsAPIRequest) SetClientVerCode(_clientVerCode int64) error

SetClientVerCode is ClientVerCode Setter 客户端版本号

func (*YunosAppstoreOpenGetadsAPIRequest) SetDeviceId added in v1.2.0

func (r *YunosAppstoreOpenGetadsAPIRequest) SetDeviceId(_deviceId string) error

SetDeviceId is DeviceId Setter 设备唯一标识

func (*YunosAppstoreOpenGetadsAPIRequest) SetExcludeCats added in v1.2.0

func (r *YunosAppstoreOpenGetadsAPIRequest) SetExcludeCats(_excludeCats []string) error

SetExcludeCats is ExcludeCats Setter 排除分类

func (*YunosAppstoreOpenGetadsAPIRequest) SetExcludeInstall added in v1.2.0

func (r *YunosAppstoreOpenGetadsAPIRequest) SetExcludeInstall(_excludeInstall bool) error

SetExcludeInstall is ExcludeInstall Setter 是否排除已安装

func (*YunosAppstoreOpenGetadsAPIRequest) SetExcludePkgs added in v1.2.0

func (r *YunosAppstoreOpenGetadsAPIRequest) SetExcludePkgs(_excludePkgs []string) error

SetExcludePkgs is ExcludePkgs Setter 排除包名列表

func (*YunosAppstoreOpenGetadsAPIRequest) SetFeeType added in v1.2.0

func (r *YunosAppstoreOpenGetadsAPIRequest) SetFeeType(_feeType string) error

SetFeeType is FeeType Setter 结算类型

func (*YunosAppstoreOpenGetadsAPIRequest) SetMrp added in v1.2.0

SetMrp is Mrp Setter 广告底价

func (*YunosAppstoreOpenGetadsAPIRequest) SetOptions added in v1.2.0

func (r *YunosAppstoreOpenGetadsAPIRequest) SetOptions(_options int64) error

SetOptions is Options Setter 请求特征集

func (*YunosAppstoreOpenGetadsAPIRequest) SetPkgs added in v1.2.0

func (r *YunosAppstoreOpenGetadsAPIRequest) SetPkgs(_pkgs []string) error

SetPkgs is Pkgs Setter 广告指定包名

func (*YunosAppstoreOpenGetadsAPIRequest) SetRid added in v1.2.0

SetRid is Rid Setter 请求id

func (*YunosAppstoreOpenGetadsAPIRequest) SetSize added in v1.2.0

func (r *YunosAppstoreOpenGetadsAPIRequest) SetSize(_size int64) error

SetSize is Size Setter 广告数量

func (*YunosAppstoreOpenGetadsAPIRequest) SetSsp added in v1.2.0

SetSsp is Ssp Setter ssp标识

func (*YunosAppstoreOpenGetadsAPIRequest) SetTemplateIds added in v1.2.0

func (r *YunosAppstoreOpenGetadsAPIRequest) SetTemplateIds(_templateIds []int64) error

SetTemplateIds is TemplateIds Setter 创意模板id列表

func (*YunosAppstoreOpenGetadsAPIRequest) SetTryMapToUuid added in v1.2.0

func (r *YunosAppstoreOpenGetadsAPIRequest) SetTryMapToUuid(_tryMapToUuid bool) error

SetTryMapToUuid is TryMapToUuid Setter 是否映射到uuid

type YunosAppstoreOpenGetadsAPIResponse

type YunosAppstoreOpenGetadsAPIResponse struct {
	model.CommonResponse
	YunosAppstoreOpenGetadsAPIResponseModel
}

YunosAppstoreOpenGetadsAPIResponse 获取外投广告 API返回值 yunos.appstore.open.getads

将广告外投给外部合作伙伴

type YunosAppstoreOpenGetadsAPIResponseModel added in v1.2.0

type YunosAppstoreOpenGetadsAPIResponseModel struct {
	XMLName xml.Name `xml:"yunos_appstore_open_getads_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 广告集
	Ads []AdInfo `json:"ads,omitempty" xml:"ads>ad_info,omitempty"`
	// 请求id
	Rid string `json:"rid,omitempty" xml:"rid,omitempty"`
	// 响应消息
	Rm string `json:"rm,omitempty" xml:"rm,omitempty"`
	// 响应码
	Rc int64 `json:"rc,omitempty" xml:"rc,omitempty"`
}

YunosAppstoreOpenGetadsAPIResponseModel is 获取外投广告 成功返回结果

type YunosAppstoreOpenReportadAPIRequest added in v1.2.0

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

YunosAppstoreOpenReportadAPIRequest 外投广告上报接口 API请求 yunos.appstore.open.reportad

外投广告回流上报接口

func NewYunosAppstoreOpenReportadRequest

func NewYunosAppstoreOpenReportadRequest() *YunosAppstoreOpenReportadAPIRequest

NewYunosAppstoreOpenReportadRequest 初始化YunosAppstoreOpenReportadAPIRequest对象

func (YunosAppstoreOpenReportadAPIRequest) GetAction added in v1.2.0

GetAction Action Getter

func (YunosAppstoreOpenReportadAPIRequest) GetApiMethodName added in v1.2.0

func (r YunosAppstoreOpenReportadAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (YunosAppstoreOpenReportadAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (YunosAppstoreOpenReportadAPIRequest) GetClientVerCode added in v1.2.0

func (r YunosAppstoreOpenReportadAPIRequest) GetClientVerCode() int64

GetClientVerCode ClientVerCode Getter

func (YunosAppstoreOpenReportadAPIRequest) GetDeviceId added in v1.2.0

GetDeviceId DeviceId Getter

func (YunosAppstoreOpenReportadAPIRequest) GetTime added in v1.2.0

GetTime Time Getter

func (YunosAppstoreOpenReportadAPIRequest) GetTraceIds added in v1.2.0

func (r YunosAppstoreOpenReportadAPIRequest) GetTraceIds() []string

GetTraceIds TraceIds Getter

func (*YunosAppstoreOpenReportadAPIRequest) SetAction added in v1.2.0

func (r *YunosAppstoreOpenReportadAPIRequest) SetAction(_action int64) error

SetAction is Action Setter 事件类型:0 代表曝光事件;1 代表点击下载事件;2 代表下载完成事件;3 代表安装完成事件

func (*YunosAppstoreOpenReportadAPIRequest) SetClientVerCode added in v1.2.0

func (r *YunosAppstoreOpenReportadAPIRequest) SetClientVerCode(_clientVerCode int64) error

SetClientVerCode is ClientVerCode Setter 客户端版本号

func (*YunosAppstoreOpenReportadAPIRequest) SetDeviceId added in v1.2.0

func (r *YunosAppstoreOpenReportadAPIRequest) SetDeviceId(_deviceId string) error

SetDeviceId is DeviceId Setter 客户端设备标识

func (*YunosAppstoreOpenReportadAPIRequest) SetTime added in v1.2.0

SetTime is Time Setter 事件时间,当前毫秒数

func (*YunosAppstoreOpenReportadAPIRequest) SetTraceIds added in v1.2.0

func (r *YunosAppstoreOpenReportadAPIRequest) SetTraceIds(_traceIds []string) error

SetTraceIds is TraceIds Setter 广告跟踪id列表

type YunosAppstoreOpenReportadAPIResponse

type YunosAppstoreOpenReportadAPIResponse struct {
	model.CommonResponse
	YunosAppstoreOpenReportadAPIResponseModel
}

YunosAppstoreOpenReportadAPIResponse 外投广告上报接口 API返回值 yunos.appstore.open.reportad

外投广告回流上报接口

type YunosAppstoreOpenReportadAPIResponseModel added in v1.2.0

type YunosAppstoreOpenReportadAPIResponseModel struct {
	XMLName xml.Name `xml:"yunos_appstore_open_reportad_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 响应消息
	Rm string `json:"rm,omitempty" xml:"rm,omitempty"`
	// 响应码
	Rc int64 `json:"rc,omitempty" xml:"rc,omitempty"`
}

YunosAppstoreOpenReportadAPIResponseModel is 外投广告上报接口 成功返回结果

type YunosAppstorePadHpApplistAPIRequest added in v1.2.0

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

YunosAppstorePadHpApplistAPIRequest 查询HpPad appList API请求 yunos.appstore.pad.hp.applist

提供hp pad应用群数据

func NewYunosAppstorePadHpApplistRequest

func NewYunosAppstorePadHpApplistRequest() *YunosAppstorePadHpApplistAPIRequest

NewYunosAppstorePadHpApplistRequest 初始化YunosAppstorePadHpApplistAPIRequest对象

func (YunosAppstorePadHpApplistAPIRequest) GetApiMethodName added in v1.2.0

func (r YunosAppstorePadHpApplistAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (YunosAppstorePadHpApplistAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (YunosAppstorePadHpApplistAPIRequest) GetCode added in v1.2.0

GetCode Code Getter

func (*YunosAppstorePadHpApplistAPIRequest) SetCode added in v1.2.0

SetCode is Code Setter 获取的应用群code

type YunosAppstorePadHpApplistAPIResponse

type YunosAppstorePadHpApplistAPIResponse struct {
	model.CommonResponse
	YunosAppstorePadHpApplistAPIResponseModel
}

YunosAppstorePadHpApplistAPIResponse 查询HpPad appList API返回值 yunos.appstore.pad.hp.applist

提供hp pad应用群数据

type YunosAppstorePadHpApplistAPIResponseModel added in v1.2.0

type YunosAppstorePadHpApplistAPIResponseModel struct {
	XMLName xml.Name `xml:"yunos_appstore_pad_hp_applist_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// result
	Results []YunosAppstorePadHpApplistResult `json:"results,omitempty" xml:"results>yunos_appstore_pad_hp_applist_result,omitempty"`
}

YunosAppstorePadHpApplistAPIResponseModel is 查询HpPad appList 成功返回结果

type YunosAppstorePadHpApplistResult

type YunosAppstorePadHpApplistResult struct {
	// icon
	Icon string `json:"icon,omitempty" xml:"icon,omitempty"`
	// gmtCreate
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// packageName
	PackageName string `json:"package_name,omitempty" xml:"package_name,omitempty"`
	// name
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// developerName
	DeveloperName string `json:"developer_name,omitempty" xml:"developer_name,omitempty"`
	// uri
	Uri string `json:"uri,omitempty" xml:"uri,omitempty"`
	// url
	Url string `json:"url,omitempty" xml:"url,omitempty"`
	// intro
	Intro string `json:"intro,omitempty" xml:"intro,omitempty"`
	// versionCode
	VersionCode int64 `json:"version_code,omitempty" xml:"version_code,omitempty"`
}

YunosAppstorePadHpApplistResult 结构体

Jump to

Keyboard shortcuts

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