facebook

package
v0.0.0-...-deb3d9e Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2014 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStructFromResponse

func GetStructFromResponse(resp *http.Response, data interface{})

Types

type Account

type Account struct {
	Name         string
	Client       http.Client
	Category     string
	Id           string
	Access_token string
	Perms        []string
}

func (*Account) Post

func (a *Account) Post(text string)

func (*Account) PostImage

func (a *Account) PostImage(string)
func (a *Account) PostLink(url string)

type Data

type Data struct {
	Data []Account
}

type Error

type Error struct {
	Error struct {
		Message          string
		Type             string
		Code             int
		Error_subcode    int
		Is_transient     bool
		Error_user_title string
		Error_user_msg   string
	}
}

type Facebook

type Facebook struct {
	Client   http.Client
	Accounts []Account
}

func New

func New() *Facebook

func (*Facebook) GetAccessByName

func (g *Facebook) GetAccessByName(name string) (target Account)

func (*Facebook) Login

func (g *Facebook) Login(accessToken string)

func (*Facebook) SetProxy

func (g *Facebook) SetProxy(url string)

type Post

type Post struct {
	Id string
}

Jump to

Keyboard shortcuts

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