yahoo-client-go is a go client library for yahoo japan web api.
go get -u github.com/pdevty/yahoo-client-go
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{})
- Fork (https://github.com/pdevty/yahoo-client-go/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
go test ./...
command and confirm that it passes - Run
gofmt -s
- Create new Pull Request