Help us shape the future of Go! Take the 2026 Go Developer Survey

dmm

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2016 License: MIT Imports: 1 Imported by: 4

README

DMM SDK for Go (v3)

GoDoc License Build Status Coverage Status

DMM Web API version.3 クライアント

参照: DMM Affiliate

インストール

go get の場合:

$ go get github.com/DMMcomLabo/dmm-go-sdk

使い方

使い方や使用例はこちらを参照してください。 Godoc.

使用例 (商品検索APIの場合)

package (
    "fmt"
    "github.com/DMMcomLabo/dmm-go-sdk"
)

client := dmm.New("foobarbazbuzz", "dummy-990")
api := client.Product
api.SetSite(SITE_ALLAGES)
api.SetService("mono")
api.SetFloor("dvd")
api.SetSort("date")
api.SetLength(1)
result, err := api.Execute()
if err != nil {
    fmt.Println(err)
} else {
    fmt.Println(result)
}

もしくは

package (
    "fmt"
    "github.com/DMMcomLabo/dmm-go-sdk/api"
)

rst, err := NewProductService("foobarbazbuzz", "dummy-999").SetSite(SITE_ADULT).SetLength(1).Execute()
if err != nil {
    fmt.Println(err)
} else {
    fmt.Println(rst)
}

詳細

Godoc もしくは our documentation を参照してください

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	AffiliateId string
	ApiId       string

	// services
	Actress *api.ActressService
	Author  *api.AuthorService
	Floor   *api.FloorService
	Genre   *api.GenreService
	Maker   *api.MakerService
	Product *api.ProductService
	Series  *api.SeriesService
}

func New

func New(affiliate_id, api_id string) *Client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL