Categorygithub.com/zcwzcwzcw/lazada-go
modulepackage
0.0.1
Repository: https://github.com/zcwzcwzcw/lazada-go.git
Documentation: pkg.go.dev

# README

lazada-go GoDoc

Lazada library in go

Import

import "github.com/4vn/lazada-go"

Usage

lc := lazada.NewClient("APP KEY", "APP SECRET")

// handle lazada auth callback to get access token
// save token to somewhere for later use
code := "" // get from url params
token, err := lc.GetAccessToken(code)
if err != nil {
	panic(err)
}

lc.SetAccessToken(token.GetAccessToken())
lc := lazada.NewClient("APP KEY", "APP SECRET")
lc.SetAccessToken("ACCESS TOKEN")

// get products
req := &lazada.ListProductsRequest{
	Limit:  100,
	Offset: 0,
	Filter: "all",
}

res, err := lc.ListProducts(req)

License

MIT

# Functions

NewClient creates Client instance.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
required keys in Attributes: name, short_description, brand.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
StringMap is a map[string]string.