diff --git a/service/twitter/twitter.go b/service/twitter/twitter.go index 1e83a18..106a1a0 100644 --- a/service/twitter/twitter.go +++ b/service/twitter/twitter.go @@ -33,10 +33,10 @@ type Credentials struct { AccessTokenSecret string } -// New returns a new instance of a Slack notification service. -// For more information about slack api token: +// New returns a new instance of a Twitter service. +// For more information about Twitter access token: // -// -> https://pkg.go.dev/github.com/slack-go/slack#New +// -> https://developer.twitter.com/en/docs/authentication/oauth-1-0a/obtaining-user-access-tokens func New(credentials Credentials) (*Twitter, error) { config := oauth1.NewConfig(credentials.ConsumerKey, credentials.ConsumerSecret) token := oauth1.NewToken(credentials.AccessToken, credentials.AccessTokenSecret)