Socket
Socket
Sign inDemoInstall

github.com/hotafrika/ebay-finding-api

Package Overview
Dependencies
2
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/hotafrika/ebay-finding-api


Version published

Readme

Source

example workflow

Golang library implementation of eBay Finding API

You can check all the Finding API search options and limitations here

Example

package main

import (
	"fmt"
	"github.com/hotafrika/ebay-finding-api"
)

func main() {
	// Create Finding API service
	s := finding.NewService("your-sec-app-name").WithPageLimit(50)
	// Create findItemsAdvanced call request
	r := s.NewAdvancedRequest()
	// Set few search parameters
	r.WithDescriptionSearch(true)
	r.WithKeywords("harry potter")
	r.WithItemFilterCondition(finding.ConditionGood, finding.ConditionNew)
	r.WithItemFilterMaxPriceWithCurrency(100, finding.CurrencyIDUSD)
	r.WithSortOrder(finding.SortOrderCurrentPriceHighest)
	r.WithPageLimit(1)
	r.WithOutputSelectors(finding.OutputSelectorAspectHistogram,
		finding.OutputSelectorSellerInfo,
		finding.OutputSelectorStoreInfo,
		finding.OutputSelectorUnitPriceInfo,
		finding.OutputSelectorGalleryInfo,
		finding.OutputSelectorPictureURLSuperSize,
		finding.OutputSelectorConditionHistogram,
		finding.OutputSelectorCategoryHistogram,
		finding.OutputSelectorPictureURLLarge)
	// Get first page
	res, err := r.Execute()
	if err != nil {
		panic(err)
	}
	fmt.Printf("%+v", res)
	// Get second page
	res2, err := r.GetPage(2)
	if err != nil {
		panic(err)
	}
	fmt.Printf("%+v", res2)
}

FAQs

Last updated on 25 Jan 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc