requests

package
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2015 License: MIT Imports: 0 Imported by: 17

Documentation

Overview

Package "request" provides structs to represent the request for Pushbullet HTTP API.

This packages contains types of "push". See the API documentation for the details: https://docs.pushbullet.com/#pushes

Index

Constants

View Source
const (
	TYPE_NOTE       = "note"
	TYPE_LINK       = "link"
	TYPE_ADDRESS    = "address"
	TYPE_CHEKCKLIST = "list"
	TYPE_FILE       = "file"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	*Push
	Name    string `json:"name"`
	Address string `json:"address"`
}

func NewAddress

func NewAddress() *Address

type Checklist

type Checklist struct {
	*Push
	Title   string   `json:"title"`
	ItemSeq []string `json:"items"`
}

func NewChecklist

func NewChecklist() *Checklist

type File

type File struct {
	*Push
	Title    string `json:"title"`
	Body     string `json:"body"`
	FileName string `json:"file_name"`
	FileUrl  string `json:"file_url"`
	FileType string `json:"file_type"`
}

func NewFile

func NewFile() *File
type Link struct {
	*Push
	Title string `json:"title"`
	Body  string `json:"body"`
	Url   string `json:"url"`
}
func NewLink() *Link

type Note

type Note struct {
	*Push
	Title string `json:"title"`
	Body  string `json:"body"`
}

func NewNote

func NewNote() *Note

type Push

type Push struct {
	Type       string `json:"type"`
	DeviceIden string `json:"device_iden,omitempty"`
	Email      string `json:"email,omitempty"`
	ChannelTag string `json:"channel_tag,omitempty"`
	ClientIden string `json:"client_iden,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL