api

package
v0.0.0-...-e9fe98c Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2019 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client describes a new Tide API client.

func (*Client) Authenticate

func (c *Client) Authenticate(clientID, clientSecret, authEndpoint string) error

Authenticate creates a call to a Tide API instance and attempts to authenticate a user.

func (Client) SendPayload

func (c Client) SendPayload(method, endpoint, data string) (string, error)

SendPayload sends authenticated requests to a Tide API instance.

`method` is POST or GET for Tide API. `endpoint` is the particular Tide endpoint to send the payload to. `token` is the Auth.AccessToken of an authenticated user object. `data` is a JSON encoded string to send with the payload (or empty).

Jump to

Keyboard shortcuts

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