GET ./accounts/google

Return Google oauth information and associated account if it exist.

GET parameters

NameValue TypeValidationDetails
oaUaIDintRequiredUser ID.
withTokenintOptional; values[0,1]If you want to return token in response
revalidateintOptional; values[0,1]Check if user is still authorized

Output example

{
"oauthUrl": "https://accounts.google.com/o/oauth2/v2/auth?scope=https%3A//www.googleapis.com/auth/calendar&access_type=offline&prompt=consent&include_granted_scopes=true&response_type=code&redirect_uri=https%3A%2F%2Flocalhost%2Fgeneric%2Foauth_google&client_id=1040510320902-i40dvt67873c36m3vt422iieujfpnbn3.apps.googleusercontent.com&state=",
"createUserUrl": "https://accounts.google.com/signup/v2/webcreateaccount?hl=en&flowName=GlifWebSignIn&flowEntry=SignUp",
"returnUrl": "",
"account": {
"oaID": "173",
"oaUaID": "5335",
"oaProviderID": "3",
"oaProviderUserID": "gigi@adservio.ro",
"oaAccessToken": "token",
"oaEmail": "gigi@adservio.ro",
"oaLastUpdate": "2021-10-06 16:07:57",
"oaStatus": "1"
}
}