This repository has been archived on 2021-02-22. You can view files and clone it, but cannot push or open issues or pull requests.
hcaptcha/response.go
John Olheiser 28ef973d87 Change ChallengeTS to string (#3)
Go sometimes cannot unmarshal timestamp

Signed-off-by: jolheiser <john.olheiser@gmail.com>

Co-authored-by: jolheiser <john.olheiser@gmail.com>
Reviewed-on: #3
2020-10-03 02:46:07 +00:00

11 lines
308 B
Go

package hcaptcha
// Response is an hCaptcha response
type Response struct {
Success bool `json:"success"`
ChallengeTS string `json:"challenge_ts"`
Hostname string `json:"hostname"`
Credit bool `json:"credit,omitempty"`
ErrorCodes []ErrorCode `json:"error-codes"`
}