twitter_utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCSRFToken

func GenerateCSRFToken() (string, error)
GenerateCSRFToken generates a new CSRF token for Twitter requests.
The token is a 32-character hexadecimal string, matching Twitter's format.

Example:

token, err := GenerateCSRFToken()
if err != nil {
	// handle error
}
// token = "1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p"

Returns:

  • string: 32-character hexadecimal CSRF token
  • error: if token generation fails

Types

This section is empty.

Jump to

Keyboard shortcuts

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