Documentation ¶
Index ¶
- type AssociatePersonListInQueryCustomerById
- type AssociatePersonListInQueryCustomerByPhone
- type Client
- func NewClient() (client *Client, err error)
- func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)
- func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)
- func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)
- func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)
- func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)
- func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)
- func (client *Client) QueryCustomerById(request *QueryCustomerByIdRequest) (response *QueryCustomerByIdResponse, err error)
- func (client *Client) QueryCustomerByIdWithCallback(request *QueryCustomerByIdRequest, ...) <-chan int
- func (client *Client) QueryCustomerByIdWithChan(request *QueryCustomerByIdRequest) (<-chan *QueryCustomerByIdResponse, <-chan error)
- func (client *Client) QueryCustomerByPhone(request *QueryCustomerByPhoneRequest) (response *QueryCustomerByPhoneResponse, err error)
- func (client *Client) QueryCustomerByPhoneWithCallback(request *QueryCustomerByPhoneRequest, ...) <-chan int
- func (client *Client) QueryCustomerByPhoneWithChan(request *QueryCustomerByPhoneRequest) (<-chan *QueryCustomerByPhoneResponse, <-chan error)
- type CustomizeFields
- type Data
- type DataInQueryCustomerByPhone
- type DataItem
- type QueryCustomerByIdRequest
- type QueryCustomerByIdResponse
- type QueryCustomerByPhoneRequest
- type QueryCustomerByPhoneResponse
- type TagsInQueryCustomerById
- type TagsInQueryCustomerByPhone
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 ¶
Client is the sdk client struct, each func corresponds to an OpenAPI
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 ¶
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
Source Files ¶
- client.go
- query_customer_by_id.go
- query_customer_by_phone.go
- struct_associate_person_list_in_query_customer_by_id.go
- struct_associate_person_list_in_query_customer_by_phone.go
- struct_customize_fields.go
- struct_data.go
- struct_data_in_query_customer_by_phone.go
- struct_data_item.go
- struct_tags_in_query_customer_by_id.go
- struct_tags_in_query_customer_by_phone.go