api_public

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClientApi *http.Client = &http.Client{
	Transport: &http.Transport{
		MaxIdleConnsPerHost: 5,
	},
	Timeout: 30 * time.Second,
}

Functions

This section is empty.

Types

type GraphqlPayload

type GraphqlPayload struct {
	OperationName string      `json:"operationName"`
	Variables     interface{} `json:"variables"`
	Query         string      `json:"query"`
}

type SessionPublic

type SessionPublic struct {
	Cookies []*http.Cookie
	Ua      string
}

type TokopediaApiPublic

type TokopediaApiPublic struct {
	Session SessionPublic
}

func NewTokopediaApiPublic

func NewTokopediaApiPublic() (*TokopediaApiPublic, error)

func (*TokopediaApiPublic) AceSearchShop

func (*TokopediaApiPublic) CategoryAllListLite

func (api *TokopediaApiPublic) CategoryAllListLite() (*model_public.CategoryAllListLiteResp, error)

func (*TokopediaApiPublic) DiscussionDataByProductID

func (*TokopediaApiPublic) FilterSortProductQuery

func (api *TokopediaApiPublic) FilterSortProductQuery(payload *model_public.ParamsVar) (*model_public.FilterSortProductResp, error)

func (*TokopediaApiPublic) GetDrogonAnnotation

func (*TokopediaApiPublic) GetShopOperationalHourStatus

func (api *TokopediaApiPublic) GetShopOperationalHourStatus(payload *model_public.ShopIdVar) (*model_public.GetShopOperationalHourStatusResp, error)

func (*TokopediaApiPublic) JarvisRecommendation

func (api *TokopediaApiPublic) JarvisRecommendation(prodname string) (*model_public.JarvisRecommendationResp, error)

category recom

func (*TokopediaApiPublic) LocDisctricRecommendation

func (*TokopediaApiPublic) NewGraphqlReq

func (api *TokopediaApiPublic) NewGraphqlReq(payload *GraphqlPayload) *http.Request

func (*TokopediaApiPublic) NewRequest

func (api *TokopediaApiPublic) NewRequest(method, ur string, query any, body io.Reader) *http.Request

func (*TokopediaApiPublic) PdpGetDataP2

func (*TokopediaApiPublic) PdpGetReiewImageQuery

func (*TokopediaApiPublic) PdpGetlayoutQuery

func (*TokopediaApiPublic) PdpShopNote

func (*TokopediaApiPublic) ProductRatingandTopics

func (*TokopediaApiPublic) ProductReviewList

func (*TokopediaApiPublic) RatesEstimateQuery added in v1.0.2

func (*TokopediaApiPublic) RecomWidget

func (*TokopediaApiPublic) SearchProductQuery added in v1.0.2

func (*TokopediaApiPublic) SearchProductQueryV4

func (api *TokopediaApiPublic) SearchProductQueryV4(payload *model_public.ParamsVar) (*model_public.SearchProductQueryV4Resp, error)

func (*TokopediaApiPublic) SendRequest

func (api *TokopediaApiPublic) SendRequest(req *http.Request, hasil any) error

func (*TokopediaApiPublic) ShopCoreInfo

func (*TokopediaApiPublic) ShopNote

func (*TokopediaApiPublic) ShopPageLayoutV2

func (*TokopediaApiPublic) ShopProducts

func (*TokopediaApiPublic) ShopSpeedQuery

func (*TokopediaApiPublic) ShopStatisticQuery

func (*TokopediaApiPublic) TopadsProductQuery

func (*TokopediaApiPublic) VoucherListQuery

Jump to

Keyboard shortcuts

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