This method/service call returns a array with the user information.
mixed users.getLoggedInUser ( int NA = NULL )
Name | Type | Required | Default value | Description |
---|---|---|---|---|
NA | int | Optional | NULL | This method does not take any arguments and will simply return the user information, listed below, for the current logged in user. |
Below you will find a list and description of all of the available fields to have returned with the users.getUserBySessionToken service.
Name | Type | Description |
---|---|---|
id | INT | The user id for the requested user. |
user | STRING | The username for the requested user. |
password | STRING | An encrypted hash containing the user's password. |
STRING | The e-mail address for the requested user. | |
firstname | STRING | The first name of the requested user. |
lastname | STRING | The last name for the requested user. |
city | STRING | The city for the requested user. |
gender | CHAR | The gender of the requested user. |
birthdate | DATE | The birthdate of the requested user. |
cellphone | STRING | The users cell phone number. |
phone | STRING | The users telephone number. |
website | STRING | The users website. |
occupation | STRING | The users occupation. |
address1 | STRING | The first line of the users address. |
address2 | STRING | The second line of the users address. |
postalcode | STRING | The postal code of the requested user. |
state | STRING | The state of the requested user. |
language | STRING | The requested users language. |
country | STRING | The requested users country. |
description | STRING | A description of the requested user. |
storage | INT | ?? |
avatar | INT | An integer for the media item of the requested users avatar. |
created | DATETIME | The date and time that the user was created. |
lastlogin | DATETIME | The date and time that the user was last logged into the system. |
random1 | INT | A random number used for activating the account. |
random2 | INT | A random number used for activating the account. |
accounttype | INT | Not currently implemented. |
active | BOOLEAN | Whether or not the requested user is activated. |
disabled | BOOLEAN | Whether or not the requested user's account is disabled. |
newsletter | BOOLEAN | Whether or not the requested user has requested the newsletter. 0 is false, 1 is true. |
nickname | STRING | The requested users nickname. |
attempts | INT | The number of login attempts for the user since the last successful login. |
mobileblog | STRING | A url for a mobile blog for the requested user. |
publicfiles | INT | The number of media items that user has uploaded to the system. NOTE: You can find the value of notdeniedfiles by subtracting deniedfiles from publicfiles. |
unmoderatedfiles | INT | The number of media items the user has uploaded to the system that have yet to be moderated. |
approvedfiles | INT | The number of media items that the user has uploaded to the system that have been approved. |
deniedfiles | INT | The number of media items uploaded by the user that have been denied. |
unmoderatedcomments | INT | The number of comments the user has posted that have yet to be moderated. |
approvedcomments | INT | The number of comments the user has posted that have been approved. NOTE: You can find the value of notdeniedcomments by calculating the sum of approvedcomments plus unmoderatedcomments. |
deniedcomments | INT | The number of comments the user has posted that have been denied. |
notdeniedcomments | INT | The number of comments the user has posted that have been approved or have yet to be mopderated. |
friends | STRING | The number of users that have confirmed knowing this user. |
friends_notconfirmed | STRING | The number of users that have yet to confirm knowing this user. |
geo_latitude | FLOAT | The geographical latitude for the requested user. |
geo_longitude | FLOAT | The geographical longitude for the requested user. |
vhost | INT | The vhost for the requested user. |
meta | ARRAY | Any meta data that has been collected about the requested user. |
no_comment_notifications | INT | Set to 1 to prevent the user from receiving comment notifications. Set to 0 to allow the user to receive them. |
profile_complete | BOOLEAN | Whether or not the requested user has a complete profile. |
externalids | ARRAY | The user's external IDs, if any. |
followers | INT | The number of user's following the user. |
following | INT | The number of user's the user follows. |
<?xml version="1.0" encoding="UTF-8"?> <result> <id>USER_ID</id> <user>USERNAME</user> <email>USER_EMAIL</email> <firstname>USER_FIRSTNAME</firstname> <lastname>USER_LASTNAME</lastname> <city/> <gender>M</gender> <birthdate>0000-00-00</birthdate> <cellphone/> <phone/> <website/> <occupation/> <address1/> <address2/> <postalcode/> <state/> <language/> <country/> <description/> <storage>152274291</storage> <avatar>0</avatar> <created>2009-06-23 13:12:54</created> <random1>2362</random1> <random2>840067486</random2> <accounttype>0</accounttype> <active>1</active> <disabled>0</disabled> <newsletter>0</newsletter> <openidurl/> <nickname/> <attempts>0</attempts> <mobileblog>0</mobileblog> <publicfiles>1085</publicfiles> <friends>0</friends> <friends_notconfirmed>0</friends_notconfirmed> <geo_latitude/> <geo_longitude/> <vhost>2</vhost> <meta> <moderationEmail/> <commentEmail/> </meta> <no_comment_notifications>0</no_comment_notifications> <profile_complete>0</profile_complete> <gravatarid>708e81e8ad320b75d88a39526a539925</gravatarid> <externalids/> </result>
{ "status": true, "result": { "id": USER_ID, "user": "USERNAME", "email": "USER_EMAIL", "firstname": "USER_FIRSTNAME", "lastname": "USER_LASTNAME", "city": "", "gender": "M", "birthdate": "2008-12-29", "cellphone": "", "phone": "", "website": "", "occupation": "", "address1": "", "address2": "", "postalcode": "", "state": "", "language": "", "country": "VE", "description": "", "storage": 476344888, "avatar": 0, "created": "2005-10-08 18:46:01", "random1": 1, "random2": 7500, "accounttype": 0, "active": "1", "disabled": "0", "newsletter": "0", "openidurl": "", "nickname": "public", "attempts": 0, "mobileblog": 0, "publicfiles": 14913, "friends": 0, "friends_notconfirmed": 0, "geo_latitude": null, "geo_longitude": null, "vhost": 1, "meta": [], "no_comment_notifications": 0, "profile_complete": 0, "gravatarid": "ac21ec2a419d33dc5d730e72a0343a08", "externalids": [] } }