GET ./accounts/google

Return Google oauth information and associated account if it exist.

GET parameters

NameValue TypeValidationDetails
oaUaIDintRequiredUser ID.
withTokenintOptionalIf you want to return token in response
revalidateintOptionalCheck 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": "ya29.a0ARrdaM826OxZJxrP-4CKMksJ-jR91T4rfFSR73qOT6-ogcOKI3Vz5LLnWdbjxP_X2jK4u6TQC4n66TKB3_abgtrEtuzNb45O7jpWw3Dr9ATRfFoNjAdEBQBRPTyA3rUWIQkIqduCtIUrzTnVmL4wj6tQF_PB",
"oaEmail": "gigi@adservio.ro",
"oaLastUpdate": "2021-10-06 16:07:57",
"oaStatus": "1"
}
}