api

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicGet

func BasicGet(
	httpURL,
	method,
	authType,
	bearerToken,
	basicAuthUsername,
	basicAuthPassword string,
	isCommand bool,
) (string, string, string, error)

BasicGet sends a simple GET request to the url with any potential parameters like `Tokens` or `Basic Auth`

func BasicRequestWithBody

func BasicRequestWithBody(
	httpURL,
	method,
	contentType,
	reqBody,
	authType,
	baererToken,
	basicAuthUsername,
	basicAuthPassword string,
	isCommand bool,
) (string, string, string, error)

BasicRequestWithBody sends put|patch|post|delete requests

Types

This section is empty.

Jump to

Keyboard shortcuts

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