Skip to content

go-yahoo is go client for Yahoo Web API in yahoo.co.jp

License

Notifications You must be signed in to change notification settings

whywaita/go-yahoo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-yahoo

go-yahoo is go client for Yahoo Web API

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.

Usage

Search "jewelry" in ヤフオク!

package main

import (
  "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)
}

About

go-yahoo is go client for Yahoo Web API in yahoo.co.jp

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages