-
Notifications
You must be signed in to change notification settings - Fork 5
get_profile.json
Timothy Duffy edited this page Apr 5, 2015
·
2 revisions
###get_profile.json###
Returns information about the user.
get_profile.json?cuid=<client_id>&language_code=<language_code>&lat=<lat>&lng=<lng>
Required fields:
[GET]
client_id:
This is of type text, and is the unique id of the client. This is a uuid that is generated by the
client and is associated with a user within the database. Event if a user is 'validated' their
unique client_id is still used to identify them.
[GET]
language_code:
This is of type text, and holds the two letter language code the post is in. Language codes must
match those codes that exist within the languages table within the database. Valid values currently
are:
en - English
es - Español
Note: If responding to an assignment, the response post should have the same language code as the
question being asked.
[GET]
lat:
This is the latitude of the user. 43.1656 is an example.
[GET]
lng
This is the longitude of the user. -77.6114 is an example.
Valid response looks like:
{
"first_name": "",
"last_name": "",
"verified": false,
"success": true,
"post_count": 1,
"post_view_count": 0,
"organization": "",
"post_used_count": 0,
"email": ""
}
For unverified users, first_name
, last_name
, organization
, and email
will be ""
. post_count
, post_view_count
, and post_used_count
will always be a real number greater or equal to 0.
post_view_count
This represents the number of posts that a moderator/subscriber have viewed of the users
post_used_count
This represents the number of posts that have been used in a story by a moderator/subscriber.