api

package
v0.0.0-...-ba21cce Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SLACK_API_ROOT = "https://slack.com/api"

Functions

func Request

func Request(method string, body interface{}, isJSON bool, res interface{}, token string) error

Request can be used to make a raw slack API request

Types

type Error

type Error struct {
	Description string `json:"error" url:"error"`
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) MarshalJSON

func (j *Error) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*Error) MarshalJSONBuf

func (j *Error) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*Error) UnmarshalJSON

func (j *Error) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*Error) UnmarshalJSONFFLexer

func (j *Error) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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