1
0
mirror of https://github.com/nikoksr/notify.git synced 2025-01-07 23:01:59 +02:00

docs(comment): fix documentation links (#451)

Co-authored-by: Niko Köser <koeserniko@gmail.com>
This commit is contained in:
Hasit Mistry 2022-11-12 08:20:15 -08:00 committed by GitHub
parent 1478c5ab92
commit 0321d912a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)