![]() |
![]()
| ![]() |
![]()
NAMENet::Google::AuthSub::Response - a response from a Net::Google::AuthSub request SYNOPSISmy $response = $auth->login($user, $pass); if ($response->is_success) { print "Yay!\n"; } else { if ($response->error eq 'CaptchaRequired') { print "Captcha Image ".$response->captchaurl; } } METHODSnew "HTTP::Response" "base url"Create a new response. is_successReturns whether the response was a sucess or not. SUCCESS METHODSMethods available if the response was a success. authThe authorisation token if the response is a success. sidNot used yet. lsidNot used yet. ERROR METHODSMethods available if the response was an error. errorThe error code. Can be one of
urlThe url of a page describing the error. captchatokenThe token required to authenticate a captcha. captchaurlThe full url of the captcha image.
|