Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMiAuthUrl ¶
func NewMiAuthUrl(host, sessionId string, config MiAuthConfig) url.URL
func NewSessionId ¶
func NewSessionId() string
Types ¶
type MiAuthCheckResponse ¶
type MiAuthCheckResponse struct {
Token string `json:"token"`
}
func MiAuthCheck ¶
func MiAuthCheck(host, sessionId string) (MiAuthCheckResponse, error)
type MiAuthConfig ¶
type NotesCreateRequestBody ¶
type NotesCreateRequestBody struct {
I string `json:"i"`
Text string `json:"text"`
Visibility string `json:"visibility,omitempty"` // public, home, followers, specified
VisibleUserIds []string `json:"visibleUserIds,omitempty"`
Cw string `json:"cw,omitempty"`
LocalOnly bool `json:"localOnly,omitempty"`
}
type NotesCreateResponse ¶
type NotesCreateResponse struct {
CreatedNote Note
}
func NotesCreate ¶
func NotesCreate(host string, reqBody NotesCreateRequestBody) (data NotesCreateResponse, err error)
Click to show internal directories.
Click to hide internal directories.