Description

This method will give you all logged user info in json format. No access_token or other tokens are needed, so is mandatory that user is logged in DruID. You have to call this method if you want to get user logged info in a javascript or other client side programming language

Endpoint URL:

 GET https://graph.{your-domain.com}/activityid/public/v1/user/me

Request headers

ParameterDescriptionRequired
Fromentrypoint idtrue
From-OriginApp idtrue

Query string parameters

ParameterDescriptionTypeRequiredDefault value

Response examples

Response: user logged

ParameterDescriptionType
contentData receive with the responsestruct
content.userData of the user logged with the request. More info about user struct at User Infostruct
content.session_infosession info structurestruct
content.session_info.access_tokenaccess token valuestring
content.session_info.token_typetoken type‘bearer’
content.session_info.expires_inthe remaining lifetime in seconds of the access tokenlong
content.session_info.expires_atepoch time in milliseconds when the token will expire. If you use unix tools to convert time you must discard last 3 digitslong
content.session_info.refresh_tokenRefresh token value. You must use if youre are following “oauth2 refresh token flow”. You can ignore this value in rest of casesstring
content.session_info.login_statusoauth2 server login status of logged userstruct
content.session_info.login_status.uidDRUID of the logged user.It will have the same value of content.user.idlong
content.session_info.login_status.connect_stateoauth2 server connect state‘connected’ | ‘notConnected’ | ‘unknown’
content.session_info.scopescope for which the token was createdstring
result.statushttp status codeinteger

Response: user logged, but need to complete data

ParameterDescriptionType
contentData receive with the responsestruct
content.userData of the user logged with the request. More info about user struct at User Infostruct
content.session_infosession info structurestruct
content.session_info.access_tokenaccess token valuestring
content.session_info.token_typetoken type‘bearer’
content.session_info.expires_inthe remaining lifetime in seconds of the access tokenlong
content.session_info.expires_atepoch time in milliseconds when the token will expire. If you use unix tools to convert time you must discard last 3 digitslong
content.session_info.refresh_tokenRefresh token value. You must use if youre are following “oauth2 refresh token flow”. You can ignore this value in rest of casesstring
content.session_info.login_statusoauth2 server login status of logged userstruct
content.session_info.login_status.uidDRUID of the logged user.It will have the same value of content.user.idlong
content.session_info.login_status.connect_stateoauth2 server connect state‘connected’ | ‘notConnected’ | ‘unknown’
content.session_info.scopescope for which the token was createdstring
result.statushttp status codeinteger
result.elapsedTime spent to receive the responseinteger
errorsResponse errorsstruct
errors.messageErrors messagestring
errors.detailsErrors detailstring

Response codes

CodeTypeDescription
400ErrorBad Request: The request could not be understood by the server due to malformed syntax
401ErrorUnauthorized: authentication is required and has failed or has not yet been provided (token is invalid, etc)
403ErrorForbidden: user id or password are invalid
412ErrorPrecondition failed: User can not log because he/she has not confirmed email
451ErrorUnavailable For Legal Reasons: user must accept new terms and conditions
500ErrorInternal Server Error: The server encountered an unexpected condition which prevented it from fulfilling the request
504ErrorGateway TimeoutService can not contact with oauth server to do some internal operations
200SuccessUser logged successfully. You will get ‘user logged JSON response’
206SuccessPartial content: User logged successfullybut needs some data to be completed