imagesearch

package
v0.0.0-...-bbc24d0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 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 AddItemRequest

type AddItemRequest struct {
	*requests.RoaRequest
	InstanceName string `position:"Query" name:"instanceName"`
}

AddItemRequest is the request struct for api AddItem

func CreateAddItemRequest

func CreateAddItemRequest() (request *AddItemRequest)

CreateAddItemRequest creates a request to invoke AddItem API

type AddItemResponse

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

AddItemResponse is the response struct for api AddItem

func CreateAddItemResponse

func CreateAddItemResponse() (response *AddItemResponse)

CreateAddItemResponse creates a response to parse from AddItem response

type AllCategory

type AllCategory struct {
	Category []Category `json:"Category" xml:"Category"`
}

AllCategory is a nested struct in imagesearch response

type Auction

type Auction struct {
	CustContent    string `json:"CustContent" xml:"CustContent"`
	ItemId         string `json:"ItemId" xml:"ItemId"`
	SortExprValues string `json:"SortExprValues" xml:"SortExprValues"`
	CatId          string `json:"CatId" xml:"CatId"`
	PicName        string `json:"PicName" xml:"PicName"`
}

Auction is a nested struct in imagesearch response

type Auctions

type Auctions struct {
	Auction []Auction `json:"Auction" xml:"Auction"`
}

Auctions is a nested struct in imagesearch response

type Category

type Category struct {
	Name string `json:"Name" xml:"Name"`
	Id   string `json:"Id" xml:"Id"`
}

Category is a nested struct in imagesearch 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) AddItem

func (client *Client) AddItem(request *AddItemRequest) (response *AddItemResponse, err error)

AddItem invokes the imagesearch.AddItem API synchronously api document: https://help.aliyun.com/api/imagesearch/additem.html

func (*Client) AddItemWithCallback

func (client *Client) AddItemWithCallback(request *AddItemRequest, callback func(response *AddItemResponse, err error)) <-chan int

AddItemWithCallback invokes the imagesearch.AddItem API asynchronously api document: https://help.aliyun.com/api/imagesearch/additem.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) AddItemWithChan

func (client *Client) AddItemWithChan(request *AddItemRequest) (<-chan *AddItemResponse, <-chan error)

AddItemWithChan invokes the imagesearch.AddItem API asynchronously api document: https://help.aliyun.com/api/imagesearch/additem.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DeleteItem

func (client *Client) DeleteItem(request *DeleteItemRequest) (response *DeleteItemResponse, err error)

DeleteItem invokes the imagesearch.DeleteItem API synchronously api document: https://help.aliyun.com/api/imagesearch/deleteitem.html

func (*Client) DeleteItemWithCallback

func (client *Client) DeleteItemWithCallback(request *DeleteItemRequest, callback func(response *DeleteItemResponse, err error)) <-chan int

DeleteItemWithCallback invokes the imagesearch.DeleteItem API asynchronously api document: https://help.aliyun.com/api/imagesearch/deleteitem.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DeleteItemWithChan

func (client *Client) DeleteItemWithChan(request *DeleteItemRequest) (<-chan *DeleteItemResponse, <-chan error)

DeleteItemWithChan invokes the imagesearch.DeleteItem API asynchronously api document: https://help.aliyun.com/api/imagesearch/deleteitem.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) SearchItem

func (client *Client) SearchItem(request *SearchItemRequest) (response *SearchItemResponse, err error)

SearchItem invokes the imagesearch.SearchItem API synchronously api document: https://help.aliyun.com/api/imagesearch/searchitem.html

func (*Client) SearchItemWithCallback

func (client *Client) SearchItemWithCallback(request *SearchItemRequest, callback func(response *SearchItemResponse, err error)) <-chan int

SearchItemWithCallback invokes the imagesearch.SearchItem API asynchronously api document: https://help.aliyun.com/api/imagesearch/searchitem.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) SearchItemWithChan

func (client *Client) SearchItemWithChan(request *SearchItemRequest) (<-chan *SearchItemResponse, <-chan error)

SearchItemWithChan invokes the imagesearch.SearchItem API asynchronously api document: https://help.aliyun.com/api/imagesearch/searchitem.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

type DeleteItemRequest

type DeleteItemRequest struct {
	*requests.RoaRequest
	InstanceName string `position:"Query" name:"instanceName"`
}

DeleteItemRequest is the request struct for api DeleteItem

func CreateDeleteItemRequest

func CreateDeleteItemRequest() (request *DeleteItemRequest)

CreateDeleteItemRequest creates a request to invoke DeleteItem API

type DeleteItemResponse

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

DeleteItemResponse is the response struct for api DeleteItem

func CreateDeleteItemResponse

func CreateDeleteItemResponse() (response *DeleteItemResponse)

CreateDeleteItemResponse creates a response to parse from DeleteItem response

type Head struct {
	SearchTime int `json:"SearchTime" xml:"SearchTime"`
	DocsFound  int `json:"DocsFound" xml:"DocsFound"`
	DocsReturn int `json:"DocsReturn" xml:"DocsReturn"`
}

Head is a nested struct in imagesearch response

type PicInfo

type PicInfo struct {
	Category    string      `json:"Category" xml:"Category"`
	Region      string      `json:"Region" xml:"Region"`
	AllCategory AllCategory `json:"AllCategory" xml:"AllCategory"`
}

PicInfo is a nested struct in imagesearch response

type SearchItemRequest

type SearchItemRequest struct {
	*requests.RoaRequest
	InstanceName string `position:"Query" name:"instanceName"`
}

SearchItemRequest is the request struct for api SearchItem

func CreateSearchItemRequest

func CreateSearchItemRequest() (request *SearchItemRequest)

CreateSearchItemRequest creates a request to invoke SearchItem API

type SearchItemResponse

type SearchItemResponse struct {
	*responses.BaseResponse
	RequestId string   `json:"RequestId" xml:"RequestId"`
	Success   bool     `json:"Success" xml:"Success"`
	Message   string   `json:"Message" xml:"Message"`
	Code      int      `json:"Code" xml:"Code"`
	Head      Head     `json:"Head" xml:"Head"`
	PicInfo   PicInfo  `json:"PicInfo" xml:"PicInfo"`
	Auctions  Auctions `json:"Auctions" xml:"Auctions"`
}

SearchItemResponse is the response struct for api SearchItem

func CreateSearchItemResponse

func CreateSearchItemResponse() (response *SearchItemResponse)

CreateSearchItemResponse creates a response to parse from SearchItem response

Jump to

Keyboard shortcuts

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