Documentation ¶
Overview ¶
Docs: https://market.aliyun.com/products/57126001/cmapi021863.html
Index ¶
- type MarketClient
- func (client MarketClient) CreateOrder(ctx context.Context, option MarketProductOptionWithPrice, ...) (string, error)
- func (client MarketClient) GetPrice(ctx context.Context, id, option string) (*MarketProductOptionWithPrice, error)
- func (client MarketClient) GetProduct(ctx context.Context, id string) (*MarketProductDetails, error)
- func (client MarketClient) GetProducts(ctx context.Context) ([]MarketProduct, error)
- type MarketProduct
- type MarketProductDetails
- type MarketProductOption
- type MarketProductOptionWithPrice
- type WuliuClient
- func (client *WuliuClient) GetProviders(ctx context.Context) ([]WuliuProvider, error)
- func (client WuliuClient) GetProvidersForNumber(ctx context.Context, no string) ([]WuliuProvider, error)
- func (client WuliuClient) GetStatusForNumber(ctx context.Context, code, no string) (*WuliuStatus, error)
- func (client *WuliuClient) MustGetProviders(ctx context.Context) []WuliuProvider
- func (client WuliuClient) MustGetProvidersForNumber(ctx context.Context, no string) []WuliuProvider
- func (client WuliuClient) MustGetStatusForNumber(ctx context.Context, code, no string) *WuliuStatus
- type WuliuProvider
- type WuliuStatus
- type WuliuStatusItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MarketClient ¶ added in v0.0.2
type MarketClient struct {
// contains filtered or unexported fields
}
func NewMarketClient ¶ added in v0.0.2
func NewMarketClient(accessKeyId, accessKeySecret string) *MarketClient
func (MarketClient) CreateOrder ¶ added in v0.0.2
func (client MarketClient) CreateOrder(ctx context.Context, option MarketProductOptionWithPrice, overrides ...interface{}) (string, error)
func (MarketClient) GetPrice ¶ added in v0.0.2
func (client MarketClient) GetPrice(ctx context.Context, id, option string) (*MarketProductOptionWithPrice, error)
func (MarketClient) GetProduct ¶ added in v0.0.2
func (client MarketClient) GetProduct(ctx context.Context, id string) (*MarketProductDetails, error)
func (MarketClient) GetProducts ¶ added in v0.0.2
func (client MarketClient) GetProducts(ctx context.Context) ([]MarketProduct, error)
type MarketProduct ¶ added in v0.0.2
type MarketProductDetails ¶ added in v0.0.2
type MarketProductDetails struct { Id string Name string Description string Options []MarketProductOption }
type MarketProductOption ¶ added in v0.0.2
type MarketProductOptionWithPrice ¶ added in v0.0.2
type WuliuClient ¶
type WuliuClient struct { AppCode string // contains filtered or unexported fields }
func NewWuliuClient ¶
func NewWuliuClient(appCode string) *WuliuClient
func (*WuliuClient) GetProviders ¶
func (client *WuliuClient) GetProviders(ctx context.Context) ([]WuliuProvider, error)
func (WuliuClient) GetProvidersForNumber ¶
func (client WuliuClient) GetProvidersForNumber(ctx context.Context, no string) ([]WuliuProvider, error)
func (WuliuClient) GetStatusForNumber ¶
func (client WuliuClient) GetStatusForNumber(ctx context.Context, code, no string) (*WuliuStatus, error)
func (*WuliuClient) MustGetProviders ¶
func (client *WuliuClient) MustGetProviders(ctx context.Context) []WuliuProvider
func (WuliuClient) MustGetProvidersForNumber ¶
func (client WuliuClient) MustGetProvidersForNumber(ctx context.Context, no string) []WuliuProvider
func (WuliuClient) MustGetStatusForNumber ¶
func (client WuliuClient) MustGetStatusForNumber(ctx context.Context, code, no string) *WuliuStatus
type WuliuProvider ¶
type WuliuStatus ¶
type WuliuStatusItem ¶
Click to show internal directories.
Click to hide internal directories.