1Net::Google::AuthSub::RUessepronCsoen(t3r)ibuted Perl DoNceutm:e:nGtoaotgiloen::AuthSub::Response(3)
2
3
4

NAME

6       Net::Google::AuthSub::Response - a response from a Net::Google::AuthSub
7       request
8

SYNOPSIS

10           my $response = $auth->login($user, $pass);
11
12           if ($response->is_success) {
13               print "Yay!\n";
14           } else {
15               if ($response->error eq 'CaptchaRequired') {
16                   print "Captcha Image ".$response->captchaurl;
17               }
18           }
19

METHODS

21   new "HTTP::Response" "base url"
22       Create a new response.
23
24   is_success
25       Returns whether the response was a sucess or not.
26

SUCCESS METHODS

28       Methods available if the response was a success.
29
30   auth
31       The authorisation token if the response is a success.
32
33   sid
34       Not used yet.
35
36   lsid
37       Not used yet.
38

ERROR METHODS

40       Methods available if the response was an error.
41
42   error
43       The error code. Can be one of
44
45       BadAuthentication
46           The login request used a username or password that is not
47           recognized.
48
49       NotVerified
50           The account email address has not been verified. The user will need
51           to access their Google account directly to resolve the issue before
52           logging in using a non-Google application.
53
54       TermsNotAgreed
55           The user has not agreed to terms. The user will need to access
56           their Google account directly to resolve the issue before logging
57           in using a non-Google application.
58
59       CaptchaRequired
60           A CAPTCHA is required. (A response with this error code will also
61           contain an image URL and a CAPTCHA token.)
62
63       Unknown
64           The error is unknown or unspecified; the request contained invalid
65           input or was malformed.
66
67       AccountDeleted
68           The user account has been deleted.
69
70       AccountDisabled
71           The user account has been disabled.
72
73       ServiceDisabled
74           The user's access to the specified service has been disabled. (The
75           user account may still be valid.)
76
77       ServiceUnavailable
78           The service is not available; try again later.
79
80   url
81       The url of a page describing the error.
82
83   captchatoken
84       The token required to authenticate a captcha.
85
86   captchaurl
87       The full url of the captcha image.
88
89
90
91perl v5.28.0                      2018-07-15 Net::Google::AuthSub::Response(3)
Impressum