func (c *Client) SearchImageByImage(lib string, args *api.BaseRequest) (*api.SearchTaskResultResponse, error) {
	return api.SearchImageByImage(c, lib, args)
}
SearchImageByImage - search images by a image
PARAMS:
- lib: image library name
- args: image source and description
RETURN:
- BaseResponse: the result of search
- error: nil if success otherwise the specific error
package mms
import (
	"github.com/baidubce/bce-sdk-go/auth"
	"github.com/baidubce/bce-sdk-go/bce"
	"github.com/baidubce/bce-sdk-go/services/mms/api"
)
const (
	DEFAULT_SERVICE_DOMAIN = "mms." + bce.DEFAULT_REGION + "." + bce.DEFAULT_DOMAIN
)
type Client struct {
	*bce.BceClient
}
func NewClient(ak, sk, endpoint string) (*Client, error) {
	credentials, err := auth.NewBceCredentials(ak, sk)
	if err != nil {
		return nil, err
	}
	if len(endpoint) == 0 {
		endpoint = DEFAULT_SERVICE_DOMAIN
	}
	defaultSignOptions := &auth.SignOptions{
		HeadersToSign: auth.DEFAULT_HEADERS_TO_SIGN,
		ExpireSeconds: auth.DEFAULT_EXPIRE_SECONDS}
	defaultConf := &bce.BceClientConfiguration{
		Endpoint:                  endpoint,
		Region:                    bce.DEFAULT_REGION,
		UserAgent:                 bce.DEFAULT_USER_AGENT,
		Credentials:               credentials,
		SignOption:                defaultSignOptions,
		Retry:                     bce.DEFAULT_RETRY_POLICY,
		ConnectionTimeoutInMillis: bce.DEFAULT_CONNECTION_TIMEOUT_IN_MILLIS}
	v1Signer := &auth.BceV1Signer{}
	client := &Client{bce.NewBceClient(defaultConf, v1Signer)}
	return client, nil
}
func (c *Client) InsertVideo(lib string, args *api.BaseRequest) (*api.BaseResponse, error) {
	return api.InsertVideo(c, lib, args)
}
func (c *Client) GetInsertVideoResult(lib, source string) (*api.BaseResponse, error) {
	return api.GetInsertVideoResult(c, lib, source)
}
func (c *Client) DeleteVideo(lib, source string) (*api.BaseResponse, error) {
	return api.DeleteVideo(c, lib, source)
}
func (c *Client) InsertImage(lib string, args *api.BaseRequest) (*api.BaseResponse, error) {
	return api.InsertImage(c, lib, args)
}
func (c *Client) DeleteImage(lib, source string) (*api.BaseResponse, error) {
	return api.DeleteImage(c, lib, source)
}