user

package
v0.0.0-...-9c64050 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID              string          `json:"id"`
	Name            string          `json:"name"`
	UserName        string          `json:"username"`
	CreatedAt       string          `json:"created_at"`
	Description     string          `json:"description"`
	Entities        common.Entities `json:"entities"`
	Location        string          `json:"location"`
	PinnedTweetID   string          `json:"pinned_tweet_id"`
	ProfileImageURL string          `json:"profile_image_url"`
	Protected       bool            `json:"protected"`
	PublicMetrics   UserMetrics     `json:"public_metrics"`
	URL             string          `json:"url"`
	Verified        bool            `json:"verified"`
	WithHeld        WithHeld        `json:"withheld"`
}

func LookupID

func LookupID(id string) (userResponse User, err error)

func LookupIDs

func LookupIDs(users []string) (userResponse User, err error)

func LookupUsername

func LookupUsername(user string) (userResponse User, err error)

func LookupUsernames

func LookupUsernames(users []string) (userResponse User, err error)

type UserMetrics

type UserMetrics struct {
	Followers int `json:"followers_count"`
	Following int `json:"following_count"`
	Tweets    int `json:"tweet_count"`
	Listed    int `json:"listed_count"`
}

UserMetricsObj contains details about activity for this user

type WithHeld

type WithHeld struct {
	Copyright    bool     `json:"copyright"`
	CountryCodes []string `json:"country_codes"`
}

Jump to

Keyboard shortcuts

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