Documentation ¶
Index ¶
- type BadCaptchaError
- type Client
- func (c *Client) Get(resourceUrl string) (*http.Response, error)
- func (c *Client) GetSubreddit(resourceUrl string) (*Response, error)
- func (c *Client) NeedsCaptcha() (bool, error)
- func (c *Client) NewCaptcha() (string, error)
- func (c *Client) Post(resourceUrl string, values url.Values) (*http.Response, error)
- func (c *Client) Signin(username string, password string)
- func (c *Client) SubmitComment(parentId string, text string) error
- func (c *Client) SubmitLink(parameters SubmitLinkParameters) (*linkResponseData, error)
- type Listing
- type Response
- type SubmitLinkParameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadCaptchaError ¶
type BadCaptchaError struct {
CaptchaId string
}
func (BadCaptchaError) Error ¶
func (e BadCaptchaError) Error() string
type Client ¶
type Client struct { ClientId string AccessToken string AccessTokenExpirationTime time.Time Username string UserAgent string // contains filtered or unexported fields }
func (*Client) NeedsCaptcha ¶
func (*Client) NewCaptcha ¶
func (*Client) SubmitLink ¶
func (c *Client) SubmitLink(parameters SubmitLinkParameters) (*linkResponseData, error)
type Listing ¶
type Response ¶
func ParseResponse ¶
Click to show internal directories.
Click to hide internal directories.