PeopleAggregator API: method blogger.getUserInfo

Arguments | Return value | REST (XML) example | REST (JSON) example | XML-RPC example

Method: blogger.getUserInfo

(Blogger+metaWeblog API) Get information about a user. [NOTE: DO NOT USE THE REST FORM OF THIS API CALL; THE BLOGGER API IS XML-RPC ONLY]

Arguments (see also Authentication)

If calling by XML-RPC, note that this method takes 3 arguments, NOT a single struct, like most other methods in this API.

appkey

Type: string
Appkey - not required.
Example: none

login

Type: string
User's login name.
Example: testme

password

Type: string
User's password.
Example: testuser123

Return value (see also Exceptions)

Type: hash

Attributes:

nickname

Type: string
User's login name
Example: joepublic

userid

Type: string
User's ID number
Example: user:123

email

Type: string
The user's e-mail address
Example: me@privacy.com

url

Type: string
URL of user's public page
Example: http://example.org/user.php?uid=123

lastname

Type: string
User's last name
Example: Public

firstname

Type: string
User's first name
Example: Joe

Example REST (XML) request

Request

Response

HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: 364

<response>
 <firstname>Joe</firstname>
 <url>http://example.org/user.php?uid=123</url>
 <lastname>Public</lastname>
 <userid>user:123</userid>
 <nickname>joepublic</nickname>
 <email>me@privacy.com</email>
</response>

Example REST (JSON) request

Request

Response

HTTP/1.1 200 OK
Content-Type: application/x-javascript
Content-Length: 162

{"firstname": "Joe", "url": "http://example.org/user.php?uid=123", "lastname": "Public", "userid": "user:123", "nickname": "joepublic", "email": "me@privacy.com"}

Example XML-RPC call

Request

POST /api/xmlrpc HTTP/1.1
Content-Type: text/xml
Content-Length: 728

<?xml version='1.0'?>
 <methodCall>
  <methodName>blogger.getUserInfo</methodName>
  <params>
   <param>
    <value><string>none</string></value>
   </param>
   <param>
    <value><string>testme</string></value>
   </param>
   <param>
    <value><string>testuser123</string></value>
   </param>
  </params>
 </methodCall>
 

Response

HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 2041

<?xml version='1.0'?>
 <methodResponse>
  <params>
   <param>
    <value><struct>
     <member>
      <name>firstname</name>
      <value><string>Joe</string></value>
     </member>
     <member>
      <name>url</name>
      <value><string>http://example.org/user.php?uid=123</string></value>
     </member>
     <member>
      <name>lastname</name>
      <value><string>Public</string></value>
     </member>
     <member>
      <name>userid</name>
      <value><string>user:123</string></value>
     </member>
     <member>
      <name>nickname</name>
      <value><string>joepublic</string></value>
     </member>
     <member>
      <name>email</name>
      <value><string>me@privacy.com</string></value>
     </member>
    </struct></value>
   </param>
  </params>
 </methodResponse>