Documentation ¶
Overview ¶
Package twitter holds utilities for bootstrapping a Twitter API client from the metadata injected by the TwitterBinding. Within a process running in the context of a TwitterBinding, users can write:
client, err := twitter.New(ctx)
to get a client authorized with the access token from the TwitterBinding.
Index ¶
Constants ¶
View Source
const ( VolumeName = "twitter-binding" MountPath = bindings.MountPath + "/twitter" // filepath.Join isn't const. )
Variables ¶
This section is empty.
Functions ¶
func NewAppClient ¶
NewAppClient instantiates a new twitter client that authenticates with the application credentials.
func NewUserClient ¶
NewUserClient instantiates a new twitter client that authenticates with a particular user access token and secret in addition to the application credentials.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.