goabove

package module
v0.0.0-...-977e1e3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2014 License: MIT Imports: 8 Imported by: 4

README

goabove

Go package to interact with Runabove

Documentation

Index

Constants

View Source
const (
	RA_API_ENDPOINT = "https://api.runabove.com"
	RA_API_VERSION  = "1.0"
	NL              = "\r\n"
)

Variables

View Source
var (
	ErrNoRaApiClient = errors.New("Runabove API client is nil")
)

Functions

This section is empty.

Types

type ApiClient

type ApiClient struct {
	*http.Client
	// contains filtered or unexported fields
}

ApiClient represent an runabove HTTP API client

func NewClient

func NewClient(ak, as, ck string) (c *ApiClient)

newRaClient returns a new ApiClient

func (*ApiClient) Call

func (c *ApiClient) Call(method string, ressource string, payload string) (response apiResponse, err error)

type DateTime

type DateTime struct {
	time.Time
}

Datetimes DateTime represents date as returned by Runabove

func (*DateTime) UnmarshalJSON

func (dt *DateTime) UnmarshalJSON(data []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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