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 ...ValueOption) (*[]entity.Post, error)
- func (c *Client) Patch(path string, bodyToJSON interface{}) ([]byte, error)
- func (c *Client) Post(path string, bodyToJSON interface{}) ([]byte, error)
- type ValueOption
Constants ¶
View Source
const (
Version = "v1.1.0"
)
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 ValueOption ¶
func Limit ¶
func Limit(l int) ValueOption
func MaxID ¶
func MaxID(mid int) ValueOption
func SinceID ¶
func SinceID(sid int) ValueOption
Click to show internal directories.
Click to hide internal directories.