Documentation
¶
Index ¶
- Constants
- func GetAuthorizeURL(origin string, cid string, state string) (string, error)
- func GetToken(origin string, cid string, cs string, state string, code string) (string, error)
- type Client
- func (c *Client) CreatePost(text string) (int, error)
- func (c *Client) Get(path string) ([]byte, error)
- func (c *Client) GetTimeline(key string, options ...TimelineOption) (*[]entity.Post, error)
- func (c *Client) Patch(path string, bodyToJSON interface{}) ([]byte, error)
- func (c *Client) Post(path string, bodyToJSON interface{}) ([]byte, error)
- type TimelineOption
Constants ¶
View Source
const (
Version = "v1.1.1"
)
Variables ¶
This section is empty.
Functions ¶
func GetAuthorizeURL ¶
Types ¶
type Client ¶
type Client struct { ClientID string ClientSecret string AccessToken string Origin string HTTPClient *http.Client }
func (*Client) GetTimeline ¶
type TimelineOption ¶
func Limit ¶
func Limit(l int) TimelineOption
func MaxID ¶
func MaxID(mid int) TimelineOption
func Search ¶
func Search(target string) TimelineOption
func SinceID ¶
func SinceID(sid int) TimelineOption
Click to show internal directories.
Click to hide internal directories.