iqs

package
v1.63.77 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

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://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

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 NewClientWithProvider

func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)

NewClientWithProvider creates a sdk client with providers usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

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://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRamRoleArnAndPolicy

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

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 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 usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

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://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func (*Client) CommonQueryByScene

func (client *Client) CommonQueryByScene(request *CommonQueryBySceneRequest) (response *CommonQueryBySceneResponse, err error)

CommonQueryByScene invokes the iqs.CommonQueryByScene API synchronously

func (*Client) CommonQueryBySceneWithCallback

func (client *Client) CommonQueryBySceneWithCallback(request *CommonQueryBySceneRequest, callback func(response *CommonQueryBySceneResponse, err error)) <-chan int

CommonQueryBySceneWithCallback invokes the iqs.CommonQueryByScene API asynchronously

func (*Client) CommonQueryBySceneWithChan

func (client *Client) CommonQueryBySceneWithChan(request *CommonQueryBySceneRequest) (<-chan *CommonQueryBySceneResponse, <-chan error)

CommonQueryBySceneWithChan invokes the iqs.CommonQueryByScene API asynchronously

func (*Client) QueryAttractions

func (client *Client) QueryAttractions(request *QueryAttractionsRequest) (response *QueryAttractionsResponse, err error)

QueryAttractions invokes the iqs.QueryAttractions API synchronously

func (*Client) QueryAttractionsWithCallback

func (client *Client) QueryAttractionsWithCallback(request *QueryAttractionsRequest, callback func(response *QueryAttractionsResponse, err error)) <-chan int

QueryAttractionsWithCallback invokes the iqs.QueryAttractions API asynchronously

func (*Client) QueryAttractionsWithChan

func (client *Client) QueryAttractionsWithChan(request *QueryAttractionsRequest) (<-chan *QueryAttractionsResponse, <-chan error)

QueryAttractionsWithChan invokes the iqs.QueryAttractions API asynchronously

func (*Client) QueryHotels

func (client *Client) QueryHotels(request *QueryHotelsRequest) (response *QueryHotelsResponse, err error)

QueryHotels invokes the iqs.QueryHotels API synchronously

func (*Client) QueryHotelsWithCallback

func (client *Client) QueryHotelsWithCallback(request *QueryHotelsRequest, callback func(response *QueryHotelsResponse, err error)) <-chan int

QueryHotelsWithCallback invokes the iqs.QueryHotels API asynchronously

func (*Client) QueryHotelsWithChan

func (client *Client) QueryHotelsWithChan(request *QueryHotelsRequest) (<-chan *QueryHotelsResponse, <-chan error)

QueryHotelsWithChan invokes the iqs.QueryHotels API asynchronously

func (*Client) QueryRestaurants

func (client *Client) QueryRestaurants(request *QueryRestaurantsRequest) (response *QueryRestaurantsResponse, err error)

QueryRestaurants invokes the iqs.QueryRestaurants API synchronously

func (*Client) QueryRestaurantsWithCallback

func (client *Client) QueryRestaurantsWithCallback(request *QueryRestaurantsRequest, callback func(response *QueryRestaurantsResponse, err error)) <-chan int

QueryRestaurantsWithCallback invokes the iqs.QueryRestaurants API asynchronously

func (*Client) QueryRestaurantsWithChan

func (client *Client) QueryRestaurantsWithChan(request *QueryRestaurantsRequest) (<-chan *QueryRestaurantsResponse, <-chan error)

QueryRestaurantsWithChan invokes the iqs.QueryRestaurants API asynchronously

type CommonQueryBySceneRequest

type CommonQueryBySceneRequest struct {
	*requests.RoaRequest
}

CommonQueryBySceneRequest is the request struct for api CommonQueryByScene

func CreateCommonQueryBySceneRequest

func CreateCommonQueryBySceneRequest() (request *CommonQueryBySceneRequest)

CreateCommonQueryBySceneRequest creates a request to invoke CommonQueryByScene API

type CommonQueryBySceneResponse

type CommonQueryBySceneResponse struct {
	*responses.BaseResponse
	Data []DataItem `json:"data" xml:"data"`
}

CommonQueryBySceneResponse is the response struct for api CommonQueryByScene

func CreateCommonQueryBySceneResponse

func CreateCommonQueryBySceneResponse() (response *CommonQueryBySceneResponse)

CreateCommonQueryBySceneResponse creates a response to parse from CommonQueryByScene response

type DataInCommonQueryByScene

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

DataInCommonQueryByScene is a nested struct in iqs response

type DataInQueryAttractions

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

DataInQueryAttractions is a nested struct in iqs response

type DataInQueryHotels

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

DataInQueryHotels is a nested struct in iqs response

type DataInQueryRestaurants

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

DataInQueryRestaurants is a nested struct in iqs response

type DataItem

