modulepackage
0.0.0-20230829160414-1d2f2dc7f100
Repository: https://github.com/passwind/go-shopee-v2.git
Documentation: pkg.go.dev
# README
go-shopee-v2
Shopee API v2 with golang
https://open.shopee.com/documents?module=87&type=2&id=58&version=2
go-shopee for Shopee API v1
Frankly, Shopee v2 is too different from v1. Have to set up this repo for v2.
How to use
Initialize Client And request shop info
app := goshopee.App{
PartnerID: 133456,
PartnerKey: "xxxxxxxxx",
APIURL: "https://xxxxx",
RedirectURL: "https://yourdomain/usercallback",
}
client := goshopee.NewClient(app, goshopee.WithRetry(3), goshopee.WithLogger(NewLogger()))
// auth url
authUrl, err := client.Auth.GetAuthURL()
// fetch access token
// code from https://yourdomain/usercallback?code=xxxxx&shop_id=123456
res, err: client.Auth.GetAccessToken(sid, 0, code)
tok:=res.AccessToken
// fetch shop info
client.Shop.GetShopInfo(sid, tok)
Thanks to
- go-shopify Inspire me and provide a base structure
# Functions
shopee error maybe return status=200 eg.
NewClient returns a new Shopify API client with an already authenticated shopname and token.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# 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
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
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
https://open.shopee.com/documents?module=89&type=1&id=616&version=2.
No description provided by the author
https://open.shopee.com/documents?module=89&type=1&id=649&version=2.
No description provided by the author
No description provided by the author
No description provided by the author
App represents basic app settings such as Api key, secret, scope, and redirect url.
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
Client manages communication with the Shopify API.
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
https://open.shopee.com/documents?module=95&type=1&id=559&version=2.
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
https://open.shopee.com/documents?module=94&type=1&id=557&version=2.
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
https://open.shopee.com/documents?module=89&type=1&id=612&version=2.
No description provided by the author
It prints warnings and errors to `os.Stderr` and other messages to `os.Stdout`.
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
An error specific to a rate-limiting response.
No description provided by the author
No description provided by the author
No description provided by the author
ResponseDecodingError occurs when the response body from Shopify could not be parsed.
A general response error that follows a similar layout to Shopify's response errors, i.e.
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
TODO: response is too simple? https://open.shopee.com/documents?module=89&type=1&id=648&version=2.
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
https://open.shopee.com/documents?module=91&type=1&id=660&version=2.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
https://open.shopee.com/documents?module=87&type=2&id=58&version=2.
No description provided by the author
No description provided by the author
No description provided by the author
.
https://open.shopee.com/documents/v2/v2.merchant.get_shop_list_by_merchant?module=93&type=1.
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
Option is used to configure client with options.
cause item_promotion_price & purchase_limit are optional if not needed, must not set them in parameters.