postwx

package module
v0.0.0-...-516b96d Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2017 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMedia

func GetMedia(media_id, savepath string) ([]byte, error)

func PostImage

func PostImage(openid, media_id string) (bool, error)

func PostText

func PostText(openid, content string) (bool, error)

func PostTpl

func PostTpl(data string) (bool, error)

func UploadMedia

func UploadMedia(filepath, mediaType string) (string, error)

Types

type Response

type Response struct {
	Errcode int    `json:"errcode"`
	Errmsg  string `json:"errmsg"`
}

type UploadResponse

type UploadResponse struct {
	Type       string `json:"type"`
	Media_id   string `json:"media_id"`
	Created_at int64  `json:"created_at"`
}

Jump to

Keyboard shortcuts

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