https://github.com/whywaita/go-yahoo
go-yahoo is go client for Yahoo Web API in yahoo.co.jp
https://github.com/whywaita/go-yahoo
go-yahoo golang-library yahoo
Last synced: about 2 months ago
JSON representation
go-yahoo is go client for Yahoo Web API in yahoo.co.jp
- Host: GitHub
- URL: https://github.com/whywaita/go-yahoo
- Owner: whywaita
- License: mit
- Created: 2017-02-01T08:13:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-09T20:01:54.000Z (over 8 years ago)
- Last Synced: 2025-06-02T02:49:51.544Z (4 months ago)
- Topics: go-yahoo, golang-library, yahoo
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-yahoo
go-yahoo is go client for [Yahoo Web API](http://developer.yahoo.co.jp/)
## Support Web API
- [WIP] yahoo auction(ヤフオク!)
## installation
```
go get github.com/whywaita/go-yahoo
```go-yahoo need Application ID(auth token).
Please read [This page](http://developer.yahoo.co.jp/start/).## Usage
Search "jewelry" in [ヤフオク!](http://auctions.yahoo.co.jp/)
```go
package mainimport (
"context"
"fmt"
"log""github.com/whywaita/go-yahoo/auction"
)const (
token = "YOUR-TOKEN"
)func main() {
ctx := context.Background()client, err := auction.NewClient(token, nil)
if err != nil {
log.Println(err)
log.Fatal("fail new client")
}_, err = client.GetCategoryList(ctx)
if err != nil {
log.Println(err)
log.Fatal("fail GetCategoryIdList")
}list, err := client.GetItemsListBySearch(ctx, "jewelry")
if err != nil {
log.Println(err)
log.Fatal("fail GetItemsListBySearch")
}
fmt.Println(list)
}
```