twitter

package module
v0.0.0-...-ae36d4e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeSender

func MakeSender(ctx context.Context, opts *Options) (send.Sender, error)

MakeSender constructs a default sender implementation that posts messages to a twitter account. The implementation does not rate limit outgoing messages, which should be the responsibility of the caller.

Types

type Options

type Options struct {
	Name           string
	ConsumerKey    string
	ConsumerSecret string
	AccessToken    string
	AccessSecret   string
}

Options describes the credentials required to connect to the twitter API. While the name is used for internal reporting, the other values should be populated with credentials obtained from the Twitter API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL