14 lines
257 B
Go
14 lines
257 B
Go
|
package pixelapi
|
||
|
|
||
|
type Recaptcha struct {
|
||
|
SiteKey string `json:"site_key"`
|
||
|
}
|
||
|
|
||
|
func (p *PixelAPI) GetRecaptcha() (resp *Recaptcha, err *Error) {
|
||
|
err = getJSON(p.apiEndpoint+"/misc/recpatcha", resp)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return resp, nil
|
||
|
}
|