twitter

package
v0.0.0-...-1723f64 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TWITTER_BEARER_TOKEN string
	TWITTER_USER_NAME    string
)

Functions

This section is empty.

Types

type User

type User struct {
	ID              string `json:"id"`
	Name            string `json:"name"`
	UserName        string `json:"username"`
	ProfileImageURL string `json:"profile_image_url"`
	PublicMetrics   struct {
		FollowersCount int `json:"followers_count"`
		FollowingCount int `json:"following_count"`
		TweetCount     int `json:"tweet_count"`
		ListedCount    int `json:"listed_count"`
	} `json:"public_metrics"`
}

func ListFriends

func ListFriends(selfID string, typ string, token string) ([]User, string, error)

type = followers or following

func ListUsers

func ListUsers(ids []string) ([]User, error)

func LoadSelf

func LoadSelf() (*User, error)

func (*User) Metrics

func (u *User) Metrics() string

Jump to

Keyboard shortcuts

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