Prechádzať zdrojové kódy

Generated 2019-11-18 for address-purification.

sdk-team 5 rokov pred
rodič
commit
c3a9b2f0ba

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2020-03-18 Version: v1.61.65
+- Generated 2019-11-18 for `address-purification`.
+- Support product addrp.
+
 2020-03-18 Version: v1.61.64
 - Generated 2017-08-24 for `faas`.
 - Support GO-SDK for 20170824 version.

+ 104 - 0
services/address-purification/client.go

@@ -0,0 +1,104 @@
+package address_purification
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider"
+)
+
+// Client is the sdk client struct, each func corresponds to an OpenAPI
+type Client struct {
+	sdk.Client
+}
+
+// NewClient creates a sdk client with environment variables
+func NewClient() (client *Client, err error) {
+	client = &Client{}
+	err = client.Init()
+	return
+}
+
+// NewClientWithProvider creates a sdk client with providers
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) {
+	client = &Client{}
+	var pc provider.Provider
+	if len(providers) == 0 {
+		pc = provider.DefaultChain
+	} else {
+		pc = provider.NewProviderChain(providers)
+	}
+	err = client.InitWithProviderChain(regionId, pc)
+	return
+}
+
+// NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential
+// this is the common api to create a sdk client
+func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithOptions(regionId, config, credential)
+	return
+}
+
+// NewClientWithAccessKey is a shortcut to create sdk client with accesskey
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret)
+	return
+}
+
+// NewClientWithStsToken is a shortcut to create sdk client with sts token
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken)
+	return
+}
+
+// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName)
+	return
+}
+
+// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy)
+	return
+}
+
+// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithEcsRamRole(regionId, roleName)
+	return
+}
+
+// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration)
+	return
+}

+ 108 - 0
services/address-purification/describe_product.go

