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

dmm

package module
v1.0.0 Latest Latest
Warning

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

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

README

DMM SDK for Go (v3)

GoDoc License Build Status Coverage Status Go Report Card

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

参照: DMM Affiliate

インストール

go get の場合:

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

もしくは

$ go get gopkg.in/DMMcomLabo/dmm-go-sdk.v1

使い方

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

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

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

client := dmm.New("foobarbazbuzz", "dummy-990")
api := client.Product
api.SetSite(SiteGeneral)
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
}

Client for DMM services

DMMサービス接続のためのClient

func New

func New(affiliateID, apiID string) *Client

New creates client

Clientの新規作成

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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