Documentation
¶
Index ¶
- Constants
- type CardDetails
- type Category
- type CategoryService
- type Content
- type Entry
- type EntryService
- type Feed
- type FeedService
- type Feedly
- func (fly *Feedly) CategoryAllId() (string, error)
- func (fly *Feedly) CategoryId(labelOrUuid string) (string, error)
- func (fly *Feedly) FeedId(url string) (string, error)
- func (fly *Feedly) GetCategories(withStats bool) ([]*Category, error)
- func (fly *Feedly) GetCategory(categoryId string) (*Category, error)
- func (fly *Feedly) GetContentsOfStream(streamId, continuation string, orderDesc, unreadOnly bool, ...) (*Stream, error)
- func (fly *Feedly) GetEntry(entryId string) (*Entry, error)
- func (fly *Feedly) GetEntryIdsOfStream(streamId, continuation string, orderDesc, unreadOnly bool, ...) (*Stream, error)
- func (fly *Feedly) GetFeed(feedId string) (*Feed, error)
- func (fly *Feedly) GetProfile() (*Profile, error)
- func (fly *Feedly) GetSubscriptions() ([]*Subscription, error)
- func (fly *Feedly) GetTags() ([]*Tag, error)
- func (fly *Feedly) GetUnreads(streamId string, autoRefresh bool, newerThan int) ([]*Unread, error)
- func (fly *Feedly) MarkEntriesAsAction(entryIds []string, action MarkAction) error
- func (fly *Feedly) SearchContentsOfStream(streamId, continuation, query string, count, newerThan int) (*Stream, error)
- func (fly *Feedly) SearchFeeds(query, locale string, count int) ([]*Feed, error)
- func (fly *Feedly) Subscribe(feedId string, label string, categoriesIds []string) (*Subscription, error)
- func (fly *Feedly) TagAllId() (string, error)
- func (fly *Feedly) TagId(labelOrUuid string) (string, error)
- func (fly *Feedly) TagReadId() (string, error)
- func (fly *Feedly) TagSavedId() (string, error)
- func (fly *Feedly) UserId() (string, error)
- type Link
- type LoginProvider
- type MainService
- type Manager
- type MarkAction
- type Marker
- type MarkerService
- type Origin
- type Profile
- type ProfileService
- type SearchResult
- type Stream
- type StreamService
- type Subscription
- type SubscriptionService
- type Tag
- type TagService
- type Threshold
- type Unread
- type Visual
Constants ¶
View Source
const ( AsRead = iota AsUnRead AsSaved AsUnSaved )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CardDetails ¶
type Category ¶
type Category struct {
Id string `json:"id,omitempty"`
Label string `json:"label,omitempty"`
Description string `json:"description,omitempty"`
Customizable bool `json:"customizable,omitempty"`
Enterprise bool `json:"enterprise,omitempty"`
Cover string `json:"cover,omitempty"`
Created int `json:"created,omitempty"`
NumFeeds int `json:"numFeeds,omitempty"`
Feeds []*Subscription `json:"feeds,omitempty"`
}
type CategoryService ¶
type Entry ¶
type Entry struct {
Id string `json:"id,omitempty"`
Title string `json:"title,omitempty"`
Author string `json:"author,omitempty"`
OriginId string `json:"originId,omitempty"`
Fingerprint string `json:"fingerprint,omitempty"`
Sid string `json:"sid,omitempty"`
Crawled int `json:"crawled,omitempty"`
Recrawled int `json:"recrawled,omitempty"`
Published int `json:"published,omitempty"`
Updated int `json:"updated,omitempty"`
Engagement int `json:"engagement,omitempty"`
ActionTimestamp int `json:"actionTimestamp,omitempty"`
Unread bool `json:"unread,omitempty"`
Keywords []string `json:"keywords,omitempty"`
Origin *Origin `json:"origin,omitempty"`
Content *Content `json:"content,omitempty"`
Summary *Content `json:"summary,omitempty"`
Alternate []*Link `json:"alternate,omitempty"`
Enclosure []*Link `json:"enclosure,omitempty"`
Canonical []*Link `json:"canonical,omitempty"`
Visual *Visual `json:"visual,omitempty"`
Thumbnail []*Visual `json:"thumbnail,viomitempty"`
Tags []*Tag `json:"tags,omitempty"`
Categories []*Category `json:"categories,omitempty"`
}
type EntryService ¶
type Feed ¶
type Feed struct {
Id string `json:"id,omitempty"`
FeedId string `json:"feedId,omitempty"`
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
Language string `json:"language,omitempty"`
Website string `json:"website,omitempty"`
Topics []string `json:"topics,omitempty"`
Velocity float64 `json:"velocity,omitempty"`
Subscribers int `json:"subscribers,omitempty"`
State string `json:"state,omitempty"`
LastUpdated int `json:"lastUpdated,omitempty"`
IconUrl string `json:"iconUrl,omitempty"`
VisualUrl string `json:"visualUrl,omitempty"`
CoverUrl string `json:"coverUrl,omitempty"`
Logo string `json:"logo,omitempty"`
ContentType string `json:"contentType,omitempty"`
CoverColor string `json:"coverColor,omitempty"`
DeliciousTags []string `json:"deliciousTags,omitempty"`
Partial bool `json:"partial,omitempty"`
Featured bool `json:"featured,omitempty"`
}
type FeedService ¶
type Feedly ¶
func (*Feedly) CategoryAllId ¶
func (*Feedly) GetCategories ¶
func (*Feedly) GetContentsOfStream ¶
func (*Feedly) GetEntryIdsOfStream ¶
func (fly *Feedly) GetEntryIdsOfStream(streamId, continuation string, orderDesc, unreadOnly bool, count, newerThan int64) (*Stream, error)
A feedId, a categoryId, a tagId or a system category ids can be used as stream ids.
func (*Feedly) GetProfile ¶
func (*Feedly) GetSubscriptions ¶
func (fly *Feedly) GetSubscriptions() ([]*Subscription, error)
func (*Feedly) GetUnreads ¶
func (*Feedly) MarkEntriesAsAction ¶
func (fly *Feedly) MarkEntriesAsAction(entryIds []string, action MarkAction) error
func (*Feedly) SearchContentsOfStream ¶
func (*Feedly) SearchFeeds ¶
func (*Feedly) TagSavedId ¶
type LoginProvider ¶
type MainService ¶
type Manager ¶
type Manager interface {
MainService
ProfileService
CategoryService
FeedService
SubscriptionService
EntryService
StreamService
MarkerService
TagService
}
func NewManager ¶
type MarkAction ¶
type MarkAction int
type MarkerService ¶
type Profile ¶
type Profile struct {
Id string `json:"id,omitempty"`
Email string `json:"email,omitempty"`
GivenName string `json:"givenName,omitempty"`
FamilyName string `json:"familyName,omitempty"`
FullName string `json:"fullName,omitempty"`
Picture string `json:"picture,omitempty"`
Gender string `json:"gender,omitempty"`
Locale string `json:"locale,omitempty"`
Google string `json:"google,omitempty"`
Reader string `json:"reader,omitempty"`
Wave string `json:"wave,omitempty"`
Client string `json:"client,omitempty"`
Source string `json:"source,omitempty"`
Created int `json:"created,omitempty"`
Product string `json:"product,omitempty"`
ProductExpiration int `json:"productExpiration,omitempty"`
ProductRenewalAmount int `json:"productRenewalAmount,omitempty"`
UpgradeDate int `json:"upgradeDate,omitempty"`
SubscriptionRenewalDate int `json:"subscriptionRenewalDate,omitempty"`
SubscriptionPaymentProvider string `json:"subscriptionPaymentProvider,omitempty"`
SubscriptionStatus string `json:"subscriptionStatus,omitempty"`
EvernoteStoreUrl string `json:"evernoteStoreUrl,omitempty"`
EvernoteWebApiPrefix string `json:"evernoteWebApiPrefix,omitempty"`
EvernotePartialOAuth bool `json:"evernotePartialOAuth,omitempty"`
RefPage string `json:"refPage,omitempty"`
LandingPage string `json:"landingPage,omitempty"`
LoginProviders []*LoginProvider `json:"logins,omitempty"`
CardDetails *CardDetails `json:"cardDetails,omitempty"`
TwitterUserId string `json:"twitterUserId,omitempty"`
FacebookUserId string `json:"facebookUserId,omitempty"`
WordPressId string `json:"wordPressId,omitempty"`
WindowsLiveId string `json:"windowsLiveId,omitempty"`
EvernoteUserId string `json:"evernoteUserId,omitempty"`
EvernoteConnected bool `json:"evernoteConnected,omitempty"`
PocketConnected bool `json:"pocketConnected,omitempty"`
DropboxConnected bool `json:"dropboxConnected,omitempty"`
TwitterConnected bool `json:"twitterConnected,omitempty"`
FacebookConnected bool `json:"facebookConnected,omitempty"`
WordPressConnected bool `json:"wordPressConnected,omitempty"`
WindowsLiveConnected bool `json:"windowsLiveConnected,omitempty"`
InstapaperConnected bool `json:"instapaperConnected,omitempty"`
}
type ProfileService ¶
type SearchResult ¶
type Stream ¶
type Stream struct {
Id string `json:"id,omitempty"` // stream id
Ids []string `json:"ids,omitempty"` // entry ids
Continuation string `json:"continuation,omitempty"` // next stream id for pagination
Title string `json:"title,omitempty"`
Direction string `json:"direction,omitempty"`
Updated int `json:"updated,omitempty"`
Alternate []*Link `json:"alternate,omitempty"`
Items []*Entry `json:"items,omitempty"`
}
type StreamService ¶
type StreamService interface {
GetEntryIdsOfStream(streamId, continuation string, orderDesc, unreadOnly bool,
count, newerThan int64) (*Stream, error)
GetContentsOfStream(streamId, continuation string, orderDesc, unreadOnly bool,
count, newerThan int) (*Stream, error)
SearchContentsOfStream(streamId, continuation, query string, count, newerThan int) (*Stream, error)
}
type Subscription ¶
type Subscription struct {
Id string `json:"id,omitempty"`
FeedId string `json:"feedId,omitempty"`
SortId string `json:"sortid,omitempty"`
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
ContentType string `json:"contentType,omitempty"`
Language string `json:"language,omitempty"`
Website string `json:"website,omitempty"`
IconUrl string `json:"iconUrl,omitempty"`
CoverUrl string `json:"coverUrl,omitempty"`
VisualUrl string `json:"visualUrl,omitempty"`
CoverColor string `json:"coverColor,omitempty"`
Subscribers int `json:"subscribers,omitempty"`
Added int `json:"added,omitempty"`
Updated int `json:"updated,omitempty"`
Velocity float64 `json:"velocity,omitempty"`
Partial bool `json:"partial,omitempty"`
Categories []*Category `json:"categories,omitempty"`
Topics []string `json:"topics,omitempty"`
}
type SubscriptionService ¶
type SubscriptionService interface {
GetSubscriptions() ([]*Subscription, error)
Subscribe(feedId string, label string, categoriesIds []string) (*Subscription, error)
}
type TagService ¶
Click to show internal directories.
Click to hide internal directories.