Documentation ¶
Index ¶
Constants ¶
View Source
const (
NotFoundErrorType = "https://api.twitter.com/2/problems/resource-not-found"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authorizer ¶
type Authorizer struct {
Token string
}
Authorizer implements twitter.Authorizer to authorize Twitter requests
func NewAuthorizer ¶
func NewAuthorizer(token string) *Authorizer
NewAuthorizer implements a new Authorizer instance
func (*Authorizer) Add ¶
func (a *Authorizer) Add(req *http.Request)
Add implements twitter.Authorizer
type ScoreDetails ¶
type ScoreDetails struct { CreatedAt time.Time `json:"created_at"` FollowersCount uint64 `json:"followers_count"` FollowingCount uint64 `json:"following_count"` TweetsCount uint64 `json:"tweets_count"` Verified bool `json:"verified"` }
func NewScoreDetails ¶
func NewScoreDetails(createdAt time.Time, followersCount, followingCount, tweetsCount uint64, verified bool) *ScoreDetails
func (*ScoreDetails) GetScore ¶
func (d *ScoreDetails) GetScore() (score uint64)
GetScore implements types.ProfileScoreDetails
type Scorer ¶
type Scorer struct {
// contains filtered or unexported fields
}
Scorer represents a scorers.Scorer instance to score profiles based on their Twitter statistics
func (*Scorer) GetRateLimit ¶
func (s *Scorer) GetRateLimit() *profilesscore.ScoreRateLimit
GetRateLimit implements Scorer
func (*Scorer) GetScoreDetails ¶
func (s *Scorer) GetScoreDetails(_ string, application string, username string) (types.ProfileScoreDetails, error)
GetScoreDetails implements Scorer
Click to show internal directories.
Click to hide internal directories.