Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RecommendationRequest ¶
RecommendationRequest represents an Recommendation request.
func (RecommendationRequest) Validate ¶
func (r RecommendationRequest) Validate() error
Validate the 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) Recommendation ¶
func (s *Service) Recommendation(request RecommendationRequest) error
Recommendation endpoint.
Example ¶
client, _ := misskey.NewClientWithOptions(misskey.WithSimpleConfig("https://slippy.xyz", os.Getenv("MISSKEY_TOKEN"))) client.LogLevel(logrus.DebugLevel) err := client.Notes().Polls().Recommendation(polls.RecommendationRequest{ Limit: 10, }) if err != nil { log.Printf("[Notes] Error happened: %s", err) return }
Output:
func (*Service) Vote ¶
Vote endpoint.
Example ¶
client, _ := misskey.NewClientWithOptions(misskey.WithSimpleConfig("https://slippy.xyz", os.Getenv("MISSKEY_TOKEN"))) client.LogLevel(logrus.DebugLevel) err := client.Notes().Polls().Vote("noteid", 5) if err != nil { log.Printf("[Notes] Error happened: %s", err) return }
Output:
type VoteRequest ¶
VoteRequest represents an Vote request.
Click to show internal directories.
Click to hide internal directories.