/yahoo-client-go

Yahoo Japan Web Api Client in go (shopping & auction)

Primary LanguageGoMIT LicenseMIT

yahoo-client-go

GoDoc Coverage Status Build Status

yahoo-client-go is a go client library for yahoo japan web api.

Installation

go get -u github.com/pdevty/yahoo-client-go

Usage

import yahoo "github.com/pdevty/yahoo-client-go"
shopping := yahoo.NewShopping("<put your appid>")

resultset, _ := shopping.ItemSearch(&yahoo.ItemSearchParam{
	Query: "vaio",
})

for _, v := range resultset.Result.Hit {
	fmt.Println(v.Category.Current.ID)
}
auction := yahoo.NewAuction("<put your appid>")

resultset, _ := auction.CategoryLeaf(&yahoo.CategoryLeafParam{
	Category: "2084193603",
})

for _, v := range resultset.Result.Item {
	fmt.Println(v.Seller.ID)
}
# shopping
shopping.ItemSearch(&yahoo.ItemSearchParam{})
shopping.CategoryRanking(&yahoo.CategoryRankingParam{})
shopping.CategorySearch(&yahoo.CategorySearchParam{})
shopping.ItemLookup(&yahoo.ItemLookupParam{})
shopping.QueryRanking(&yahoo.QueryRankingParam{})
shopping.GetModule(&yahoo.GetModuleParam{})
shopping.ShopCampaignSearch(&yahoo.ShopCampaignSearchParam{})
shopping.ReviewSearch(&yahoo.ReviewSearchParam{})

# auction
auction.CategoryTree(&yahoo.CategoryTreeParam{{})
auction.CategoryLeaf(&yahoo.CategoryLeafParam{})
auction.SellingList(&yahoo.SellingListParam{})
auction.Search(&yahoo.SearchParam{})
auction.AuctionItem(&yahoo.AuctionItemParam{})

Contributing

  1. Fork (https://github.com/pdevty/yahoo-client-go/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the go test ./... command and confirm that it passes
  6. Run gofmt -s
  7. Create new Pull Request