playstore

package module
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}
Example
c := NewClient(Lang("ja"))
resp, err := c.Get(context.Background(), "com.cookpad.android.activities")
if err != nil {
	log.Fatal(err)
}
Output:

com.cookpad.android.activities

func NewClient

func NewClient(opts ...Option) *Client

func (*Client) Get

func (c *Client) Get(ctx context.Context, bundleID string) (*Detail, error)

type Detail

type Detail struct {
	Title         string `json:"title"`
	Description   string `json:"description"`
	CoverArtURL   string `json:"coverArtUrl"`
	ContentRating string `json:"contentRating"`

	// https://play.google.com/store/apps/category/${GenreID}
	GenreID string `json:"genreId"`
	Genre   string `json:"genre"`

	// https://play.google.com/store/apps/dev?id=${DeveloperID}
	DeveloperID string `json:"developerId"`
	Developer   string `json:"developer"`

	// app-ads.txt
	DeveloperURL string `json:"developerUrl"`
	BundleID     string `json:"bundleId"`
	StoreID      string `json:"storeId"`
}

type Error added in v0.1.1

type Error struct {
	// contains filtered or unexported fields
}

func (*Error) Code added in v0.1.1

func (e *Error) Code() int

func (*Error) Error added in v0.1.1

func (e *Error) Error() string

type Option

type Option interface {
	// contains filtered or unexported methods
}

func HTTPClient added in v0.1.2

func HTTPClient(c *http.Client) Option

func Lang

func Lang(v string) Option

Jump to

Keyboard shortcuts

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