D4Science D4Science Don't have a D4Science account? Create one Could not find what you are looking for? Contact us.

People Resource

REST interface for the social service (people). Used by OAUTH 2.0 apps/users.

GET /2/people/profile

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
Response Codes
code condition
200 Successful retrieval of user's profile, reported in the 'result' field of the returned object
500 The error is reported into the 'message' field of the returned object
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/people/profile
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...