xspace

package
v1.62.487 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssociatePersonListInQueryCustomerById

type AssociatePersonListInQueryCustomerById struct {
	AssociatePersonList []string `json:"AssociatePersonList" xml:"AssociatePersonList"`
}

AssociatePersonListInQueryCustomerById is a nested struct in xspace response

type AssociatePersonListInQueryCustomerByPhone

type AssociatePersonListInQueryCustomerByPhone struct {
	AssociatePersonList []string `json:"AssociatePersonList" xml:"AssociatePersonList"`
}

AssociatePersonListInQueryCustomerByPhone is a nested struct in xspace response

type Client

type Client struct {
	sdk.Client
}

Client is the sdk client struct, each func corresponds to an OpenAPI

func NewClient

func NewClient() (client *Client, err error)

NewClient creates a sdk client with environment variables

func NewClientWithAccessKey

func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)

NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://help.aliyun.com/document_detail/66217.html

func NewClientWithEcsRamRole

func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)

NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://help.aliyun.com/document_detail/66223.html

func NewClientWithOptions

func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)

NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client

func NewClientWithRamRoleArn

func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://help.aliyun.com/document_detail/66222.html

func NewClientWithRsaKeyPair

func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)

NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair attention: rsa key pair auth is only Japan regions available

func NewClientWithStsToken

func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)

NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://help.aliyun.com/document_detail/66222.html

func (*Client) QueryCustomerById

func (client *Client) QueryCustomerById(request *QueryCustomerByIdRequest) (response *QueryCustomerByIdResponse, err error)

QueryCustomerById invokes the xspace.QueryCustomerById API synchronously api document: https://help.aliyun.com/api/xspace/querycustomerbyid.html

func (*Client) QueryCustomerByIdWithCallback

func (client *Client) QueryCustomerByIdWithCallback(request *QueryCustomerByIdRequest, callback func(response *QueryCustomerByIdResponse, err error)) <-chan int

QueryCustomerByIdWithCallback invokes the xspace.QueryCustomerById API asynchronously api document: https://help.aliyun.com/api/xspace/querycustomerbyid.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) QueryCustomerByIdWithChan

func (client *Client) QueryCustomerByIdWithChan(request *QueryCustomerByIdRequest) (<-chan *QueryCustomerByIdResponse, <-chan error)

QueryCustomerByIdWithChan invokes the xspace.QueryCustomerById API asynchronously api document: https://help.aliyun.com/api/xspace/querycustomerbyid.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) QueryCustomerByPhone

func (client *Client) QueryCustomerByPhone(request *QueryCustomerByPhoneRequest) (response *QueryCustomerByPhoneResponse, err error)

QueryCustomerByPhone invokes the xspace.QueryCustomerByPhone API synchronously api document: https://help.aliyun.com/api/xspace/querycustomerbyphone.html

func (*Client) QueryCustomerByPhoneWithCallback

func (client *Client) QueryCustomerByPhoneWithCallback(request *QueryCustomerByPhoneRequest, callback func(response *QueryCustomerByPhoneResponse, err error)) <-chan int

QueryCustomerByPhoneWithCallback invokes the xspace.QueryCustomerByPhone API asynchronously api document: https://help.aliyun.com/api/xspace/querycustomerbyphone.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) QueryCustomerByPhoneWithChan

func (client *Client) QueryCustomerByPhoneWithChan(request *QueryCustomerByPhoneRequest) (<-chan *QueryCustomerByPhoneResponse, <-chan error)

QueryCustomerByPhoneWithChan invokes the xspace.QueryCustomerByPhone API asynchronously api document: https://help.aliyun.com/api/xspace/querycustomerbyphone.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

type CustomizeFields

type CustomizeFields struct {
	Cid                 string                                 `json:"Cid" xml:"Cid"`
	AbcUrl              string                                 `json:"AbcUrl" xml:"AbcUrl"`
	Tag                 string                                 `json:"Tag" xml:"Tag"`
	DistributionLevel   string                                 `json:"DistributionLevel" xml:"DistributionLevel"`
	AssociatePerson     string                                 `json:"AssociatePerson" xml:"AssociatePerson"`
	MainAccountUid      string                                 `json:"MainAccountUid" xml:"MainAccountUid"`
	AssociatePersonList AssociatePersonListInQueryCustomerById `json:"AssociatePersonList" xml:"AssociatePersonList"`
}

CustomizeFields is a nested struct in xspace response

type Data

