twitter

package
v0.0.0-...-705404a Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Route

func Route(g *echo.Group)

Route ...

Types

type Client

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

Client ...

func New

func New(key, secret string) *Client

New ...

func (*Client) AccessToken

func (c *Client) AccessToken() (string, error)

AccessToken ...

func (*Client) LatestActivity

func (c *Client) LatestActivity(username string) (Timeline, error)

LatestActivity ...

func (*Client) NewRequest

func (c *Client) NewRequest(method, path string, body io.Reader) (*http.Request, error)

NewRequest ...

type Timeline

type Timeline []struct {
	Text     string `json:"text"`
	Entities struct {
		Hashtags []struct {
			Text string `json:"text"`
		} `json:"hashtags"`
		UserMentions []struct {
			ScreenName string `json:"screen_name"`
		} `json:"user_mentions"`
		URLs []struct {
			ExpandedURL string `json:"expanded_url"`
			DisplayURL  string `json:"display_url"`
			URL         string `json:"url"`
		} `json:"urls"`
	} `json:"entities"`
}

Timeline ...

func (Timeline) HTML

func (t Timeline) HTML() string

HTML ...

func (Timeline) JSON

func (t Timeline) JSON() map[string]string

JSON ...

func (Timeline) String

func (t Timeline) String() string

Text ...

Jump to

Keyboard shortcuts

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