-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile.go
More file actions
26 lines (23 loc) · 751 Bytes
/
profile.go
File metadata and controls
26 lines (23 loc) · 751 Bytes
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
package feedly
import "net/url"
// ProfileResponse : GET /v3/profile
type ProfileResponse struct {
Gender string `json:"gender"`
Email string `json:"email"`
FamilyName string `json:"familyName"`
Twitter string `json:"twitter"`
Picture string `json:"picture"`
Google string `json:"google"`
Wave string `json:"wave"`
GivenName string `json:"givenName"`
Facebook string `json:"facebook"`
Reader string `json:"reader"`
ID string `json:"id"`
Locale string `json:"locale"`
}
// Profile : https://developer.feedly.com/v3/profile/
func (f *Feedly) Profile() (ProfileResponse, error) {
result := &ProfileResponse{}
_, err := f.request("GET", profileURI, result, url.Values{})
return *result, err
}