misskeyapi

package
v0.0.0-...-a3ac2df Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MisskeyGetnotesRequest

func MisskeyGetnotesRequest(token string, botID string) ([]string, error)

func MisskeyGetuserID

func MisskeyGetuserID(token string) string

func MisskeySendnotesRequest

func MisskeySendnotesRequest(token string, text string) error

Types

type GetIDRequest

type GetIDRequest struct {
	Token string `json:"i"`
}

type GetnotesRequest

type GetnotesRequest struct {
	Limit int    `json:"limit"`
	Token string `json:"i"`
}

type IDResponse

type IDResponse struct {
	ID string `json:"id"`
}

type NotesRequest

type NotesRequest struct {
	Visibility string `json:"visibility"`
	Text       string `json:"text"`
	Token      string `json:"i"`
	LocalOnly  bool   `json:"localOnly"`
}

type NotesResponse

type NotesResponse struct {
	Text       string `json:"text"`
	RenoteId   string `json:"renoteId"`
	User       User   `json:"user"`
	Visibility string `json:"visibility"`
}

type User

type User struct {
	Id string `json:"id"`
}

Jump to

Keyboard shortcuts

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