GET oauth/login/user/data
(Difference between revisions)
(Created page with "{{DISPLAYTITLE:GET login/user/data}} == Description == Returns user custom profile information. The profile schema can be accessed and updated through [[Datastore_APIs|Schem...") |
|||
Line 12: | Line 12: | ||
== Authentication == | == Authentication == | ||
− | This API requires Login User Token authentication. See [[ | + | This API requires Login User Token authentication. See [[OAuth_APIs|OAuth]]. |
== Response == | == Response == | ||
Line 23: | Line 23: | ||
|- | |- | ||
! align="left" width="200px" | unauthorized (401) | ! align="left" width="200px" | unauthorized (401) | ||
− | | The authentication is wrong. See [[ | + | | The authentication is wrong. See [[OAuth_APIs|OAuth]]. |
|- | |- | ||
! align="left" width="200px" | not_found (404) | ! align="left" width="200px" | not_found (404) |
Revision as of 15:42, 12 August 2015
Contents |
Description
Returns user custom profile information.
The profile schema can be accessed and updated through Schema APIs using the schema_name "user_data". The user profile can be updated through the profile update API or directly via Objects APIs using the object_id returned by this API.
Resource URL
GET https://api.socialidnow.com/v2/marketing/login/user/data
Authentication
This API requires Login User Token authentication. See OAuth.
Response
Response Status
ok (200) | The request was successful. |
---|---|
unauthorized (401) | The authentication is wrong. See OAuth. |
not_found (404) | The user was not found. |
internal_server_error (500) | An unknown error happened. |
Response Body
object_id | object identifier. |
---|---|
user_id | user identifier. |
created_at | date of object creation. |
updated_at | date of object latest update. |
[fields] | custom fields defined in the schema. |
Examples
Request
Returns the custom profile of the user.
curl -iX GET 'https://api.socialidnow.com/v2/marketing/login/user/data' \ -H "Content-type: application/json" \ -H "Authentication: Bearer 0358172c0cd160dfa731c7a76284fe0c30580f3fc8d827831e9f8b1821d8124c"
Response
Response Headers
HTTP/1.1 200 Ok Status: 200
Response Body
{ "object_id": "544a8e66e5cb7c6204000002", "user_id": 340, "created_at": "2014-10-24T15:41:05Z", "updated_at": "2014-10-24T15:41:05Z", "category": "premium" }