Documentation ¶
Index ¶
- Constants
- Variables
- func InitClient(userSessionToken string)
- func NewGetReq(url string, sessionToken string) (*http.Response, error)
- func PuzzleAnswerURL(year int, day int) string
- func PuzzleInputURL(year int, day int) string
- func PuzzlePageURL(year int, day int) string
- func SubmitAnswer(year int, day int, part int, userSession string, answer string) (*http.Response, error)
Constants ¶
View Source
const BASE_URL = "https://adventofcode.com"
View Source
const DAY_URL = YEAR_URL + "/day/%v"
View Source
const REQS_PER_SEC = 10
View Source
const USER_AGENT = "dalton.dog/aocgo"
View Source
const YEAR_URL = BASE_URL + "/%v"
Variables ¶
View Source
var MasterClient httpClient
Functions ¶
func InitClient ¶
func InitClient(userSessionToken string)
InitClient creates the API client with a given user session token
func NewGetReq ¶
NewGetReq will make a request of a certain URL on behalf of a given user session token.
func PuzzleAnswerURL ¶
func PuzzleInputURL ¶
func PuzzlePageURL ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.