forked from huandu/facebook
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtype.go
33 lines (28 loc) · 818 Bytes
/
type.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// A facebook graph api client in go.
// https://github.com/huandu/facebook/
//
// Copyright 2012, Huan Du
// Licensed under the MIT license
// https://github.com/huandu/facebook/blob/master/LICENSE
package facebook
// Holds facebook application information.
type App struct {
AppId string // facebook app id
AppSecret string // facebook app secret
}
type Session struct {
accessToken string // facebook access token. can be empty.
app *App
id string
}
// Api HTTP method.
// Can be GET, POST or DELETE.
type Method string
// Api params.
//
// For general uses, just use Params as a ordinary map.
//
// For advanced uses, use MakeParams to create Params from any struct.
type Params map[string]interface{}
// Facebook api call result.
type Result map[string]interface{}