Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRequest ¶
type CreateRequest struct {
NoteID string `json:"noteId"`
}
CreateRequest represents an Create request.
type DeleteRequest ¶
type DeleteRequest struct {
NoteID string `json:"noteId"`
}
DeleteRequest represents an Delete request.
type Service ¶
type Service struct {
Call core.RequestHandlerFunc
}
Service is the base for all the endpoints on this service.
func NewService ¶
func NewService(requestHandler core.RequestHandlerFunc) *Service
NewService creates a new Service instance.
func (*Service) Create ¶
Create endpoint.
Example ¶
client, _ := misskey.NewClientWithOptions(misskey.WithSimpleConfig("https://slippy.xyz", os.Getenv("MISSKEY_TOKEN")))
client.LogLevel(logrus.DebugLevel)
err := client.Notes().Favorites().Create("noteid")
if err != nil {
log.Printf("[Notes] Error happened: %s", err)
return
}
func (*Service) Delete ¶
Delete endpoint.
Example ¶
client, _ := misskey.NewClientWithOptions(misskey.WithSimpleConfig("https://slippy.xyz", os.Getenv("MISSKEY_TOKEN")))
client.LogLevel(logrus.DebugLevel)
err := client.Notes().Favorites().Delete("noteid")
if err != nil {
log.Printf("[Notes] Error happened: %s", err)
return
}
Click to show internal directories.
Click to hide internal directories.