dmm

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2017 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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/dmmlabo/dmm-go-sdk

もしくは

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

使い方

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

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

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

client := dmm.New("dummy-990", "foobarbazbuzz")
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/dmmlabo/dmm-go-sdk/api"
)

rst, err := NewProductService( "dummy-999", "foobarbazbuzz").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