api

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: ISC Imports: 8 Imported by: 0

Documentation

Overview

Package api provides low-level functionality to interact with the PushBits API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(base, endpoint, proxy, username, password string) (interface{}, error)

Delete sends a HTTP DELETE request to the server.

func Get

func Get(base, endpoint, proxy, username, password string) (interface{}, error)

Get sends a HTTP GET request to the server.

func Post

func Post(base, endpoint, proxy, username, password string, data interface{}) (interface{}, error)

Post sends a HTTP POST request to the server.

func Put

func Put(base, endpoint, proxy, username, password string, data interface{}) (interface{}, error)

Put sends a HTTP PUT request to the server.

func Request

func Request(base, endpoint, method, proxy, username, password string, hasBody bool, data interface{}) (interface{}, error)

Request sends a HTTP request to the server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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