Documentation ¶
Index ¶
- Variables
- func GetDataAllFilterConfig(fname string) (*os.File, error)
- type Fcity
- type GraphqlPayload
- type PubShippingItem
- type TokopediaApiPublic
- func (api *TokopediaApiPublic) AceSearchShop(payload *model_public.ParamsVar) (*model_public.AceSearchShopResp, error)
- func (api *TokopediaApiPublic) CategoryAllListLite() (*model_public.CategoryAllListLiteResp, error)
- func (api *TokopediaApiPublic) DiscussionDataByProductID(payload *model_public.DiscussionDataProductByIDVar) (*model_public.DiscussionDataProductByIDResp, error)
- func (api *TokopediaApiPublic) FilterSortProductQuery(payload *model_public.ParamsVar) (*model_public.FilterSortProductResp, error)
- func (api *TokopediaApiPublic) GetDrogonAnnotation(payload *model_public.GetDrogonAnnotationVar) (*model_public.GetDrogonAnnotationResp, error)
- func (api *TokopediaApiPublic) GetShopOperationalHourStatus(payload *model_public.ShopIdVar) (*model_public.GetShopOperationalHourStatusResp, error)
- func (api *TokopediaApiPublic) HeaderMainData() (*model_public.HeaderMainDataResp, error)
- func (api *TokopediaApiPublic) JarvisRecommendation(prodname string) (*model_public.JarvisRecommendationResp, error)
- func (api *TokopediaApiPublic) LocDisctricRecommendation(payload *model_public.LocDisctricRecommendationVar) (*model_public.LocDisctricRecommendationResp, error)
- func (api *TokopediaApiPublic) NewGraphqlReq(payload *GraphqlPayload) *http.Request
- func (api *TokopediaApiPublic) NewGraphqlReqBatch(operationName string, payloads []*GraphqlPayload) (*http.Request, error)
- func (api *TokopediaApiPublic) NewRequest(method, ur string, query any, body io.Reader) *http.Request
- func (api *TokopediaApiPublic) PdpGetDataP2(payload *model_public.PdpGetDataP2Var) (*model_public.PdpGetDataP2Resp, error)
- func (api *TokopediaApiPublic) PdpGetReiewImageQuery(payload *model_public.PdpGetReiewImageQueryVar) (*model_public.PdpGetReiewImageQueryResp, error)
- func (api *TokopediaApiPublic) PdpGetlayoutQuery(payload *model_public.PdpGetlayoutQueryVar) (*model_public.PdpGetlayoutQueryResp, error)
- func (api *TokopediaApiPublic) PdpGetlayoutQueryBatch(payloads []*model_public.PdpGetlayoutQueryVar) ([]*model_public.PdpGetlayoutQueryResp, error)
- func (api *TokopediaApiPublic) PdpGetlayoutQueryFromUrl(uristr string) (*model_public.PdpGetlayoutQueryResp, error)
- func (api *TokopediaApiPublic) PdpShopNote(payload *model_public.ShopIdVar) (*model_public.PdpShopNoteResp, error)
- func (api *TokopediaApiPublic) ProductRatingandTopics(payload *model_public.ProductIdVar) (*model_public.ProductRatingandTopicsResp, error)
- func (api *TokopediaApiPublic) ProductReviewList(payload *model_public.ProductReviewListVar) (*model_public.ProductReviewListResp, error)
- func (api *TokopediaApiPublic) RatesEstimateQuery(payload *model_public.RatesEstimateQueryVar) (*model_public.RatesEstimateQueryResp, error)
- func (api *TokopediaApiPublic) RecomWidget(payload *model_public.RecomWidgetVar) (*model_public.RecomWidgetResp, error)
- func (api *TokopediaApiPublic) SearchProductQuery(payload *model_public.SearchProductQueryVar) (*model_public.SearchProductQueryResp, error)
- func (api *TokopediaApiPublic) SearchProductQueryV4(payload *model_public.ParamsVar) (*model_public.SearchProductQueryV4Resp, error)
- func (api *TokopediaApiPublic) SendRequest(req *http.Request, hasil any) error
- func (api *TokopediaApiPublic) ShopCoreInfo(payload *model_public.ShopCoreInfoVar) (*model_public.ShopCoreInfoResp, error)
- func (api *TokopediaApiPublic) ShopNote(payload *model_public.ShopNoteVar) (*model_public.ShopNoteResp, error)
- func (api *TokopediaApiPublic) ShopPageLayoutV2(payload *model_public.ShopPageGetLayoutV2Var) (*model_public.ShopPageGetLayoutV2Resp, error)
- func (api *TokopediaApiPublic) ShopProducts(payload *model_public.ShopProductVar) (*model_public.ShopProductResp, error)
- func (api *TokopediaApiPublic) ShopSpeedQuery(payload *model_public.ShopIdStrVar) (*model_public.ShopSpeedQueryResp, error)
- func (api *TokopediaApiPublic) ShopStatisticQuery(payload *model_public.ShopStatisticQueryVar) (*model_public.ShopStatisticQueryResp, error)
- func (api *TokopediaApiPublic) TopadsProductQuery(payload *model_public.AdParamsVar) (*model_public.TopadsProductQueryResp, error)
- func (api *TokopediaApiPublic) VariantCombinationQuery(payload *model_public.VariantCategoryCombinationVar) (*model_public.VariantCategoryCombinationResp, error)
- func (api *TokopediaApiPublic) VoucherListQuery(payload *model_public.ShopIdVarInt) (*model_public.ShopVoucherQueryResp, error)
- type TokpedHttpClient
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrGraphqlBatchNoOperationName = errors.New("graphql batch no operation name")
View Source
var ErrGraphqlBatchNoQuery = errors.New("graphql batch no query")
Functions ¶
Types ¶
type Fcity ¶ added in v1.1.2
type Fcity struct { Description string `json:"Description"` Typename string `json:"__typename"` Child []any `json:"child"` HexColor string `json:"hexColor"` Icon string `json:"icon"` InputType string `json:"inputType"` IsNew bool `json:"isNew"` IsPopular bool `json:"isPopular"` Key string `json:"key"` Name string `json:"name"` TotalData string `json:"totalData"` ValMax string `json:"valMax"` ValMin string `json:"valMin"` Value string `json:"value"` }
type GraphqlPayload ¶
type PubShippingItem ¶ added in v1.1.20
type PubShippingItem struct { Name string `json:"name"` Description string `json:"Description"` Key string `json:"key"` Icon string `json:"icon"` Value string `json:"value"` InputType string `json:"inputType"` TotalData string `json:"totalData"` ValMax string `json:"valMax"` ValMin string `json:"valMin"` HexColor string `json:"hexColor"` Child []any `json:"child"` IsPopular bool `json:"isPopular"` IsNew bool `json:"isNew"` Typename string `json:"__typename"` }
func GetPubShippings ¶ added in v1.1.20
func GetPubShippings(fname string) ([]*PubShippingItem, error)
type TokopediaApiPublic ¶
func NewTokopediaApiPublic ¶
func NewTokopediaApiPublic() (*TokopediaApiPublic, error)
func (*TokopediaApiPublic) AceSearchShop ¶
func (api *TokopediaApiPublic) AceSearchShop(payload *model_public.ParamsVar) (*model_public.AceSearchShopResp, error)
func (*TokopediaApiPublic) CategoryAllListLite ¶
func (api *TokopediaApiPublic) CategoryAllListLite() (*model_public.CategoryAllListLiteResp, error)
func (*TokopediaApiPublic) DiscussionDataByProductID ¶
func (api *TokopediaApiPublic) DiscussionDataByProductID(payload *model_public.DiscussionDataProductByIDVar) (*model_public.DiscussionDataProductByIDResp, error)
func (*TokopediaApiPublic) FilterSortProductQuery ¶
func (api *TokopediaApiPublic) FilterSortProductQuery(payload *model_public.ParamsVar) (*model_public.FilterSortProductResp, error)
func (*TokopediaApiPublic) GetDrogonAnnotation ¶
func (api *TokopediaApiPublic) GetDrogonAnnotation(payload *model_public.GetDrogonAnnotationVar) (*model_public.GetDrogonAnnotationResp, error)
func (*TokopediaApiPublic) GetShopOperationalHourStatus ¶
func (api *TokopediaApiPublic) GetShopOperationalHourStatus(payload *model_public.ShopIdVar) (*model_public.GetShopOperationalHourStatusResp, error)
func (*TokopediaApiPublic) HeaderMainData ¶ added in v1.1.5
func (api *TokopediaApiPublic) HeaderMainData() (*model_public.HeaderMainDataResp, error)
func (*TokopediaApiPublic) JarvisRecommendation ¶
func (api *TokopediaApiPublic) JarvisRecommendation(prodname string) (*model_public.JarvisRecommendationResp, error)
category recom
func (*TokopediaApiPublic) LocDisctricRecommendation ¶
func (api *TokopediaApiPublic) LocDisctricRecommendation(payload *model_public.LocDisctricRecommendationVar) (*model_public.LocDisctricRecommendationResp, error)
func (*TokopediaApiPublic) NewGraphqlReq ¶
func (api *TokopediaApiPublic) NewGraphqlReq(payload *GraphqlPayload) *http.Request
func (*TokopediaApiPublic) NewGraphqlReqBatch ¶ added in v1.1.5
func (api *TokopediaApiPublic) NewGraphqlReqBatch(operationName string, payloads []*GraphqlPayload) (*http.Request, error)
func (*TokopediaApiPublic) NewRequest ¶
func (*TokopediaApiPublic) PdpGetDataP2 ¶
func (api *TokopediaApiPublic) PdpGetDataP2(payload *model_public.PdpGetDataP2Var) (*model_public.PdpGetDataP2Resp, error)
func (*TokopediaApiPublic) PdpGetReiewImageQuery ¶
func (api *TokopediaApiPublic) PdpGetReiewImageQuery(payload *model_public.PdpGetReiewImageQueryVar) (*model_public.PdpGetReiewImageQueryResp, error)
func (*TokopediaApiPublic) PdpGetlayoutQuery ¶
func (api *TokopediaApiPublic) PdpGetlayoutQuery(payload *model_public.PdpGetlayoutQueryVar) (*model_public.PdpGetlayoutQueryResp, error)
func (*TokopediaApiPublic) PdpGetlayoutQueryBatch ¶ added in v1.1.5
func (api *TokopediaApiPublic) PdpGetlayoutQueryBatch(payloads []*model_public.PdpGetlayoutQueryVar) ([]*model_public.PdpGetlayoutQueryResp, error)
func (*TokopediaApiPublic) PdpGetlayoutQueryFromUrl ¶ added in v1.1.7
func (api *TokopediaApiPublic) PdpGetlayoutQueryFromUrl(uristr string) (*model_public.PdpGetlayoutQueryResp, error)
func (*TokopediaApiPublic) PdpShopNote ¶
func (api *TokopediaApiPublic) PdpShopNote(payload *model_public.ShopIdVar) (*model_public.PdpShopNoteResp, error)
func (*TokopediaApiPublic) ProductRatingandTopics ¶
func (api *TokopediaApiPublic) ProductRatingandTopics(payload *model_public.ProductIdVar) (*model_public.ProductRatingandTopicsResp, error)
func (*TokopediaApiPublic) ProductReviewList ¶
func (api *TokopediaApiPublic) ProductReviewList(payload *model_public.ProductReviewListVar) (*model_public.ProductReviewListResp, error)
func (*TokopediaApiPublic) RatesEstimateQuery ¶ added in v1.0.2
func (api *TokopediaApiPublic) RatesEstimateQuery(payload *model_public.RatesEstimateQueryVar) (*model_public.RatesEstimateQueryResp, error)
func (*TokopediaApiPublic) RecomWidget ¶
func (api *TokopediaApiPublic) RecomWidget(payload *model_public.RecomWidgetVar) (*model_public.RecomWidgetResp, error)
func (*TokopediaApiPublic) SearchProductQuery ¶ added in v1.0.2
func (api *TokopediaApiPublic) SearchProductQuery(payload *model_public.SearchProductQueryVar) (*model_public.SearchProductQueryResp, error)
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 (api *TokopediaApiPublic) ShopCoreInfo(payload *model_public.ShopCoreInfoVar) (*model_public.ShopCoreInfoResp, error)
func (*TokopediaApiPublic) ShopNote ¶
func (api *TokopediaApiPublic) ShopNote(payload *model_public.ShopNoteVar) (*model_public.ShopNoteResp, error)
func (*TokopediaApiPublic) ShopPageLayoutV2 ¶
func (api *TokopediaApiPublic) ShopPageLayoutV2(payload *model_public.ShopPageGetLayoutV2Var) (*model_public.ShopPageGetLayoutV2Resp, error)
func (*TokopediaApiPublic) ShopProducts ¶
func (api *TokopediaApiPublic) ShopProducts(payload *model_public.ShopProductVar) (*model_public.ShopProductResp, error)
func (*TokopediaApiPublic) ShopSpeedQuery ¶
func (api *TokopediaApiPublic) ShopSpeedQuery(payload *model_public.ShopIdStrVar) (*model_public.ShopSpeedQueryResp, error)
func (*TokopediaApiPublic) ShopStatisticQuery ¶
func (api *TokopediaApiPublic) ShopStatisticQuery(payload *model_public.ShopStatisticQueryVar) (*model_public.ShopStatisticQueryResp, error)
func (*TokopediaApiPublic) TopadsProductQuery ¶
func (api *TokopediaApiPublic) TopadsProductQuery(payload *model_public.AdParamsVar) (*model_public.TopadsProductQueryResp, error)
func (*TokopediaApiPublic) VariantCombinationQuery ¶
func (api *TokopediaApiPublic) VariantCombinationQuery(payload *model_public.VariantCategoryCombinationVar) (*model_public.VariantCategoryCombinationResp, error)
func (*TokopediaApiPublic) VoucherListQuery ¶
func (api *TokopediaApiPublic) VoucherListQuery(payload *model_public.ShopIdVarInt) (*model_public.ShopVoucherQueryResp, error)
type TokpedHttpClient ¶ added in v1.1.31
func NewTokpedHttpClient ¶ added in v1.1.31
func NewTokpedHttpClient() *TokpedHttpClient
Source Files ¶
Click to show internal directories.
Click to hide internal directories.