twitter_utils

package
v0.0.0-...-1ff5f12 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: MIT Imports: 3 Imported by: 1

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