Versions in this module Expand all Collapse all v1 v1.1.0 Nov 21, 2014 v1.0.0 Oct 17, 2014 Changes in this version + const ERROR_CODE_UNKNOWN + var Version string + func Data(filename string, source io.Reader) *binaryData + func File(filename, path string) *binaryFile + func FileAlias(filename, path string) *binaryFile + type App struct + AppId string + AppSecret string + EnableAppsecretProof bool + RedirectUri string + func New(appId, appSecret string) *App + func (app *App) AppAccessToken() string + func (app *App) ExchangeToken(accessToken string) (token string, expires int, err error) + func (app *App) GetCode(accessToken string) (code string, err error) + func (app *App) ParseCode(code string) (token string, err error) + func (app *App) ParseSignedRequest(signedRequest string) (res Result, err error) + func (app *App) Session(accessToken string) *Session + func (app *App) SessionFromSignedRequest(signedRequest string) (session *Session, err error) + type Error struct + Code int + ErrorSubcode int + Message string + Type string + func (e *Error) Error() string + type HttpClient interface + Do func(req *http.Request) (resp *http.Response, err error) + Get func(url string) (resp *http.Response, err error) + Post func(url string, bodyType string, body io.Reader) (resp *http.Response, err error) + type Method string + const DELETE + const GET + const POST + const PUT + type PagingResult struct + func (pr *PagingResult) Data() []Result + func (pr *PagingResult) HasNext() bool + func (pr *PagingResult) HasPrevious() bool + func (pr *PagingResult) Next() (noMore bool, err error) + func (pr *PagingResult) Previous() (noMore bool, err error) + type Params map[string]interface + func (params Params) Encode(writer io.Writer) (mime string, err error) + func MakeParams(data interface{}) (params Params) + type Result map[string]interface + func (res Result) Decode(v interface{}) (err error) + func (res Result) DecodeField(field string, v interface{}) error + func (res Result) Err() error + func (res Result) Get(field string) interface{} + func (res Result) GetField(fields ...string) interface{} + func (res Result) Paging(session *Session) (*PagingResult, error) + func Api(path string, method Method, params Params) (Result, error) + func Batch(batchParams Params, params ...Params) ([]Result, error) + func BatchApi(accessToken string, params ...Params) ([]Result, error) + func Delete(path string, params Params) (Result, error) + func FQL(query string) ([]Result, error) + func Get(path string, params Params) (Result, error) + func MakeResult(jsonBytes []byte) (Result, error) + func MultiFQL(queries Params) (Result, error) + func Post(path string, params Params) (Result, error) + func Put(path string, params Params) (Result, error) + func Request(request *http.Request) (Result, error) + type Session struct + HttpClient HttpClient + Version string + func (session *Session) AccessToken() string + func (session *Session) Api(path string, method Method, params Params) (Result, error) + func (session *Session) App() *App + func (session *Session) AppsecretProof() string + func (session *Session) Batch(batchParams Params, params ...Params) ([]Result, error) + func (session *Session) BatchApi(params ...Params) ([]Result, error) + func (session *Session) Delete(path string, params Params) (Result, error) + func (session *Session) EnableAppsecretProof(enabled bool) error + func (session *Session) FQL(query string) ([]Result, error) + func (session *Session) Get(path string, params Params) (Result, error) + func (session *Session) Inspect() (result Result, err error) + func (session *Session) MultiFQL(queries Params) (Result, error) + func (session *Session) Post(path string, params Params) (Result, error) + func (session *Session) Put(path string, params Params) (Result, error) + func (session *Session) Request(request *http.Request) (Result, error) + func (session *Session) SetAccessToken(token string) + func (session *Session) User() (id string, err error) + func (session *Session) Validate() (err error)