type Data struct {
	Gender          string                  `json:"Gender" xml:"Gender"`
	Email           string                  `json:"Email" xml:"Email"`
	Photo           string                  `json:"Photo" xml:"Photo"`
	Detail          string                  `json:"Detail" xml:"Detail"`
	Id              string                  `json:"Id" xml:"Id"`
	RealName        string                  `json:"RealName" xml:"RealName"`
	Nick            string                  `json:"Nick" xml:"Nick"`
	Phone           string                  `json:"Phone" xml:"Phone"`
	Tags            TagsInQueryCustomerById `json:"Tags" xml:"Tags"`
	CustomizeFields CustomizeFields         `json:"CustomizeFields" xml:"CustomizeFields"`
}

Data is a nested struct in xspace response

type DataInQueryCustomerByPhone

type DataInQueryCustomerByPhone struct {
	DataItem []DataItem `json:"DataItem" xml:"DataItem"`
}

DataInQueryCustomerByPhone is a nested struct in xspace response

type DataItem

type DataItem struct {
	Detail          string                     `json:"Detail" xml:"Detail"`
	Photo           string                     `json:"Photo" xml:"Photo"`
	Id              string                     `json:"Id" xml:"Id"`
	Phone           string                     `json:"Phone" xml:"Phone"`
	Gender          string                     `json:"Gender" xml:"Gender"`
	Email           string                     `json:"Email" xml:"Email"`
	Nick            string                     `json:"Nick" xml:"Nick"`
	RealName        string                     `json:"RealName" xml:"RealName"`
	Tags            TagsInQueryCustomerByPhone `json:"Tags" xml:"Tags"`
	CustomizeFields CustomizeFields            `json:"CustomizeFields" xml:"CustomizeFields"`
}

DataItem is a nested struct in xspace response

type QueryCustomerByIdRequest

type QueryCustomerByIdRequest struct {
	*requests.RoaRequest
	Id string `position:"Query" name:"Id"`
}

QueryCustomerByIdRequest is the request struct for api QueryCustomerById

func CreateQueryCustomerByIdRequest

func CreateQueryCustomerByIdRequest() (request *QueryCustomerByIdRequest)

CreateQueryCustomerByIdRequest creates a request to invoke QueryCustomerById API

type QueryCustomerByIdResponse

type QueryCustomerByIdResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Data      Data   `json:"Data" xml:"Data"`
}

QueryCustomerByIdResponse is the response struct for api QueryCustomerById

func CreateQueryCustomerByIdResponse

func CreateQueryCustomerByIdResponse() (response *QueryCustomerByIdResponse)

CreateQueryCustomerByIdResponse creates a response to parse from QueryCustomerById response

type QueryCustomerByPhoneRequest

type QueryCustomerByPhoneRequest struct {
	*requests.RoaRequest
	Phone string `position:"Query" name:"Phone"`
}

QueryCustomerByPhoneRequest is the request struct for api QueryCustomerByPhone

func CreateQueryCustomerByPhoneRequest

func CreateQueryCustomerByPhoneRequest() (request *QueryCustomerByPhoneRequest)

CreateQueryCustomerByPhoneRequest creates a request to invoke QueryCustomerByPhone API

type QueryCustomerByPhoneResponse

type QueryCustomerByPhoneResponse struct {
	*responses.BaseResponse
	RequestId string                     `json:"RequestId" xml:"RequestId"`
	Success   bool                       `json:"Success" xml:"Success"`
	Code      string                     `json:"Code" xml:"Code"`
	Message   string                     `json:"Message" xml:"Message"`
	Data      DataInQueryCustomerByPhone `json:"Data" xml:"Data"`
}

QueryCustomerByPhoneResponse is the response struct for api QueryCustomerByPhone

func CreateQueryCustomerByPhoneResponse

func CreateQueryCustomerByPhoneResponse() (response *QueryCustomerByPhoneResponse)

CreateQueryCustomerByPhoneResponse creates a response to parse from QueryCustomerByPhone response

type TagsInQueryCustomerById

type TagsInQueryCustomerById struct {
	Tags []string `json:"Tags" xml:"Tags"`
}

TagsInQueryCustomerById is a nested struct in xspace response

type TagsInQueryCustomerByPhone

type TagsInQueryCustomerByPhone struct {
	Tags []string `json:"Tags" xml:"Tags"`
}

TagsInQueryCustomerByPhone is a nested struct in xspace response

Jump to

Keyboard shortcuts

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