facebook

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2017 License: GPL-2.0, GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VERSION is the version of the facebok api
	VERSION = "v2.9"
	// URI is the base url for the facebook api
	URI = "https://graph.facebook.com"
	// TIME is a time interpolation example used to parse time
	TIME = "2006-01-02T15:04:05-0700"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cursor

type Cursor struct {
	Before string `json:"before"`
	After  string `json:"after"`
}

Cursor handles cursers from/to content

type Data

type Data struct {
	Data   *json.RawMessage `json:"data"`
	Paging Pagination       `json:"paging"`
}

Data is a json structure returned by the facebook api

type Options

type Options struct {
	Fields string
}

Options defines the options with which the api is called

type Pagination

type Pagination struct {
	Cursor Cursor `json:"cursor"`
	Next   string `json:"next"`
}

Pagination is a struct which handles pagination of api nodes

type Photos

type Photos struct {
	event.Base

	LastSeen string
	Token    Token   `io:"input"`
	Interval float64 `io:"input"`

	URL   string      `io:"output"`
	Image data.Stream `io:"output"`
	// contains filtered or unexported fields
}

Photos listen for new photo uploads or tags on facebook

func (Photos) Color

func (Photos) Color() uint

func (*Photos) Describe

func (p *Photos) Describe() string

Describe describes what the facebook photo event does

func (Photos) Icon

func (Photos) Icon() string

func (*Photos) Listen

func (p *Photos) Listen(stop <-chan struct{}) error

Listen starts listening for new photo uploads and tags on facebook

type Token

type Token string

Token is a authentication token used to communicate with the facebook api

Jump to

Keyboard shortcuts

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