MediaPost Social Network

up.users.getInfo

Returns a wide array of user-specific information for each user identifier or page url passed.

Parameters

Type Name Required Description
string apiKey The application key associated with the calling application.
string community Community system name. Use UP-wsAPI-v1-01-up-community-getList method to retrieve available communities.
string apiSig ✔(production) An MD5 hash of the current request and your secret key, as described in the UP-wsAPI-v1-01-authentication-guide.
string format Desired response format. Either XML (default), JSON or PHP serialized (xml, json, php_serial).
array uids ☑* List of user ids. This is a comma-separated list of user ids.
array pageUrls ☑* List of user page urls. This is a comma-separated list of user page urls.
Note*: we need at least one parameter: uids or pageUrls. Only one is required.

Example return XML

<?xml version="1.0" encoding="UTF-8"?>
<users_getInfo_response xmlns="http://api.universalplatform.com/" list="true">
  <user>
   <uid>1</uid>
   <pageUrl>fanofracing</pageUrl>
   <name>Michael Krylov</name>
   <firstName>Michael</firstName>
   <lastName>Krylov</lastName>
   <birthday>September, 3</birthday>
   <about/>
   <sex>Male</sex>
   <pic>http:// ... /5d/6e/f3/c9/8460973062b78b4137fc405d6ef3c981@t4.jpg</pic>
   <picBig>http:// ... /5d/6e/f3/c9/8460973062b78b4137fc405d6ef3c981.jpg</picBig>
   <picSmall16>http:// ... /5d/6e/f3/c9/8460973062b78b4137fc405d6ef3c981@t1.jpg</picSmall16>
   <picSquare30>http:// ... /5d/6e/f3/c9/8460973062b78b4137fc405d6ef3c981@t2.jpg</picSquare30>
   <picSquare80>http:// ... /5d/6e/f3/c9/8460973062b78b4137fc405d6ef3c981@t3.jpg</picSquare80>
  </user>
  <user>
    ...
  </user>
  ...
</users_getInfo_response>

Response

  • uid - The user id corresponding to the user info returned. The first subelement.
  • pageUrl - Relative url to profile page (may be considered as login).
  • name - Сoncatenation of "First Name" and "Last Name" profile fields.
  • firstName - User-entered "First Name" profile field. May be blank.
  • lastName - User-entered "Last Name" profile field. May be blank.
  • birthday - User's birth month and day in "monthName, dd" format.
  • about - text element corresponding to Universal Platform 'About Me' profile section. May be blank.
  • sex - User-entered "Sex" profile file. Either "Male", "Female".
  • pic - URL of user profile picture, with fixed width 265px.
  • picSmall16 - URL of user profile picture, 16x16 square.
  • picBig - URL of user profile original picture.
  • picSquare30 - URL of user profile picture, 30x30 square.
  • picSquare80 - URL of user profile picture, 80x80 square.

Error codes

Code Description
1Internal error occured.
2Method was not provided.
94One of the parameters specified was missing or invalid.
95Invalid request signature.
97Invalid response format.
99Community is not provided.
100Invalid api key.
101Empty api key.
105Service is temporary unavailable.
112Method was not found.