client

package
v0.0.0-...-34130e6 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2016 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Config      *conf.Config
	AccessToken string
}

Client is the struct for accessing client functionalities

func (*Client) Get

func (cli *Client) Get(targetURL *url.URL)

Get does HTTP GET to targetURL and print the result to STDOUT.

func (*Client) GetAccessToken

func (cli *Client) GetAccessToken()

GetAccessToken sets the access token inside the request

func (*Client) GetUsername

func (cli *Client) GetUsername(username string) string

GetUsername returns the configured user, that can be set as parameter.

func (*Client) RenewAccessToken

func (cli *Client) RenewAccessToken()

RenewAccessToken is used to get a new OAuth2 access token

Jump to

Keyboard shortcuts

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