@@ -0,0 +1,108 @@
+package address_purification
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribeProduct invokes the address_purification.DescribeProduct API synchronously
+// api document: https://help.aliyun.com/api/address-purification/describeproduct.html
+func (client *Client) DescribeProduct(request *DescribeProductRequest) (response *DescribeProductResponse, err error) {
+	response = CreateDescribeProductResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeProductWithChan invokes the address_purification.DescribeProduct API asynchronously
+// api document: https://help.aliyun.com/api/address-purification/describeproduct.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeProductWithChan(request *DescribeProductRequest) (<-chan *DescribeProductResponse, <-chan error) {
+	responseChan := make(chan *DescribeProductResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeProduct(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeProductWithCallback invokes the address_purification.DescribeProduct API asynchronously
+// api document: https://help.aliyun.com/api/address-purification/describeproduct.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeProductWithCallback(request *DescribeProductRequest, callback func(response *DescribeProductResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeProductResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeProduct(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeProductRequest is the request struct for api DescribeProduct
+type DescribeProductRequest struct {
+	*requests.RpcRequest
+	ServiceCode string `position:"Body" name:"ServiceCode"`
+	Parameters  string `position:"Body" name:"Parameters"`
+}
+
+// DescribeProductResponse is the response struct for api DescribeProduct
+type DescribeProductResponse struct {
+	*responses.BaseResponse
+	RequestId  string `json:"RequestId" xml:"RequestId"`
+	Success    string `json:"Success" xml:"Success"`
+	Code       string `json:"Code" xml:"Code"`
+	ErrMessage string `json:"ErrMessage" xml:"ErrMessage"`
+	Data       string `json:"Data" xml:"Data"`
+}
+
+// CreateDescribeProductRequest creates a request to invoke DescribeProduct API
+func CreateDescribeProductRequest() (request *DescribeProductRequest) {
+	request = &DescribeProductRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("address-purification", "2019-11-18", "DescribeProduct", "", "")
+	return
+}
+
+// CreateDescribeProductResponse creates a response to parse from DescribeProduct response
+func CreateDescribeProductResponse() (response *DescribeProductResponse) {
+	response = &DescribeProductResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/address-purification/get_algorithm_result.go

@@ -0,0 +1,109 @@
+package address_purification
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// GetAlgorithmResult invokes the address_purification.GetAlgorithmResult API synchronously
+// api document: https://help.aliyun.com/api/address-purification/getalgorithmresult.html
+func (client *Client) GetAlgorithmResult(request *GetAlgorithmResultRequest) (response *GetAlgorithmResultResponse, err error) {
+	response = CreateGetAlgorithmResultResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetAlgorithmResultWithChan invokes the address_purification.GetAlgorithmResult API asynchronously
+// api document: https://help.aliyun.com/api/address-purification/getalgorithmresult.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetAlgorithmResultWithChan(request *GetAlgorithmResultRequest) (<-chan *GetAlgorithmResultResponse, <-chan error) {
+	responseChan := make(chan *GetAlgorithmResultResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetAlgorithmResult(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetAlgorithmResultWithCallback invokes the address_purification.GetAlgorithmResult API asynchronously
+// api document: https://help.aliyun.com/api/address-purification/getalgorithmresult.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetAlgorithmResultWithCallback(request *GetAlgorithmResultRequest, callback func(response *GetAlgorithmResultResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetAlgorithmResultResponse
+		var err error
+		defer close(result)
+		response, err = client.GetAlgorithmResult(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetAlgorithmResultRequest is the request struct for api GetAlgorithmResult
+type GetAlgorithmResultRequest struct {
+	*requests.RpcRequest
+	ServiceCode string `position:"Body" name:"ServiceCode"`
+	ApiCode     string `position:"Body" name:"ApiCode"`
+	Parameters  string `position:"Body" name:"Parameters"`
+}
+
+// GetAlgorithmResultResponse is the response struct for api GetAlgorithmResult
+type GetAlgorithmResultResponse struct {
+	*responses.BaseResponse
+	RequestId  string `json:"RequestId" xml:"RequestId"`
+	Success    bool   `json:"Success" xml:"Success"`
+	Code       string `json:"Code" xml:"Code"`
+	ErrMessage string `json:"ErrMessage" xml:"ErrMessage"`
+	Data       string `json:"Data" xml:"Data"`
+}
+
+// CreateGetAlgorithmResultRequest creates a request to invoke GetAlgorithmResult API
+func CreateGetAlgorithmResultRequest() (request *GetAlgorithmResultRequest) {
+	request = &GetAlgorithmResultRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("address-purification", "2019-11-18", "GetAlgorithmResult", "", "")
+	return
+}
+
+// CreateGetAlgorithmResultResponse creates a response to parse from GetAlgorithmResult response
+func CreateGetAlgorithmResultResponse() (response *GetAlgorithmResultResponse) {
+	response = &GetAlgorithmResultResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/address-purification/get_console_result.go

@@ -0,0 +1,109 @@
+package address_purification
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// GetConsoleResult invokes the address_purification.GetConsoleResult API synchronously
+// api document: https://help.aliyun.com/api/address-purification/getconsoleresult.html
+func (client *Client) GetConsoleResult(request *GetConsoleResultRequest) (response *GetConsoleResultResponse, err error) {
+	response = CreateGetConsoleResultResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetConsoleResultWithChan invokes the address_purification.GetConsoleResult API asynchronously
+// api document: https://help.aliyun.com/api/address-purification/getconsoleresult.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetConsoleResultWithChan(request *GetConsoleResultRequest) (<-chan *GetConsoleResultResponse, <-chan error) {
+	responseChan := make(chan *GetConsoleResultResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetConsoleResult(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetConsoleResultWithCallback invokes the address_purification.GetConsoleResult API asynchronously
+// api document: https://help.aliyun.com/api/address-purification/getconsoleresult.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetConsoleResultWithCallback(request *GetConsoleResultRequest, callback func(response *GetConsoleResultResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetConsoleResultResponse
+		var err error
+		defer close(result)
+		response, err = client.GetConsoleResult(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetConsoleResultRequest is the request struct for api GetConsoleResult
+type GetConsoleResultRequest struct {
+	*requests.RpcRequest
+	ProductCode   string `position:"Body" name:"ProductCode"`
+	ApiCode       string `position:"Body" name:"ApiCode"`
+	CommodityCode string `position:"Body" name:"CommodityCode"`
+	Parameters    string `position:"Body" name:"Parameters"`
+}
+
+// GetConsoleResultResponse is the response struct for api GetConsoleResult
+type GetConsoleResultResponse struct {
+	*responses.BaseResponse
+	RequestId  string `json:"RequestId" xml:"RequestId"`
+	ErrCode    string `json:"ErrCode" xml:"ErrCode"`
+	ErrMessage string `json:"ErrMessage" xml:"ErrMessage"`
+	Data       string `json:"Data" xml:"Data"`
+}
+
+// CreateGetConsoleResultRequest creates a request to invoke GetConsoleResult API
+func CreateGetConsoleResultRequest() (request *GetConsoleResultRequest) {
+	request = &GetConsoleResultRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("address-purification", "2019-11-18", "GetConsoleResult", "", "")
+	return
+}
+
+// CreateGetConsoleResultResponse creates a response to parse from GetConsoleResult response
+func CreateGetConsoleResultResponse() (response *GetConsoleResultResponse) {
+	response = &GetConsoleResultResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 111 - 0
services/address-purification/get_report.go

@@ -0,0 +1,111 @@
+package address_purification
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// GetReport invokes the address_purification.GetReport API synchronously
+// api document: https://help.aliyun.com/api/address-purification/getreport.html
+func (client *Client) GetReport(request *GetReportRequest) (response *GetReportResponse, err error) {
+	response = CreateGetReportResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetReportWithChan invokes the address_purification.GetReport API asynchronously
+// api document: https://help.aliyun.com/api/address-purification/getreport.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetReportWithChan(request *GetReportRequest) (<-chan *GetReportResponse, <-chan error) {
+	responseChan := make(chan *GetReportResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetReport(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetReportWithCallback invokes the address_purification.GetReport API asynchronously
+// api document: https://help.aliyun.com/api/address-purification/getreport.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetReportWithCallback(request *GetReportRequest, callback func(response *GetReportResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetReportResponse
+		var err error
+		defer close(result)
+		response, err = client.GetReport(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetReportRequest is the request struct for api GetReport
+type GetReportRequest struct {
+	*requests.RpcRequest
+	ProductCode   string `position:"Body" name:"ProductCode"`
+	ReportType    string `position:"Body" name:"ReportType"`
+	ApiCode       string `position:"Body" name:"ApiCode"`
+	Granularity   string `position:"Body" name:"Granularity"`
+	CommodityCode string `position:"Body" name:"CommodityCode"`
+	Parameters    string `position:"Body" name:"Parameters"`
+}
+
+// GetReportResponse is the response struct for api GetReport
+type GetReportResponse struct {
+	*responses.BaseResponse
+	RequestId  string `json:"RequestId" xml:"RequestId"`
+	ErrCode    string `json:"ErrCode" xml:"ErrCode"`
+	ErrMessage string `json:"ErrMessage" xml:"ErrMessage"`
+	Data       string `json:"Data" xml:"Data"`
+}
+
+// CreateGetReportRequest creates a request to invoke GetReport API
+func CreateGetReportRequest() (request *GetReportRequest) {
+	request = &GetReportRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("address-purification", "2019-11-18", "GetReport", "", "")
+	return
+}
+
+// CreateGetReportResponse creates a response to parse from GetReport response
+func CreateGetReportResponse() (response *GetReportResponse) {
+	response = &GetReportResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/address-purification/get_user_infomation.go

@@ -0,0 +1,107 @@
+package address_purification
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// GetUserInfomation invokes the address_purification.GetUserInfomation API synchronously
+// api document: https://help.aliyun.com/api/address-purification/getuserinfomation.html
+func (client *Client) GetUserInfomation(request *GetUserInfomationRequest) (response *GetUserInfomationResponse, err error) {
+	response = CreateGetUserInfomationResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetUserInfomationWithChan invokes the address_purification.GetUserInfomation API asynchronously
+// api document: https://help.aliyun.com/api/address-purification/getuserinfomation.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetUserInfomationWithChan(request *GetUserInfomationRequest) (<-chan *GetUserInfomationResponse, <-chan error) {
+	responseChan := make(chan *GetUserInfomationResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetUserInfomation(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetUserInfomationWithCallback invokes the address_purification.GetUserInfomation API asynchronously
+// api document: https://help.aliyun.com/api/address-purification/getuserinfomation.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetUserInfomationWithCallback(request *GetUserInfomationRequest, callback func(response *GetUserInfomationResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetUserInfomationResponse
+		var err error
+		defer close(result)
+		response, err = client.GetUserInfomation(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetUserInfomationRequest is the request struct for api GetUserInfomation
+type GetUserInfomationRequest struct {
+	*requests.RpcRequest
+	ProductCode string `position:"Body" name:"ProductCode"`
+	Parameters  string `position:"Body" name:"Parameters"`
+}
+
+// GetUserInfomationResponse is the response struct for api GetUserInfomation
+type GetUserInfomationResponse struct {
+	*responses.BaseResponse
+	RequestId  string `json:"RequestId" xml:"RequestId"`
+	ErrCode    string `json:"ErrCode" xml:"ErrCode"`
+	ErrMessage string `json:"ErrMessage" xml:"ErrMessage"`
+	Data       string `json:"Data" xml:"Data"`
+}
+
+// CreateGetUserInfomationRequest creates a request to invoke GetUserInfomation API
+func CreateGetUserInfomationRequest() (request *GetUserInfomationRequest) {
+	request = &GetUserInfomationRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("address-purification", "2019-11-18", "GetUserInfomation", "", "")
+	return
+}
+
+// CreateGetUserInfomationResponse creates a response to parse from GetUserInfomation response
+func CreateGetUserInfomationResponse() (response *GetUserInfomationResponse) {
+	response = &GetUserInfomationResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}