Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarkAllAsRead ¶
MarkAllAsRead -- Marks all items in stream as read; stream is specified in query parameters
Types ¶
type Item ¶
type Item struct { CrawlTimeMsec string `json:"crawlTimeMsec"` TimestampUsec string `json:"timestampUsec"` ID string `json:"id"` Categories []string `json:"categories"` Title string `json:"title"` Published int64 `json:"published"` Updated int `json:"updated"` Canonical []struct { Href string `json:"href"` } `json:"canonical"` Author string `json:"author"` LikingUsers []interface{} `json:"likingUsers"` Comments []interface{} `json:"comments"` CommentsNum int `json:"commentsNum"` Annotations []interface{} `json:"annotations"` Origin *Origin `json:"origin"` }
Item response
type ItemIDs ¶
type ItemIDs struct { Items []interface{} `json:"items"` ItemRefs []interface{} `json:"itemRefs"` Continuation string `json:"continuation"` }
ItemIDs response
type ItemRefs ¶
type ItemRefs struct { ID string `json:"id"` DirectStreamIds []interface{} `json:"directStreamIds"` TimestampUsec string `json:"timestampUsec"` }
ItemRefs response
type Origin ¶
type Origin struct { StreamID string `json:"streamId"` Title string `json:"title"` HTMLURL string `json:"htmlUrl"` }
Origin response
type StreamContents ¶
type StreamContents struct { Direction string `json:"direction"` ID string `json:"id"` Title string `json:"title"` Description string `json:"description"` Updated int `json:"updated"` UpdatedUsec string `json:"updatedUsec"` Self struct { Href string `json:"href"` } `json:"self"` Items []Item `json:"items"` Continuation string `json:"continuation"` }
StreamContents response
func GetStreamContents ¶
func GetStreamContents(rc *resty.Client, params map[string]string) (sc *StreamContents, err error)
GetStreamContents -- Gets stream contents based on set query parameters
type StreamPreferenceList ¶
type StreamPreferenceList struct {
Streamprefs interface{} `json:"streamprefs"`
}
StreamPreferenceList response
type Streamprefs ¶
type Streamprefs struct {
UserStateComGoogleRoot []interface{} `json:"user/-/state/com.google/root"`
}
Streamprefs response
type UserStateComGoogleRoot ¶
UserStateComGoogleRoot response
Click to show internal directories.
Click to hide internal directories.