http

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var API = "https://virginmobile.pl/spitfire-web-api/api/v1/"

Functions

func GetFullDetails

func GetFullDetails(cfg config.Config, savedCookie string) (config.FullDetails, error)

GetFullDetails returns all fetched data from VM. If 403 error is present, it will try to regenerate cookie and try again.

func Login

func Login(cfg config.Config) (string, error)

Login returns login cookie as a string

func SetHeaders

func SetHeaders(req *http.Request)

SetHeaders sets proper headers for API requests

Types

This section is empty.

Jump to

Keyboard shortcuts

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