userendpoint

package
v0.0.0-...-6003355 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestUser

func CreateTestUser(userNum int) (token string, err error)

func Delete

func Delete(w io.Writer, r *http.Request, _ []byte) *logging.StatusError

func Get

func Get(w io.Writer, r *http.Request, _ []byte) *logging.StatusError

func Post

func Post(w io.Writer, r *http.Request, b []byte) *logging.StatusError

func PostTwitter

func PostTwitter(w io.Writer, r *http.Request, b []byte) *logging.StatusError

Types

type Auth

type Auth struct {
	DeviceID      string `json:"deviceId"`
	DeviceName    string `json:"deviceName"`
	UserAgent     string `json:"User-Agent"`
	ApVersion     string `json:"Apversion"`
	Authorization string `json:"authorization"`
}

type TwitterOauth

type TwitterOauth struct {
	OauthToken    string `json:"oauth_token"`
	OauthVerifier string `json:"oauth_verifier"`
}

Jump to

Keyboard shortcuts

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