Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) ClubInvite(userID, clubID uint) error
- func (c *Client) DeleteComment(commentID uint) error
- func (c *Client) DeleteMessage(messageID uint64) error
- func (c *Client) EditComment(commentID uint, text string) error
- func (c *Client) EditMessage(messageID uint64, newText string) (*types.Message, error)
- func (c *Client) FriendDeleteRequest(userID uint) error
- func (c *Client) FriendRequest(userID uint) error
- func (c *Client) GetAnime(id uint) (*types.Anime, error)
- func (c *Client) GetCharacter(id uint) (*types.Character, error)
- func (c *Client) GetComment(commentID uint) (*types.Comment, error)
- func (c *Client) GetComments(commentableID uint, commentableType string, page, limit uint, desc bool) ([]types.Comment, error)
- func (c *Client) GetDialogs(page, limit uint) ([]types.Dialog, error)
- func (c *Client) GetFriends(userID, page, limit uint) ([]types.User, error)
- func (c *Client) GetMe() (*types.Me, error)
- func (c *Client) GetMessages(userID uint, page, limit uint) ([]types.Message, error)
- func (c *Client) GetTopic(topicID uint) (*types.Topic, error)
- func (c *Client) GetUserProfile(userID uint) (*types.UserProfile, error)
- func (c *Client) GetUserProfileByNickname(nickname string) (*types.UserProfile, error)
- func (c *Client) GetUsers(page, limit uint) ([]types.User, error)
- func (c *Client) IgnoreUserRequest(userID uint) error
- func (c *Client) MakeRequest(method string, path string, headers map[string]string, urlParams url.Values, ...) (*http.Response, error)
- func (c *Client) PreviewComment(text string) ([]byte, error)
- func (c *Client) SendComment(commentableID uint, commentableType string, text string, isOfftopic bool) (*types.Comment, error)
- func (c *Client) SendMessage(userID uint, text string) (*types.Message, error)
- func (c *Client) SetTimeout(t time.Duration)
- func (c *Client) UnignoreUserRequest(userID uint) error
- func (c *Client) UploadImage(imageName string, image io.Reader) (*types.UploadedImage, error)
- type ShikiError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ShikiSchema = "https" ShikiDomain = "shikimori.one" UserAgent = "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" )
View Source
var ( ErrNotFound = errors.New("not found") ErrUnprocessableEntity = errors.New("unprocessable entity") ErrTooManyRequests = errors.New("too many requests") ErrInternalServer = errors.New("internal server error") ErrBadRequest = errors.New("bad request") ErrForbidden = errors.New("forbidden") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Me *types.Me Cookies string XCsrfToken string // contains filtered or unexported fields }
func (*Client) ClubInvite ¶
func (*Client) DeleteComment ¶
func (*Client) DeleteMessage ¶
func (*Client) EditMessage ¶
func (*Client) FriendDeleteRequest ¶
func (*Client) FriendRequest ¶
func (*Client) GetComments ¶
func (*Client) GetFriends ¶
func (*Client) GetMessages ¶
func (*Client) GetUserProfile ¶
func (c *Client) GetUserProfile(userID uint) (*types.UserProfile, error)
func (*Client) GetUserProfileByNickname ¶
func (c *Client) GetUserProfileByNickname(nickname string) (*types.UserProfile, error)
func (*Client) IgnoreUserRequest ¶
func (*Client) MakeRequest ¶
func (*Client) SendComment ¶
func (*Client) SendMessage ¶
func (*Client) SetTimeout ¶
func (*Client) UnignoreUserRequest ¶
func (*Client) UploadImage ¶
type ShikiError ¶
func (ShikiError) Error ¶
func (s ShikiError) Error() string
Click to show internal directories.
Click to hide internal directories.