PeopleAggregator API: method blogger.getUsersBlogs

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

Method: blogger.getUsersBlogs

(Blogger+metaWeblog API) Get a list of blogs that a user can access. [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: array

Content of each item:

item

Type: hash

Attributes:

isAdmin

Type: boolean
true if the user is an administrator for the blog.
Example: True

url

Type: string
The URL of the blog.
Example: http://peopleaggregator.net/user.php?uid=123

blogid

Type: string
The ID of the blog (you can pass this to metaWeblog.newPost etc to identify the blog).
Example: user:123

blogName

Type: string
The name of the blog.
Example: Test User's blog

Example REST (XML) request

Request

Response

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

<response>
 <item>
  <url>http://peopleaggregator.net/user.php?uid=123</url>
  <isAdmin>true</isAdmin>
  <blogid>user:123</blogid>
  <blogName>Test User's blog</blogName>
 </item>
</response>

Example REST (JSON) request

Request

Response

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

[{"url": "http://peopleaggregator.net/user.php?uid=123", "isAdmin": true, "blogid": "user:123", "blogName": "Test User's blog"}]

Example XML-RPC call

Request

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

<?xml version='1.0'?>
 <methodCall>
  <methodName>blogger.getUsersBlogs</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: 1743

<?xml version='1.0'?>
 <methodResponse>
  <params>
   <param>
    <value><array><data>
     <value><struct>
      <member>
       <name>url</name>
       <value><string>http://peopleaggregator.net/user.php?uid=123</string></value>
      </member>
      <member>
       <name>isAdmin</name>
       <value><boolean>1</boolean></value>
      </member>
      <member>
       <name>blogid</name>
       <value><string>user:123</string></value>
      </member>
      <member>
       <name>blogName</name>
       <value><string>Test User's blog</string></value>
      </member>
     </struct></value>
    </data></array></value>
   </param>
  </params>
 </methodResponse>