follow

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2016 License: MIT Imports: 4 Imported by: 0

README

Follow API

This package adds support for follow_api.

State

Method Name Raw Version Full Version
get_followers DONE DONE
get_following DONE DONE
get_feed_entries DONE DONE
get_feed DONE
get_account_reputations DONE

Documentation

Index

Constants

View Source
const (
	FollowKindFollow = "blog"
	FollowKindIgnore = "ignore"
)
View Source
const APIID = "follow_api"

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI(caller interfaces.Caller) (*API, error)

func (*API) GetAccountReputationsRaw

func (api *API) GetAccountReputationsRaw(
	lowerBoundName string,
	limit uint32,
) (*json.RawMessage, error)

func (*API) GetFeedEntries

func (api *API) GetFeedEntries(
	accountName string,
	entryID uint32,
	limit uint16,
) ([]*FeedEntry, error)

func (*API) GetFeedEntriesRaw

func (api *API) GetFeedEntriesRaw(
	accountName string,
	entryID uint32,
	limit uint16,
) (*json.RawMessage, error)

func (*API) GetFeedRaw

func (api *API) GetFeedRaw(
	accountName string,
	entryID uint32,
	limit uint16,
) (*json.RawMessage, error)

func (*API) GetFollowers

func (api *API) GetFollowers(
	accountName string,
	start string,
	kind string,
	limit uint16,
) ([]*FollowObject, error)

func (*API) GetFollowersRaw

func (api *API) GetFollowersRaw(
	accountName string,
	start string,
	kind string,
	limit uint16,
) (*json.RawMessage, error)

func (*API) GetFollowing

func (api *API) GetFollowing(
	accountName string,
	start string,
	kind string,
	limit uint16,
) ([]*FollowObject, error)

func (*API) GetFollowingRaw

func (api *API) GetFollowingRaw(
	accountName string,
	start string,
	kind string,
	limit uint16,
) (*json.RawMessage, error)

type FeedEntry

type FeedEntry struct {
	Author   string `json:"string"`
	Permlink string `json:"permlink"`
	EntryID  uint32 `json:"entry_id"`
}

type FollowObject

type FollowObject struct {
	Follower  string   `json:"follower"`
	Following string   `json:"following"`
	What      []string `json:"what"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL