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:
parent
1478c5ab92
commit
0321d912a5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user