request

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(conf Config) ([]byte, int, error)

Types

type Config

type Config struct {
	Method      string
	Url         string
	AccessToken string
	Sandbox     bool
	Body        interface{}
	ContentType ContentType
}

type ContentType

type ContentType string
const (
	ContentType_APPLICATION_FORM ContentType = "application/x-www-form-urlencoded"
	ContentType_APPLICATION_JSON ContentType = "application/json"
)

Jump to

Keyboard shortcuts

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