growthpush

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2015 License: MIT Imports: 7 Imported by: 0

README

growthpush

Written in go.

Install

go get github.com/gotokatsuya/growthpush

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PutTagClient

func PutTagClient(pushToken string, name string) ([]byte, error)

PutTagClient クライアントデバイスにタグ付け。既に同一名のタグが登録されている場合は、そのvalueを更新する *

  • token クライアントを識別するデバイストークン
  • name タグ名

func RegisterNewClient

func RegisterNewClient(pushToken string, os string) ([]byte, error)

RegisterNewClient クライアントデバイスを新規に登録 *

  • token クライアントデバイスのデバイストークン
  • os OS名 (ios/android)
  • environment 環境設定 (development/production)

Types

type Client

type Client struct {
	APIPath          string
	GrowthPushConfig Config
}

Client ...

func NewClient

func NewClient(apiPath string) Client

NewClient ...

func (*Client) Post

func (c *Client) Post(values url.Values) ([]byte, error)

Post Request by Post Method.

type Config

type Config struct {
	ApplicationID string `toml:"application_id"`
	SecretKey     string `toml:"secret_key"`
	Production    bool   `toml:"production"`
}

Config is growthpush's setting.

func NewGrowthPushConfig

func NewGrowthPushConfig() Config

NewGrowthPushConfig is a new instance config of growthpush.

Jump to

Keyboard shortcuts

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