type DataItem struct {
	CityCode     string       `json:"cityCode" xml:"cityCode"`
	ProvinceCode string       `json:"provinceCode" xml:"provinceCode"`
	TypeCode     string       `json:"typeCode" xml:"typeCode"`
	Longitude    string       `json:"longitude" xml:"longitude"`
	CityName     string       `json:"cityName" xml:"cityName"`
	DistrictCode string       `json:"districtCode" xml:"districtCode"`
	DistrictName string       `json:"districtName" xml:"districtName"`
	Types        string       `json:"types" xml:"types"`
	Address      string       `json:"address" xml:"address"`
	Name         string       `json:"name" xml:"name"`
	ProvinceName string       `json:"provinceName" xml:"provinceName"`
	Latitude     string       `json:"latitude" xml:"latitude"`
	Id           string       `json:"id" xml:"id"`
	Metadata     Metadata     `json:"metadata" xml:"metadata"`
	Images       []ImagesItem `json:"images" xml:"images"`
}

DataItem is a nested struct in iqs response

type ImagesInCommonQueryByScene

type ImagesInCommonQueryByScene struct {
	ImagesItem []ImagesItem `json:"images" xml:"images"`
}

ImagesInCommonQueryByScene is a nested struct in iqs response

type ImagesInQueryAttractions

type ImagesInQueryAttractions struct {
	ImagesItem []ImagesItem `json:"images" xml:"images"`
}

ImagesInQueryAttractions is a nested struct in iqs response

type ImagesInQueryHotels

type ImagesInQueryHotels struct {
	ImagesItem []ImagesItem `json:"images" xml:"images"`
}

ImagesInQueryHotels is a nested struct in iqs response

type ImagesInQueryRestaurants

type ImagesInQueryRestaurants struct {
	ImagesItem []ImagesItem `json:"images" xml:"images"`
}

ImagesInQueryRestaurants is a nested struct in iqs response

type ImagesItem

type ImagesItem struct {
	Title string `json:"title" xml:"title"`
	Url   string `json:"url" xml:"url"`
}

ImagesItem is a nested struct in iqs response

type Metadata

type Metadata struct {
	MainTag           string `json:"mainTag" xml:"mainTag"`
	WeeklyOpeningDays string `json:"weeklyOpeningDays" xml:"weeklyOpeningDays"`
	Score             string `json:"score" xml:"score"`
	Phone             string `json:"phone" xml:"phone"`
	BusinessArea      string `json:"businessArea" xml:"businessArea"`
	DailyOpeningHours string `json:"dailyOpeningHours" xml:"dailyOpeningHours"`
}

Metadata is a nested struct in iqs response

type QueryAttractionsRequest

type QueryAttractionsRequest struct {
	*requests.RoaRequest
}

QueryAttractionsRequest is the request struct for api QueryAttractions

func CreateQueryAttractionsRequest

func CreateQueryAttractionsRequest() (request *QueryAttractionsRequest)

CreateQueryAttractionsRequest creates a request to invoke QueryAttractions API

type QueryAttractionsResponse

type QueryAttractionsResponse struct {
	*responses.BaseResponse
	RequestId   string      `json:"requestId" xml:"requestId"`
	QueryResult QueryResult `json:"queryResult" xml:"queryResult"`
}

QueryAttractionsResponse is the response struct for api QueryAttractions

func CreateQueryAttractionsResponse

func CreateQueryAttractionsResponse() (response *QueryAttractionsResponse)

CreateQueryAttractionsResponse creates a response to parse from QueryAttractions response

type QueryHotelsRequest

type QueryHotelsRequest struct {
	*requests.RoaRequest
}

QueryHotelsRequest is the request struct for api QueryHotels

func CreateQueryHotelsRequest

func CreateQueryHotelsRequest() (request *QueryHotelsRequest)

CreateQueryHotelsRequest creates a request to invoke QueryHotels API

type QueryHotelsResponse

type QueryHotelsResponse struct {
	*responses.BaseResponse
	RequestId   string      `json:"requestId" xml:"requestId"`
	QueryResult QueryResult `json:"queryResult" xml:"queryResult"`
}

QueryHotelsResponse is the response struct for api QueryHotels

func CreateQueryHotelsResponse

func CreateQueryHotelsResponse() (response *QueryHotelsResponse)

CreateQueryHotelsResponse creates a response to parse from QueryHotels response

type QueryRestaurantsRequest

type QueryRestaurantsRequest struct {
	*requests.RoaRequest
}

QueryRestaurantsRequest is the request struct for api QueryRestaurants

func CreateQueryRestaurantsRequest

func CreateQueryRestaurantsRequest() (request *QueryRestaurantsRequest)

CreateQueryRestaurantsRequest creates a request to invoke QueryRestaurants API

type QueryRestaurantsResponse

type QueryRestaurantsResponse struct {
	*responses.BaseResponse
	RequestId   string      `json:"requestId" xml:"requestId"`
	QueryResult QueryResult `json:"queryResult" xml:"queryResult"`
}

QueryRestaurantsResponse is the response struct for api QueryRestaurants

func CreateQueryRestaurantsResponse

func CreateQueryRestaurantsResponse() (response *QueryRestaurantsResponse)

CreateQueryRestaurantsResponse creates a response to parse from QueryRestaurants response

type QueryResult

type QueryResult struct {
	Data []DataItem `json:"data" xml:"data"`
}

QueryResult is a nested struct in iqs response

Jump to

Keyboard shortcuts

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