Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
oauth1
✓ github.com/dghubble/oauth1
Configure an OAuth1 client for Twitter.
package main
import (
"github.com/dghubble/oauth1"
)
func main() {
config := oauth1.Config{
ConsumerKey: "your-consumer-key",
ConsumerSecret: "your-consumer-secret",
CallbackURL: "https://example.com/callback",
Endpoint: oauth1.Endpoint{
RequestTokenURL: "https://api.twitter.com/oauth/request_token",
AuthorizeURL: "https://api.twitter.com/oauth/authorize",
AccessTokenURL: "https://api.twitter.com/oauth/access_token",
},
}
_ = config
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.7.3latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.